/* Zain Quick Pay Styles */
:root {
    --qp-primary: #70A838;
    --qp-primary-dark: #005a44;
    --qp-secondary: #333;
    --qp-border: #e0e0e0;
    --qp-bg: #fff;
    --qp-bg-light: #f9f9f9;
    --qp-error: #dc3545;
    --qp-warning-bg: #fff0f0;
    --qp-warning-text: #e53935;
    --qp-radius: 12px;
    --qp-radius-sm: 8px;
}

/* .zain-quick-pay-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 480px;
    margin: 0 auto;
    background: var(--qp-bg);
    border-radius: var(--qp-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
} */

/* Screens */
.qp-screen {
    display: none;
    /* padding: 24px; */
}

.qp-screen.active {
    display: block;
}

/* Header */
.qp-header h2,
.qp-modal-header h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #333;
    margin: 0;
    text-align: center;
}

.qp-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px 32px;
    border-bottom: 1px solid var(--qp-border);
    margin-bottom: 0;
}

.qp-close-btn,
.qp-back-btn {
    position: absolute;
    left: 24px;
    background: none;
    border: none !important;
    font-size: 44px !important;
    font-weight: 100 !important;
    color: var(--qp-secondary) !important;
    cursor: pointer;
    padding: 0 !important;
    /* line-height: 1; */
    box-shadow: none !important;
    border: 0 !important;
    background-color: transparent !important;

}

/* Screen 1 - Contract Input */
.qp-icon-box {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

@media(max-width:768px) {
    .qp-icon-box {
        gap: 16px;
        margin-bottom: 22px;
    }


    .qp-screen-4 {
        padding: 0 16px;
    }
}

@media(min-width:1700px) {
    .qp-icon-box {
        font-size: 36px;
    }
}

@media(max-width:992px) {
    .qp-icon-box {
        font-size: 28px;
    }
}

@media(max-width:768px) {
    .qp-icon-box {
        font-size: 20px;
    }
}

.qp-icon {
    width: 48px;
    height: 48px;
    background: var(--qp-primary);
    border-radius: var(--qp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.qp-icon-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--qp-secondary);
}

.qp-icon-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.qp-form-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
}

@media(max-width:768px) {
    .qp-form-group {
        margin-bottom: 16px;
    }
}

.qp-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius-sm);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.qp-input:focus {
    border-color: var(--qp-primary);
}

.qp-btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--qp-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qp-btn-primary {
    background: var(--qp-bg-light);
    color: #999;
    white-space: nowrap;
}

.qp-btn-primary:hover {
    background: #f0f0f0;
    color: var(--qp-secondary);
}

.qp-btn-primary.active {
    background: var(--qp-primary);
    color: white;
}

.qp-arrow {
    font-size: 18px;
}

/* Tabs */
.qp-tabs {
    display: flex;
    border-bottom: 2px solid var(--qp-border);

}

.qp-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.qp-tab.active {
    color: var(--qp-primary) !important;
}

.qp-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--qp-primary);
}

/* Tab Content */
.qp-tab-content {
    display: none;
    padding-top: 32px;
    max-width: 81.22%;
    margin: auto;
}

.qp-tab-content.active {
    display: block;
}

/* Amount Box */
.qp-amount-box {
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

/* .qp-amount-label {
    display: block;
    font-size: 28px;
    color: #000;
    margin-bottom: 8px;
} */

.qp-amount-value {
    display: block;
    font-size: 64px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.qp-amount-box>.qp-custom-amount-input {
    display: flex;
    align-items: center;
}

.qp-custom-amount-input #qp-custom-amount {
    height: auto;
    padding: 0;
    border: 0;
    box-shadow: unset;
    width: auto;
    text-align: center;
    color: #70A838;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0 !important;
    width: fit-content;
    max-width: 300px;
    min-width: 20px;
    display: block;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.qp-custom-amount-input {
    width: fit-content;
    margin: auto;
}

.qp-amount-box>#qp-due-amount,
.qp-custom-amount-input #qp-custom-amount {
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.qp-amount-box>#qp-due-amount::before,
.qp-custom-amount-input::before {
    content: "";
    display: inline-block;
    background-image: url(../images/saudi.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 48px;
}

#qp-download-invoice::after {
    content: "";
    display: inline-block;
    background-image: url(../images/download-icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;

}

#qp-download-invoice[disabled]::after {
    display: none !important;
}

#qp-download-invoice::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset-inline-start: 0;
    height: 2px;
    background-color: #70a838;
    inset-block-end: 10px;
    inset-inline-end: 100%;
    margin: 0;
    transition: all .3s ease !important;

}

#qp-download-invoice:hover::before {
    inset-inline-end: 0;
}

