.ad-license-payment-section {
    --panel-white: #fff;
    --panel-gray-100: #f4f4f4;
    --panel-gray-200: #e6e6e6;
    --panel-gray-500: #999;
    --panel-gray-900: #111;
    --panel-primary: #6a5d8b;
    /* Match Listing step body text (Inter / wizard), not client payment page fonts */
    font-family: inherit;
}

.ad-license-payment-section .left {
    display: flex;
    flex-direction: column;
    width: 360px;
    align-items: stretch;
    gap: 16px;
}

.ad-license-payment-section .breakdown {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-license-payment-section .ad-license-payment-title {
    margin: 0;
    width: 100%;
}

.ad-license-payment-section .breakdown-2 {
    width: 100%;
    background: var(--panel-white);
    border: 1px solid var(--panel-gray-200);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-license-payment-section .mail,
.ad-license-payment-section .mail-2 {
    min-height: 58px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ad-license-payment-section .mail {
    border-bottom: 1px solid var(--panel-gray-200);
}

.ad-license-payment-section .mail-2 {
    background-color: var(--panel-gray-100);
}

.ad-license-payment-section .div-2,
.ad-license-payment-section .div-3 {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--panel-gray-900);
    font-size: 16px;
}

.ad-license-payment-section .span,
.ad-license-payment-section .text-wrapper-10 {
    font-weight: 500;
}

.ad-license-payment-section .text-wrapper-9 {
    color: var(--panel-gray-500);
    font-size: 16px;
    font-weight: 500;
}

.ad-license-payment-section .text-wrapper-11 {
    color: rgb(34, 38, 42);
    font-size: 16px;
    font-weight: 600;
}

.ad-license-payment-section .payment-method {
    width: 360px;
}

.ad-license-payment-section fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.ad-license-payment-section .field {
    height: 48px;
    border: 1px solid var(--panel-gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 10px;
    background: var(--panel-white);
    cursor: pointer;
}

.ad-license-payment-section .payment-method-icon {
    position: relative;
    width: 48px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
}

.ad-license-payment-section .apple-pay {
    position: absolute;
    width: 71.74%;
    height: 43.41%;
    top: 29.17%;
    left: 14.49%;
}

.ad-license-payment-section .group {
    position: relative;
    width: 48px;
    height: 16px;
}

.ad-license-payment-section .group img {
    position: absolute;
}

.ad-license-payment-section .vector { width: 42.30%; height: 42.26%; top: 57.67%; left: 0; }
.ad-license-payment-section .vector-2 { width: 42.30%; height: 42.30%; top: 0; left: 0; }
.ad-license-payment-section .vector-3 { width: 10.58%; height: 49.27%; top: 49.98%; left: 77.36%; }
.ad-license-payment-section .vector-4 { width: 10.20%; height: 34.99%; top: 64.97%; left: 89.75%; }
.ad-license-payment-section .vector-5 { width: 10.20%; height: 35.03%; top: 64.97%; left: 65.35%; }
.ad-license-payment-section .vector-6 { width: 16.10%; height: 33.94%; top: 65.01%; left: 47.44%; }
.ad-license-payment-section .vector-7 { width: 27.04%; height: 35.89%; top: 0; left: 72.96%; }
.ad-license-payment-section .vector-8 { width: 24.39%; height: 38.95%; top: 0; left: 47.44%; }

.ad-license-payment-section .asset {
    width: 45px;
    height: 16px;
}

.ad-license-payment-section .mastercard {
    position: absolute;
    width: 30px;
    height: 18px;
    top: 7px;
    left: 8px;
}

.ad-license-payment-section .visa-logo {
    position: absolute;
    width: 68.99%;
    height: 32.58%;
    top: 33.75%;
    left: 13.91%;
}

.ad-license-payment-section .placeholdertext,
.ad-license-payment-section .placeholdertext-2 {
    flex: 1;
    color: var(--panel-gray-500);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ad-license-payment-section .radio-buttons {
    width: 20px;
    height: 20px;
    border: 1px solid var(--panel-gray-200);
    border-radius: 50%;
    position: relative;
    flex: 0 0 20px;
}

.ad-license-payment-section .field input[type="radio"]:checked ~ .radio-buttons {
    border-color: var(--panel-primary);
}

.ad-license-payment-section .field input[type="radio"]:checked ~ .radio-buttons::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--panel-primary);
    top: 5px;
    left: 5px;
}

.ad-license-payment-section .button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: var(--radius-control);
    background: linear-gradient(135deg,#6A5D8B,#8B7BAF);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.ad-license-payment-section .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Section placement in listing step:
   RTL (Arabic) -> physical left  |  LTR (English) -> physical right
   The page root may be dir=rtl; flex "start/end" follow that unless we isolate. */
.ad-license-payment-wrap {
    display: flex;
    width: 100%;
    direction: ltr;
}

.ad-license-payment-wrap-rtl {
    justify-content: flex-end;
}

.ad-license-payment-wrap-ltr {
    justify-content: flex-start;
}

/* Opposite-direction portal rule at panel level */
/* Partner portal uses opposite direction semantics for this section:
   dir=ltr should render RTL-style layout, and dir=rtl should render LTR-style layout. */
.ad-license-payment-section[dir="ltr"] .mail,
.ad-license-payment-section[dir="ltr"] .mail-2,
.ad-license-payment-section[dir="ltr"] .field {
    flex-direction: row-reverse;
}

.ad-license-payment-section[dir="ltr"] .div-2,
.ad-license-payment-section[dir="ltr"] .div-3 {
    justify-content: flex-end;
    text-align: right;
}

.ad-license-payment-section[dir="ltr"] .text-wrapper-6,
.ad-license-payment-section[dir="ltr"] .text-wrapper-12,
.ad-license-payment-section[dir="ltr"] .text-wrapper-9,
.ad-license-payment-section[dir="ltr"] .text-wrapper-11,
.ad-license-payment-section[dir="ltr"] .placeholdertext,
.ad-license-payment-section[dir="ltr"] .placeholdertext-2 {
    direction: rtl;
    text-align: right;
}

.ad-license-payment-section[dir="rtl"] .mail,
.ad-license-payment-section[dir="rtl"] .mail-2,
.ad-license-payment-section[dir="rtl"] .field {
    flex-direction: row-reverse !important;
}

.ad-license-payment-section[dir="rtl"] .div-2,
.ad-license-payment-section[dir="rtl"] .div-3 {
    justify-content: flex-start;
    text-align: left;
}

.ad-license-payment-section[dir="rtl"] .ad-license-payment-title,
.ad-license-payment-section[dir="rtl"] .text-wrapper-9,
.ad-license-payment-section[dir="rtl"] .text-wrapper-11,
.ad-license-payment-section[dir="rtl"] .placeholdertext,
.ad-license-payment-section[dir="rtl"] .placeholdertext-2 {
    direction: ltr;
    text-align: left;
}

/* Partner wizard: keep Verify button geometry aligned with client screen */
#licenseVerifyCard .new-ad-license-inline-row {
    align-items: stretch;
}

#licenseVerifyCard #verifyLicenseBtn {
    height: 48px !important;
    min-height: 48px !important;
    min-width: 108px !important;
    padding: 0 24px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

#licenseVerifyCard #verifyLicenseBtn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

@media (max-width: 639.98px) {
    #licenseVerifyCard #verifyLicenseBtn {
        width: 100% !important;
        min-width: 0 !important;
    }
}