/* HomePro payment presentation. No global .btn, form, or admin overrides. */
.hprc-payment-button,
.btn.hprc-payment-button,
.button.hprc-payment-button {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    min-height: 54px;
    height: auto;
    margin: 10px 0 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    text-decoration: none !important;
    text-shadow: none;
    white-space: normal;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow .16s ease, filter .16s ease, transform .16s ease;
}
.hprc-payment-button.hprc-payment-paypal {
    background-color: #0068ba;
    background-image: linear-gradient(125deg, #087ad5 0%, #0065b7 68%, #005eaa 100%);
    border-color: #0068ba;
    box-shadow: 0 4px 10px rgba(0, 74, 135, .14);
}
.hprc-payment-button.hprc-payment-stripe {
    background-color: #0eaaa6;
    background-image: linear-gradient(125deg, #0eaaa6 0%, #088f8c 68%, #078582 100%);
    border-color: #099b97;
    box-shadow: 0 4px 10px rgba(5, 114, 110, .14);
}
.hprc-payment-button:visited,
.hprc-payment-button:hover,
.hprc-payment-button:focus,
.hprc-payment-button:active,
.hprc-payment-button .hprc-payment-label,
.hprc-payment-button .hprc-payment-brand,
.hprc-payment-button .pay-total,
.hprc-payment-button strong,
.hprc-payment-button .hprc-payment-icon,
.hprc-payment-button .hprc-payment-arrow {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-decoration: none !important;
}
.hprc-payment-button .hprc-payment-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.hprc-payment-button .hprc-payment-brand {
    font-size: inherit;
    font-weight: 750;
}
.hprc-payment-paypal .hprc-payment-brand {
    font-style: italic;
}
.hprc-payment-button .hprc-payment-icon {
    box-sizing: border-box;
    flex: 0 0 36px;
    width: 36px;
    padding-inline-end: 12px;
    border-inline-end: 1px solid rgba(255, 255, 255, .42);
    font-size: 23px;
    line-height: 1.1;
    text-align: start;
}
.hprc-payment-button .hprc-payment-arrow {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    line-height: 1;
}
.hprc-payment-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
}
.hprc-payment-button:focus {
    outline: 3px solid #173e4e !important;
    outline-offset: 3px;
}
.hprc-payment-button:focus:not(:focus-visible) {
    outline: none !important;
}
.hprc-payment-button:focus-visible {
    outline: 3px solid #173e4e !important;
    outline-offset: 3px;
}
@media (hover: hover) {
    .hprc-payment-button:hover:not(.disabled):not([aria-disabled="true"]):not([disabled]) {
        filter: brightness(.96);
        box-shadow: 0 6px 14px rgba(22, 51, 66, .2);
        transform: translateY(-1px);
    }
}
.hprc-payment-button:active:not(.disabled):not([aria-disabled="true"]):not([disabled]) {
    transform: translateY(0);
    filter: brightness(.91);
}
.hprc-payment-button.disabled,
.hprc-payment-button[disabled],
.hprc-payment-button[aria-disabled="true"],
.hprc-payment-button[aria-busy="true"] {
    opacity: .72;
    cursor: wait;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}
/* Keep native visibility rules intact, including paid-listing upgrades. */
.hprc-payment-button[hidden],
.hprc-payment-button[aria-hidden="true"] {
    display: none !important;
}
.price-plan-pay.hprc-payment-options,
.content-sidebar .price-plan-pay.hprc-payment-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    box-sizing: border-box;
    padding: 14px 16px 18px;
    border-top: 1px solid #e5ebed;
    text-align: center;
}
.hprc-payment-options > .hprc-payment-button,
.content-sidebar .hprc-payment-options > .hprc-payment-button {
    width: 100%;
    max-width: none;
    margin: 0 !important;
}
/* Only membership cards containing a native payment button are enhanced. */
.price-plan.hprc-payment-card {
    box-sizing: border-box;
    max-width: 100%;
    margin-bottom: 22px;
    border: 1px solid #dfe6ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 44, 59, .07);
    overflow: visible;
}
.hprc-payment-card > .price-plan-title,
.content-sidebar .hprc-payment-card > .price-plan-title {
    padding: 15px 16px;
    border-radius: 11px 11px 0 0;
    background: linear-gradient(115deg, #25343e, #30414a);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    letter-spacing: .3px;
}
.hprc-payment-card > .price-plan-price,
.content-sidebar .hprc-payment-card > .price-plan-price {
    padding: 20px 16px 16px;
    border-bottom: 1px solid #e5ebed;
}
.hprc-payment-card .price-plan-price-sum,
.content-sidebar .hprc-payment-card .price-plan-price-sum {
    color: #1d2c36;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.7px;
    overflow-wrap: anywhere;
}
.hprc-payment-card .price-plan-price-sum > sup,
.hprc-payment-card .price-plan-price-sum > span,
.content-sidebar .hprc-payment-card .price-plan-price-sum > sup,
.content-sidebar .hprc-payment-card .price-plan-price-sum > span {
    top: 0;
    color: #58656e;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    vertical-align: baseline;
    letter-spacing: 0;
}
.hprc-payment-card .price-plan-price-period,
.content-sidebar .hprc-payment-card .price-plan-price-period {
    margin-top: 6px;
    color: #687780;
    font-size: 14px;
    line-height: 1.5;
}
.hprc-payment-card > .price-plan-features,
.content-sidebar .hprc-payment-card > .price-plan-features {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 12px 16px;
}
.hprc-payment-card > .price-plan-features > span,
.content-sidebar .hprc-payment-card > .price-plan-features > span {
    box-sizing: border-box;
    position: relative;
    display: block;
    max-width: 100%;
    margin: 6px 0;
    padding-inline-start: 27px;
    color: #2b3942;
    font-size: 15px;
    line-height: 1.5;
    text-align: start;
    overflow-wrap: anywhere;
}
.hprc-payment-card > .price-plan-features > span::before {
    box-sizing: border-box;
    position: absolute;
    top: 2px;
    inset-inline-start: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0eaaa6;
    color: #fff;
    content: '\2713';
    font: 700 12px/18px Arial, sans-serif;
    text-align: center;
}
[dir="rtl"] .hprc-payment-arrow,
.rtl .hprc-payment-arrow {
    transform: scaleX(-1);
}
@media (max-width: 480px) {
    .price-plan-pay.hprc-payment-options,
    .content-sidebar .price-plan-pay.hprc-payment-options {
        padding: 12px 12px 16px;
    }
    .hprc-payment-button,
    .btn.hprc-payment-button,
    .button.hprc-payment-button {
        gap: 10px;
        padding: 12px;
        min-height: 54px;
        font-size: 16px;
    }
    .hprc-payment-card .price-plan-price-sum,
    .content-sidebar .hprc-payment-card .price-plan-price-sum {
        font-size: 32px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hprc-payment-button,
    .btn.hprc-payment-button {
        transition: none;
        transform: none !important;
    }
}

/* 1.2.3: the native membership sidebar becomes a desktop column at 992px.
 * Keep its controls compact without changing phone/tablet layouts, main-page
 * plan grids, standalone checkout buttons, or paid-listing actions.
 * Only decoration is hidden: the actual payment buttons and labels stay intact.
 */
@media (min-width: 992px) {
    .content-sidebar .price-plan.hprc-payment-card > .price-plan-pay.hprc-payment-options {
        gap: 8px;
        padding: 12px 10px 14px;
    }
    .content-sidebar .price-plan-pay.hprc-payment-options > .hprc-payment-button {
        min-height: 44px;
        height: auto;
        gap: 7px;
        padding: 10px 8px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 20px;
    }
    .content-sidebar .price-plan-pay.hprc-payment-options > .hprc-payment-button .hprc-payment-icon {
        flex: 0 0 18px;
        width: 18px;
        padding-inline-end: 0;
        border-inline-end: 0;
        font-size: 18px;
        line-height: 1;
        text-align: center;
    }
    .content-sidebar .price-plan-pay.hprc-payment-options > .hprc-payment-button .hprc-payment-arrow {
        display: none;
    }
    .content-sidebar .price-plan-pay.hprc-payment-options > .hprc-payment-button .hprc-payment-label {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        font-size: inherit;
        line-height: inherit;
        /* Standard English labels fit on one line. Allow longer translations
         * and enlarged text to wrap rather than clip a payment method name. */
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}