.qp-total-required .qp-currency {
    margin: 0 4px;
}

.qp-total-required [dir="ltr"] {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    direction: ltr !important;
    unicode-bidi: embed;
    gap: 2px;
}

.qp-vat-info {
    display: block;
    width: fit-content;
    margin: auto;
    padding-top: 8px;
    border-top: 1px solid #d9d9d9;
    font-size: 24px;
    color: #858585;
}

#qp-vat-percent {
    margin-inline-start: 4px;
}

.qp-max-warning {
    background: var(--qp-warning-bg);
    color: var(--qp-warning-text);
    padding: 12px 16px;
    border-radius: var(--qp-radius-sm);
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.qp-max-warning .qp-currency {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    direction: ltr !important;
    unicode-bidi: embed;
    gap: 4px;
}

#qp-minimum-amount {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    direction: ltr !important;
    unicode-bidi: embed;
    gap: 4px;
}

/* Custom Amount Input */
/* .qp-custom-amount-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 36px;
    font-weight: 700;
    color: var(--qp-secondary);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--qp-border);
    padding-bottom: 8px;
} */

.qp-custom-amount-input .qp-currency {
    color: var(--qp-secondary);
}

.qp-amount-input {
    width: 120px;
    border: none;
    font-size: 36px;
    font-weight: 700;
    color: #ccc;
    text-align: start;
    outline: none;
    background: transparent;
}

.qp-amount-input:focus {
    color: var(--qp-secondary);
}

.qp-amount-input::placeholder {
    color: #ddd;
}

.qp-total-required {
    display: block;
    width: fit-content;
    margin: auto;
    padding-top: 8px;
    border-top: 1px solid #d9d9d9;
    font-size: 24px;
    color: #333;
}

/* Payment Methods */
.qp-payment-methods {
    max-width: 81.22%;
    margin: 0 auto 24px;
}

.qp-payment-methods h4 {
    margin-bottom: 16px;
}

.qp-payment-methods h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--qp-secondary);
    margin: 0 0 12px 0;
}

.qp-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qp-payment-option:hover {
    border-color: var(--qp-primary);
    box-shadow: 0 4px 16px rgba(0, 111, 83, 0.08);
    transform: translateY(-1px);
}

.qp-payment-option.selected {
    border-color: var(--qp-primary);
    border-width: 1px;
    background: linear-gradient(135deg, rgba(0, 111, 83, 0.02) 0%, rgba(0, 111, 83, 0.05) 100%);
    box-shadow: 0 6px 20px rgba(0, 111, 83, 0.12);
}

.qp-method-name {
    font-size: 15px;
    font-weight: 700 !important;
    color: var(--qp-secondary);
}

.qp-method-logo {
    height: 24px;
    max-width: 75px !important;
}

@media(max-width:768px) {

    .qp-custom-amount-input #qp-custom-amount{
        max-width: 140px;
    }
    .qp-method-logo {
        width: 50px;
    }

    .qp-total-required{
        font-size: 16px;
    }

    .qp-max-warning, .qp-partial-warning, .qp-vat-info{
        font-size: 12px;
    }

    .qp-card-logos {
        flex-wrap: wrap;
    }

    .qp-card-logos img {
        width: 40px !important;
    }

    .qp-tab-content {
        max-width: 90%;
    }

    .qp-payment-option {
        padding: 16px;
        min-height: 62px;
    }
}

.zain-quick-pay-widget .qp-payment-methods h4 {
    margin-bottom: 16px;
}

