.lp-checkout-page {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
}

.lp-checkout-preview {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #3f4254;
}

.lp-checkout-page img {
    display: block;
    width: 100%;
    height: auto;
}

.lp-image-scroll {
    cursor: pointer;
}

.lp-image-scroll-preview {
    cursor: pointer;
}

/* Metronic-like form controls for public LP */
.lp-checkout-preview .form-control-solid,
.lp-checkout-preview .form-select-solid {
    background-color: #f5f8fa;
    border-color: #f5f8fa;
    color: #5e6278;
    border-radius: 0.475rem;
    min-height: 42px;
}

.lp-checkout-preview .form-control-solid:focus,
.lp-checkout-preview .form-select-solid:focus {
    background-color: #eef3f7;
    border-color: #eef3f7;
    box-shadow: none;
}

.lp-checkout-preview .select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
    background-color: #f5f8fa;
    border-color: #f5f8fa;
}

.lp-checkout-preview .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    color: #5e6278;
}

/* Destinasi (provinsi → kelurahan) */
.lp-checkout-preview .lp-destination-field .select2-container {
    width: 100% !important;
}

.lp-checkout-preview [data-lp-field="destination"] .select2-container .select2-selection--single {
    height: auto !important;
    min-height: 42px;
}

.lp-checkout-preview [data-lp-field="destination"] .select2-container .select2-selection--single .select2-selection__rendered {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45 !important;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem !important;
    height: auto !important;
    min-height: 2.5rem;
    display: block !important;
}

.lp-checkout-preview [data-lp-field="destination"] .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0.65rem;
    height: 1.25rem;
}

.lp-checkout-preview [data-lp-field="destination"] .select2-container .select2-selection--single .select2-selection__clear {
    margin-top: 0.5rem;
}

/* Alamat lengkap (setelah dipilih) — seperti textarea, tidak terpotong */
.lp-checkout-preview .lp-destination-full-label {
    margin-top: 0;
    padding: 0.65rem 0.85rem;
    background-color: #f5f8fa;
    border: 1px solid #f5f8fa;
    border-top: 1px dashed #e4e6ef;
    border-radius: 0 0 0.475rem 0.475rem;
    color: #5e6278;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.lp-checkout-preview .lp-destination-field--filled .select2-container .select2-selection--single {
    border-radius: 0.475rem 0.475rem 0 0;
    min-height: 38px;
}

.lp-checkout-preview .lp-destination-field--filled .select2-container .select2-selection--single .select2-selection__rendered {
    min-height: auto;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    font-size: 0.875rem;
    color: #7e8299;
}

.lp-checkout-preview .select2-container--bootstrap-5 .select2-results__option {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.lp-checkout-preview .form-control-solid::placeholder {
    color: #a1a5b7;
}

.lp-checkout-preview .form-label {
    color: #3f4254;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lp-checkout-preview .separator.separator-dashed {
    border-bottom: 1px dashed #e4e6ef;
    display: block;
}

/* Section layout */
.lp-section {
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
}

.lp-section:first-of-type {
    padding-top: 1rem;
}

.lp-section-divider {
    border-top: 1px dashed #d8dde8;
    margin: 0 0 1.25rem;
}

.lp-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #181c32;
    line-height: 1.35;
    margin: 0 0 1rem;
}

.lp-section-title--sm {
    font-size: 1.05rem;
}

.lp-section-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #181c32;
}

.lp-section-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.lp-section-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.lp-section-text p {
    margin: 0 0 0.65rem;
}

.lp-section-text p:last-child {
    margin-bottom: 0;
}

.lp-section-text ul,
.lp-section-text ol {
    margin: 0 0 0.65rem;
    padding-left: 1.25rem;
}

.lp-section-text .ql-align-center {
    text-align: center;
}

.lp-section-text .ql-align-right {
    text-align: right;
}

.lp-section-text .ql-align-justify {
    text-align: justify;
}

.lp-form-subsection {
    margin-top: 0.25rem;
}

.lp-form-subsection .lp-section-divider {
    margin-top: 0.5rem;
}

.lp-form-subsection--submit {
    padding-bottom: 1rem;
}

.lp-section--form {
    padding-bottom: 0.5rem;
}

.lp-section-desc {
    font-size: 0.8125rem;
    color: #7e8299;
    line-height: 1.5;
    margin: 0;
}

/* Variant picker */
.lp-variant-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-variant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e4e6ef;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-variant-row.is-active {
    border-color: #1b84ff;
    background: #eef6ff;
    box-shadow: 0 0 0 1px rgba(27, 132, 255, 0.12);
}

