/* Checkout refinements shared through Botble's theme integration hook. */
.checkout-page .list_payment_method {
    gap: 10px;
}

.checkout-page .list_payment_method .payment-method-item {
    min-height: 68px;
    margin: 0;
    padding: 14px 64px 14px 16px;
    overflow: hidden;
    border: 1px solid #dfe4ee;
    border-radius: 12px !important;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.checkout-page .list_payment_method .payment-method-item:hover {
    border-color: #aeb9d2;
}

.checkout-page .list_payment_method .payment-method-item:has(.js_payment_method:checked) {
    border-color: var(--checkout-primary-color);
    background: rgba(var(--checkout-primary-color-rgb), 0.035);
    box-shadow: 0 0 0 3px rgba(var(--checkout-primary-color-rgb), 0.08);
}

.checkout-page .list_payment_method .payment-method-logo {
    position: absolute;
    top: 13px;
    inset-inline-end: 14px;
    display: grid;
    width: 40px !important;
    height: 40px;
    place-items: center;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(var(--checkout-primary-color-rgb), 0.12);
    border-radius: 10px;
    background: rgba(var(--checkout-primary-color-rgb), 0.06);
}

.checkout-page .list_payment_method .payment-method-logo img {
    display: block;
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    object-fit: contain;
}

.checkout-page .list_payment_method .payment-method-item > label {
    min-height: 24px;
    margin: 0;
    line-height: 24px;
}

.checkout-page .list_payment_method .payment_collapse_wrap > p {
    padding-inline: 30px 0;
    line-height: 1.55;
}

@media (max-width: 575px) {
    .checkout-page .list_payment_method .payment-method-item {
        min-height: 64px;
        padding: 12px 58px 12px 14px;
    }

    .checkout-page .list_payment_method .payment-method-logo {
        top: 11px;
        inset-inline-end: 12px;
        width: 38px !important;
        height: 38px;
        padding: 7px;
    }

    .checkout-page .list_payment_method .payment-method-logo img {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-page .list_payment_method .payment-method-item {
        transition: none;
    }
}