.qp-card-logos {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qp-card-logos img {
    height: 20px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.qp-card-logos img:hover {
    transform: scale(1.05);
}

/* Card Details */
.qp-card-details {
    display: none;
    padding: 20px;
    border: 1px solid var(--qp-primary);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(0, 111, 83, 0.02) 0%, rgba(0, 111, 83, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(0, 111, 83, 0.1);
}

.qp-card-details.show {
    display: block;
}

.qp-card-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.qp-card-input-group:focus-within {
    border-color: var(--qp-primary);
    box-shadow: 0 0 0 4px rgba(0, 111, 83, 0.1), 0 4px 16px rgba(0, 111, 83, 0.15);
    transform: translateY(-1px);
}

.qp-card-input-group.invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.qp-card-input-group.invalid .qp-card-icon {
    color: #ffffff;
    background: #c62828;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qp-card-input-group.invalid .qp-card-icon svg {
    filter: none;
}

.qp-card-input-group.invalid .qp-card-icon img {
    filter: grayscale(100%) opacity(0.65);
    max-width: 75%
}

.qp-card-input-group.invalid .qp-card-input {
    color: #b71c1c;
}

.qp-card-error-message {
    color: #c62828;
    font-size: 13px;
    margin-top: 12px;
    text-align: left;
}

.qp-card-icon {
    color: var(--qp-primary);
    flex-shrink: 0;
    opacity: 0.8;
}

.qp-card-input {
    flex: 1;
    border: none;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    min-width: 300px !important;
    color: #1f2937;
    background: transparent;
}

.qp-card-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.qp-card-expiry {
    flex: none;
    text-align: center;
    font-weight: 600;
    width: 50px !important;
}

.qp-card-cvv {
    flex: none;
    text-align: center;
    font-weight: 600;
    width: 50px !important;
}


/* Pay Button */
.qp-btn-pay[disabled] {
    background-color: #f5f5f5 !important;
    color: #969991 !important;
}

#qp-3ds-container h2 {
    font-size: 32px;
}

.qp-btn-pay {
    width: 100%;
    padding: 24px !important;
    background: #666;
    color: white;
    font-size: 15px;
    border-radius: var(--qp-radius-sm);
    max-width: 81.22%;
    margin: 0 auto 24px;
}

@media(max-width:768px) {
    .qp-btn-pay {
        padding: 16px !important;
    }

    #qp-3ds-container h2 {
        font-size: 24px;
    }

    .qp-btn-pay {
        max-width: 90%;
    }

    .qp-payment-methods {
        max-width: 90%;
    }
}

.qp-btn-pay:hover {
    background: #555;
}

.qp-btn-pay.active {
    background: #000;
}

.qp-btn-pay.green-active-btn {
    background: #70a838;
}

.qp-btn-pay.apple-pay {
    background: #000;
}

.qp-btn-pay:disabled {
    /* opacity: 0.55; */
    box-shadow: unset !important;
    cursor: not-allowed;
}

#qp-pay-btn-text {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

#qp-pay-btn-text .qp-wallet-icon {
    display: inline-flex;
    align-items: center;
}

#qp-pay-btn-text .qp-wallet-icon svg {
    display: block;
}

.zain-quick-pay-widget p.report-problem {
    text-align: center;
    padding-bottom: 32px !important;
}


/* .qp-detail-value .qp-currency {
    content: "";
    display: inline-block;
    background-image: url(../images/saudi.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 12px;
} */

#qp-max-warning .qp-currency .cls-1 {
    fill: #c62828;
}

#qp-tab-custom .qp-currency .cls-1 {
    fill: #000;
}

#qp-max-warning-custom .qp-currency .cls-1 {
    fill: #c62828;
}

#qp-success-submit {
    max-width: 817px;
    margin: auto;
}

/* Error Message */
.qp-error-message {
    color: #333;
    font-size: 20px;
    margin-bottom: 16px;
    /* text-align: center; */
    min-height: 20px;
    display: none;
    background: #fdf4f4;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid #FF0000;
}

#qp-error-1>svg {
    float: left;
    margin: 0 8px;
}

/* Loading Spinner */
.qp-processing {
    text-align: center;
    padding: 60px 20px;
}

.qp-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--qp-border);
    border-top-color: var(--qp-primary);
    border-radius: 50%;
    animation: qp-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes qp-spin {
    to {
        transform: rotate(360deg);
    }
}

.qp-processing p {
    color: #666;
    font-size: 15px;
}

.qp-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.86);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    max-width: calc(100% - 40px);
    text-align: center;
    word-break: break-word;
}