.lp-variant-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lp-variant-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #181c32;
    line-height: 1.35;
}

.lp-variant-meta {
    font-size: 0.75rem;
    color: #7e8299;
    line-height: 1.35;
}

.lp-variant-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1b84ff;
}

.lp-qty-stepper {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    border: 2px solid #e4e6ef;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.lp-variant-row.is-active .lp-qty-stepper {
    border-color: #1b84ff;
}

.lp-qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: #3f4254;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lp-qty-btn:hover:not(:disabled) {
    background: #f1f4f9;
    color: #1b84ff;
}

.lp-qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lp-qty-input {
    width: 2.5rem;
    height: 2.25rem;
    border: 0;
    border-left: 1px solid #e4e6ef;
    border-right: 1px solid #e4e6ef;
    background: #fff;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #181c32;
    padding: 0;
    -moz-appearance: textfield;
}

.lp-qty-input::-webkit-outer-spin-button,
.lp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lp-variant-picker-summary {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #f5f8fa;
    font-size: 0.8125rem;
    color: #5e6278;
}

.lp-variant-picker-summary-label {
    font-weight: 600;
    margin-right: 0.35rem;
}

.lp-variant-picker-summary-value {
    font-weight: 700;
    color: #181c32;
}

.lp-checkout-preview .text-gray-800 {
    color: #3f4254 !important;
}

.lp-checkout-preview .text-gray-900 {
    color: #181c32 !important;
}

.lp-checkout-preview .text-gray-700 {
    color: #5e6278 !important;
}

.lp-checkout-preview .bg-light-primary {
    background-color: #eef6ff !important;
}

.lp-checkout-preview .border-primary {
    border-color: #1b84ff !important;
}

.lp-checkout-preview .lp-order-summary {
    background-color: #eef6ff;
}

.lp-order-summary-product {
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #e4e6ef;
}

.lp-order-variant-lines {
    margin-bottom: 0.25rem;
}

.lp-order-variant-line {
    border-bottom: 1px solid #eff2f5;
}

.lp-order-variant-line:last-child {
    border-bottom: none;
}

.lp-order-summary-row {
    padding: 0.35rem 0;
    border-bottom: 1px solid #eff2f5;
}

.lp-order-summary-total {
    border-bottom: none !important;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e4e6ef !important;
}

.lp-order-variant-remove {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    flex-shrink: 0;
}

.lp-order-variant-remove svg {
    display: block;
}

.lp-checkout-preview .lp-variant-table {
    --bs-table-border-color: #e4e6ef;
}

.lp-checkout-preview .lp-variant-table th,
.lp-checkout-preview .lp-variant-table td {
    border-color: #e4e6ef;
}

.lp-checkout-preview .btn-primary {
    background-color: #1b84ff;
    border-color: #1b84ff;
}

.lp-checkout-preview .btn-primary:hover,
.lp-checkout-preview .btn-primary:focus {
    background-color: #1570db;
    border-color: #1570db;
}

.lp-checkout-preview .text-primary {
    color: #1b84ff !important;
}

.lp-checkout-preview .lp-submit-btn {
    letter-spacing: 0.02em;
}

.lp-page-footer {
    border-top: 1px dashed #e4e6ef;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem 1.25rem;
}

.lp-checkout-preview .lp-page-footer {
    padding: 0.75rem 1rem 1.25rem;
}

.lp-checkout-preview #destinationDropdown {
    border-color: #e4e6ef !important;
}

.lp-checkout-preview .form-check-label {
    color: #3f4254;
}

/* Payment method cards */
.lp-payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    margin: 0;
    border: 2px solid #e4e6ef;
    border-radius: 0.75rem;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-payment-option:hover {
    border-color: #c9d2e3;
    background: #f5f8fa;
}

.lp-payment-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lp-payment-option:has(.lp-payment-option-input:checked) {
    border-color: #1b84ff;
    background: #eef6ff;
    box-shadow: 0 0 0 1px rgba(27, 132, 255, 0.15);
}

.lp-payment-option-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
}

.lp-payment-option-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.lp-payment-option-icon--transfer {
    color: #1b84ff;
    background: rgba(27, 132, 255, 0.12);
}

.lp-payment-option-icon--cod {
    color: #17c653;
    background: rgba(23, 198, 83, 0.12);
}

.lp-payment-option-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.1rem;
}

.lp-payment-option-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #181c32;
    line-height: 1.3;
}

