/* BDGG Checkout Payment Accordion v1.2.0 */
body.bdgg-cpa-enabled #payment ul.payment_methods,
body.bdgg-cpa-enabled .woocommerce-checkout-payment ul.payment_methods {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method {
    position: relative !important;
    overflow: hidden !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 1px solid #dfe6ee !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035) !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method.bdgg-cpa-selected,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method.bdgg-cpa-selected {
    border-color: #1e73be !important;
    box-shadow: 0 0 0 1px #1e73be, 0 5px 16px rgba(30, 115, 190, .08) !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method > input.input-radio,
body.bdgg-cpa-enabled #payment li.wc_payment_method > input[type="radio"],
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > input.input-radio,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > input[type="radio"] {
    position: absolute !important;
    z-index: 3 !important;
    top: 19px !important;
    left: 15px !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    accent-color: #1e73be !important;
    cursor: pointer !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method > label,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > label {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 12px 48px 12px 45px !important;
    color: #172033 !important;
    background: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method > label::after,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > label::after {
    content: "⌄" !important;
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    color: #64748b !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transform: translateY(-57%) !important;
    transition: transform .2s ease !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method.bdgg-cpa-selected > label::after,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method.bdgg-cpa-selected > label::after {
    transform: translateY(-45%) rotate(180deg) !important;
}

body.bdgg-cpa-enabled #payment li.wc_payment_method > label img,
body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > label img {
    float: none !important;
    width: auto !important;
    max-width: 34px !important;
    max-height: 30px !important;
    margin: 0 0 0 auto !important;
    object-fit: contain !important;
}

body.bdgg-cpa-enabled #payment div.payment_box,
body.bdgg-cpa-enabled .woocommerce-checkout-payment div.payment_box {
    width: auto !important;
    margin: 0 !important;
    padding: 14px 13px 15px !important;
    border: 0 !important;
    border-top: 1px solid #dfe6ee !important;
    border-radius: 0 !important;
    background: #f5faff !important;
    color: #334155 !important;
    box-sizing: border-box !important;
}

body.bdgg-cpa-enabled #payment div.payment_box::before,
body.bdgg-cpa-enabled .woocommerce-checkout-payment div.payment_box::before {
    display: none !important;
}

body.bdgg-cpa-enabled .bdgg-account-source-hidden {
    display: none !important;
}

body.bdgg-cpa-enabled .bdgg-auto-number-wrap {
    display: block !important;
    margin: 12px 0 14px !important;
}

body.bdgg-cpa-enabled .bdgg-auto-number-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 9px 9px 13px !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

body.bdgg-cpa-enabled .bdgg-auto-number {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #172033 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: .3px !important;
    word-break: break-all !important;
}

body.bdgg-cpa-enabled .bdgg-auto-copy {
    flex: 0 0 auto !important;
    min-width: 64px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: #1e73be !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

body.bdgg-cpa-enabled .bdgg-auto-copy:hover,
body.bdgg-cpa-enabled .bdgg-auto-copy:focus {
    color: #fff !important;
    background: #155f9f !important;
    outline: none !important;
}

body.bdgg-cpa-enabled .bdgg-auto-copy.is-copied {
    background: #159447 !important;
}

body.bdgg-cpa-enabled #payment div.payment_box input[type="text"],
body.bdgg-cpa-enabled #payment div.payment_box input[type="tel"],
body.bdgg-cpa-enabled .woocommerce-checkout-payment div.payment_box input[type="text"],
body.bdgg-cpa-enabled .woocommerce-checkout-payment div.payment_box input[type="tel"] {
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    border: 1px solid #d6dde7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.bdgg-cpa-enabled #payment div.payment_box input:focus,
body.bdgg-cpa-enabled .woocommerce-checkout-payment div.payment_box input:focus {
    border-color: #1e73be !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(30, 115, 190, .12) !important;
}

@media (max-width: 480px) {
    body.bdgg-cpa-enabled #payment li.wc_payment_method > label,
    body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > label {
        min-height: 54px !important;
        padding-top: 11px !important;
        padding-bottom: 11px !important;
        font-size: 14px !important;
    }

    body.bdgg-cpa-enabled #payment li.wc_payment_method > input.input-radio,
    body.bdgg-cpa-enabled #payment li.wc_payment_method > input[type="radio"],
    body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > input.input-radio,
    body.bdgg-cpa-enabled .woocommerce-checkout-payment li.wc_payment_method > input[type="radio"] {
        top: 18px !important;
    }

    body.bdgg-cpa-enabled .bdgg-auto-number {
        font-size: 17px !important;
    }
}


/* Payment message and sender-field wording */
body.bdgg-cpa-enabled .bdgg-payment-instruction {
    margin: 0 0 10px !important;
    color: #137f32 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

body.bdgg-cpa-enabled .bdgg-payment-instruction strong {
    color: #137f32 !important;
    font-weight: 800 !important;
}

body.bdgg-cpa-enabled .bdgg-sender-number-label,
body.bdgg-cpa-enabled .bdgg-transaction-label {
    display: block !important;
    margin-bottom: 5px !important;
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

body.bdgg-cpa-enabled .bdgg-sender-helper {
    display: block !important;
    margin: -1px 0 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}