.qp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    /* .zain-quick-pay-widget {
        border-radius: 0;
        box-shadow: none;
    } */

    .qp-form-group {
        flex-direction: column;
    }

    .qp-btn-primary {
        justify-content: center;
    }

    .qp-card-input-group {
        /* flex-wrap: wrap; */
        align-items: baseline;

    }

    .qp-payment-methods .qp-card-icon {
        transform: translateY(5px);
    }

    .qp-card-input:first-of-type {
        width: 100%;
        flex: none;
    }
}

/* Error Banner */
.qp-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    margin: 24px 24px 0;
    background: #FFF2F2;
    border-radius: var(--qp-radius-sm);
    border: 1px solid #FF0000;
    border-radius: 12px;
    position: relative;
}

.qp-error-banner-close {
    background-color: transparent !important;
    font-size: 28px !important;
    padding: 0 !important;
    box-shadow: unset !important;
    color: #000 !important;
}

.qp-error-banner-icon {
    color: #e53935;
    flex-shrink: 0;
}

body #content .payment-card-label button[disabled] {
    background: #F5F5F5 !important;
    color: #969991 !important;
    box-shadow: none !important;
}

body #content .payment-card-label button[disabled]:hover {
    cursor: not-allowed;
}

.qp-error-banner-content {
    flex: 1;
}

.qp-error-banner-content strong {
    display: block;
    color: var(--qp-secondary);
    font-size: 18px;
    margin-bottom: 4px;
}

.qp-error-banner-content p {
    color: #666;
    font-size: 16px !important;
    margin: 0;
    line-height: 1.4;
}

.qp-error-banner-close {
    background: none;
    border: none;
    font-size: 36px !important;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#qp-3ds-container .qp-3ds-header {
    background: transparent !important;
}

#qp-3ds-container .qp-3ds-header h2 {
    color: #000 !important;
}

/* Partial Payment Warning */
.qp-partial-warning {
    background: #fff8e1;
    color: #f57c00;
    padding: 12px 16px;
    border-radius: var(--qp-radius-sm);
    font-size: 18px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Success Screen */
.qp-success-content {
    text-align: center;
    padding: 20px 0;
    padding: 16px;
}

.qp-success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--qp-primary);
}

.qp-success-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--qp-secondary);
    margin: 0 0 8px 0;
}

.qp-success-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Rating Section */
.qp-rating-section {
    background: var(--qp-bg-light);
    border-radius: var(--qp-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    max-width: 817px;
    margin-left: auto;
    margin-right: auto;
}

.qp-rating-section h3 {
    font-size: 32px !important;
    font-weight: 600;
    color: #666;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.qp-rating-emojis {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.qp-emoji {
    width: 44px;
    height: 44px;
    padding: 8px !important;
    background: white;
    border: 1px solid var(--qp-border);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* filter: grayscale(100%); */
    opacity: 0.6;
}

.qp-emoji:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.qp-emoji.selected {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--qp-primary);
    transform: scale(1.15);
}

/* Feedback Section */
.qp-feedback-section {
    background: var(--qp-bg-light);
    border-radius: var(--qp-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    text-align: start;
    max-width: 817px;
    margin-left: auto;
    margin-right: auto;
}

.qp-feedback-section h3 {
    font-size: 20px !important;
    /* font-weight: 700 !important; */
    color: var(--qp-secondary);
    margin: 0 0 12px 0;
}

.qp-feedback-subtitle {
    font-size: 16px !important; 
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.qp-feedback-section h4 {
    font-size: 18px !important;
    font-weight: 600;
    color: var(--qp-secondary);
    margin: 12px 0 !important;
}

.qp-feedback-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.qp-feedback-reason-btn {
    background: white;
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius-sm);
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: var(--qp-secondary);
    cursor: pointer;
    transition: all 0.2s;
    /* text-align: start; */
}

.qp-feedback-reason-btn:hover {
    border-color: var(--qp-primary);
    background: #f0f8ed;
}

.qp-feedback-reason-btn.selected {
    background: var(--qp-primary);
    color: white;
    border-color: var(--qp-primary);
}

.qp-feedback-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-top: 12px;
}

.qp-feedback-textarea:focus {
    outline: none;
    border-color: var(--qp-primary);
}