.lp-payment-option-desc {
    font-size: 0.75rem;
    color: #7e8299;
    line-height: 1.35;
}

.lp-payment-option-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: transparent;
    transition: color 0.15s ease;
}

.lp-payment-option-check svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lp-payment-option:has(.lp-payment-option-input:checked) .lp-payment-option-check {
    color: #1b84ff;
}

.lp-payment-option:has(.lp-payment-option-input:checked) .lp-payment-option-title {
    color: #1b84ff;
}

.lp-payment-cod-note {
    background: #fff8dd;
    border: 1px dashed #f6c000;
    color: #7e6a00 !important;
}

.lp-checkout-preview .fs-8 {
    font-size: 0.75rem !important;
}

.lp-checkout-preview .fs-7 {
    font-size: 0.875rem !important;
}

/* ── Success page ─────────────────────────────────────────────── */

.lp-success-page,
.lp-success-preview {
    padding: 1.25rem 1rem 2rem;
    background: linear-gradient(180deg, #eef6ff 0%, #f5f7fa 42%, #f5f7fa 100%);
    min-height: 100%;
}

.lp-success-preview {
    min-height: auto;
}

.lp-success-shell {
    max-width: 420px;
    margin: 0 auto;
}

.lp-success-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.lp-success-hero {
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.lp-success-hero--transfer {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
}

.lp-success-hero--cod {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}

.lp-success-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.lp-success-hero--transfer .lp-success-icon-wrap {
    color: #059669;
    background: linear-gradient(145deg, #ffffff, #ecfdf5);
}

.lp-success-hero--cod .lp-success-icon-wrap {
    color: #2563eb;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
}

.lp-success-icon {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.lp-success-icon--cod {
    font-size: 1.5rem;
}

.lp-success-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-success-hero--transfer .lp-success-status {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.lp-success-hero--cod .lp-success-status {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
}

.lp-success-headline {
    margin: 0;
    padding: 1.5rem 1.5rem 1.15rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.5;
    color: #0f172a;
    text-align: center;
}

.lp-success-total-box {
    margin: 0.25rem 1.5rem 1.35rem;
    padding: 1.1rem 1.15rem;
    border-radius: 0.85rem;
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
}

.lp-success-total-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.45rem;
}

.lp-success-total-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-success-body {
    padding: 0.35rem 1.5rem 1.15rem;
}

.lp-success-text {
    margin: 0 0 1.15rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
    text-align: center;
}

.lp-success-text:last-child {
    margin-bottom: 0.5rem;
}

.lp-bank-accounts {
    display: grid;
    gap: 0.85rem;
    margin: 0.85rem 0 1.35rem;
}

.lp-bank-card {
    padding: 1rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lp-bank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lp-bank-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #1e40af;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.lp-bank-copy-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

.lp-bank-number-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.lp-bank-number {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0f172a;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.lp-bank-holder {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.4;
}

.lp-bank-holder span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.lp-success-cta-wrap {
    margin: 1.15rem 0 0.85rem;
}

.lp-wa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-wa-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.32);
    color: #fff !important;
}

.lp-wa-cta--disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    color: #9a3412 !important;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px dashed #fdba74;
    cursor: not-allowed;
}

.lp-wa-cta--disabled .lp-wa-cta-text,
.lp-wa-cta--disabled .lp-wa-cta-icon {
    color: #9a3412;
}

.lp-success-card .lp-page-footer {
    border-top: 1px dashed #e4e6ef;
    margin-top: 0;
    padding: 1rem 1.5rem 1.25rem;
    background: #fafbfc;
}

.lp-success-card .lp-page-footer p {
    margin-bottom: 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.lp-success-footnote {
    margin: 0;
    padding: 1.15rem 1.5rem 1rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.lp-wa-cta-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.lp-form-field.is-invalid .form-control,
.lp-form-field.is-invalid .form-control-solid,
.form-control.lp-is-invalid,
.form-control-solid.lp-is-invalid {
    border-color: #f1416c !important;
    box-shadow: none !important;
}

#lpVariantPicker.is-invalid {
    outline: 2px solid #f1416c;
    outline-offset: 4px;
    border-radius: 0.625rem;
}

#shippingOptionsSection.is-invalid {
    padding: 0.75rem;
    border: 2px solid #f1416c;
    border-radius: 0.625rem;
}

.lp-field-error {
    display: block;
    color: #f1416c;
    font-size: 0.875rem;
    margin-top: 0.35rem;
    font-weight: 500;
    line-height: 1.4;
}