/* Payment Details */
.qp-payment-details {
    background: white;
    border: 1px solid #3333331F;
    border-radius: 12px;
    box-shadow: 0px 0px 10px 0px #0000001A;
    padding: 23px 18px;
    text-align: start;
    max-width: 817px;
    margin: 4px auto 32px;

}

#qp-download-invoice {
    position: relative;
    margin-top: 14px;
    background: unset;
    color: #70a838;
    border: unset;
    box-shadow: none;
    transition: 0.6s;
    width: fit-content;
    padding: 12px 0;
}

/* #qp-download-invoice:hover {
    text-decoration: underline;
} */

.zain-quick-pay-widget:has(.qp-screen-4.active) {
    max-width: 100%;
    /* max-width: 813px; */
    margin: auto;
    margin-bottom: 50px;
}

.qp-screen-4 {
    padding: 0 24px;
}


.qp-payment-details h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--qp-secondary);
    margin: 0 0 16px 0;
}

.qp-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.qp-detail-row:last-of-type {
    border-bottom: none;
}

#qp-copy-reference {
    border-radius: 0;
    box-shadow: none;
    padding: 0 !important;
    background-color: transparent !important;
}

#qp-copy-reference svg {
    color: #70A838;
}

.qp-detail-label {
    color: #666;
    font-size: 14px;
}

.qp-detail-value {
    color: var(--qp-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qp-success-currency-wrap {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    direction: ltr !important;
    unicode-bidi: embed;
    gap: 4px;
}

.qp-copy-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.qp-copy-btn:hover {
    color: var(--qp-primary);
}

.qp-copy-btn.copied {
    color: var(--qp-primary);
}

.qp-btn-outline {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--qp-primary);
    border: 1px solid var(--qp-primary);
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    max-width: 617px;
    margin: auto;
}

.qp-btn-outline:hover {
    background: rgba(0, 111, 83, 0.05);
}

.qp-btn-success {
    width: 75%;
    margin: auto;
    padding: 16px !important;
    background: var(--qp-primary);
    color: white;
    font-size: 20px !important;
    font-weight: 600;
}

.qp-btn-success:hover {
    background: var(--qp-primary-dark);
}

/* 3DS Container */
.qp-3ds-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

#qp-sadad-popup {
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
    padding: 32px;
}

#qp-sadad-popup .qp-3ds-header,
#qp-sadad-popup .qp-sadad-journey-content {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
}

#qp-sadad-popup .qp-3ds-header {
    background: var(--qp-primary);
    color: white;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#qp-sadad-popup .qp-sadad-journey-content {
    background: white;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(70vh - 72px);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}

#qp-sadad-popup .qp-sadad-journey-content ol {
    padding-left: 1.2rem;
    margin: 0;
    color: #333;
    line-height: 1.8;
}

#qp-sadad-popup .qp-close-btn {
    color: white;
}

.qp-3ds-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid var(--qp-border);
    background: var(--qp-primary);
    color: white;
}

.qp-3ds-header h2 {
    font-size: 24px !important;
    font-weight: 600;
    color: white;
    margin: 0;
}

.qp-3ds-header .qp-close-btn {
    position: absolute;
    left: unset;
    right: 24px;
    color: white !important;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#qp-3ds-container #qp-close-3ds{
    color: #000 !important;
}

.qp-3ds-header .qp-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qp-3ds-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

html[dir=rtl] .qp-amount-box>#qp-due-amount::after,
html[dir=rtl] .qp-custom-amount-input::after {
    content: "";
    display: inline-block;
    background-image: url(../images/saudi.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 48px;
}


@media(max-width:768px) {
    .qp-3ds-header h2  {
        font-size: 18px !important;
    }
}


.qp-custom-amount-input{
    position:relative;
    display:inline-flex;
}

#mirror{
    position:absolute;
    visibility:hidden;
    white-space:pre;
    font-size:48px;
    font-weight:700;
    line-height:1;
    padding:0;
    min-width: 49px;
}

.qp-custom-amount-input #qp-custom-amount{
    width:auto;
    min-width:50px;
    border:0;
    text-align:center;
    font-size:48px;
    font-weight:700;
    padding:0;
    margin-left: 8px;

}