/* =========================================================
   SUHAVIMART — CART + CHECKOUT PAYMENT OPTIONS
   READABLE / PREMIUM / 5% ADVANCE EMPHASIS
   ========================================================= */

.suhavi-payment-options-location{width:100%;box-sizing:border-box}

.suhavi-cart-checkout-payment-options{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    margin:0 0 16px;
    padding:0;
    box-sizing:border-box;
    background:#fffaf0;
    border:1px solid #d9d1bb;
    border-radius:9px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.035);
}

.suhavi-payment-option{
    display:flex;
    align-items:flex-start;
    min-width:0;
    gap:12px;
    padding:14px 13px;
    box-sizing:border-box;
    background:#fffaf0;
    position:relative;
}

.suhavi-payment-option+.suhavi-payment-option{
    border-left:1px solid #ddd2ae;
}

/* Diagonal/corner treatment: first starts top-left, last ends bottom-right */
.suhavi-payment-option:first-child::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:3px;
    background:#d6ad3b;
    z-index:2;
}

.suhavi-payment-option:first-child::after{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:3px;
    height:100%;
    background:#d6ad3b;
    z-index:2;
}

.suhavi-payment-option:last-child::before{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:100%;
    height:3px;
    background:#d6ad3b;
    z-index:2;
}

.suhavi-payment-option:last-child::after{
    content:"";
    position:absolute;
    right:0;
    top:0;
    width:3px;
    height:100%;
    background:#d6ad3b;
    z-index:2;
}

/* Part payment for orders above ₹70,000 */
.suhavi-payment-option-part-payment{
    background:#fffaf0;
}

.suhavi-payment-option-part-payment .suhavi-payment-option-icon{
    background:#f7f3e5;
    color:#8a6800;
    border-color:#d6ad3b;
    font-size:14px;
    font-weight:900;
}

.suhavi-payment-option-part-payment .suhavi-payment-option-title{
    color:#211d0d;
}

.suhavi-payment-option-part-payment .suhavi-payment-option-text{
    color:#514b32;
}

.suhavi-payment-option-part-payment .suhavi-payment-option-note{
    color:#7b641c;
}

/* 5% Advance — primary conversion option */
.suhavi-payment-option-advance{
    background:#fffaf0;
}

.suhavi-payment-option-advance .suhavi-payment-option-icon{
    flex:0 0 46px;
    width:46px;
    height:46px;
    background:#e6b900;
    color:#fff;
    border:1px solid #c99e00;
    border-radius:7px;
    box-shadow:0 2px 5px rgba(198,157,0,.18);
    font-size:13px;
    font-weight:900;
}

.suhavi-payment-option-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 40px;
    width:40px;
    height:40px;
    box-sizing:border-box;
    background:#f7f3e5;
    color:#8a6800;
    border:1px solid #ead99a;
    border-radius:6px;
    font-size:10px;
    font-weight:800;
    line-height:1;
}

.suhavi-payment-option-content{
    flex:1;
    min-width:0;
}

.suhavi-payment-option-title{
    margin:0 0 5px;
    color:#222;
    font-size:14px;
    font-weight:800;
    line-height:1.2;
}

.suhavi-payment-option-advance .suhavi-payment-option-title{
    color:#211d0d;
}

.suhavi-payment-option-advance .suhavi-payment-option-title::after{
    content:"PAY ONLY 5% NOW";
    display:inline-flex;
    align-items:center;
    margin-left:7px;
    padding:4px 6px;
    background:#d6ad3b;
    color:#fff;
    border-radius:3px;
    font-size:8px;
    font-weight:900;
    line-height:1;
    vertical-align:middle;
    white-space:nowrap;
}

.suhavi-payment-option-text{
    margin:0;
    color:#555;
    font-size:11.5px;
    font-weight:500;
    line-height:1.4;
}

.suhavi-payment-option-advance .suhavi-payment-option-text{
    color:#514b32;
}

.suhavi-payment-option-text strong{
    color:#806000;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
}

.suhavi-payment-option-note{
    margin-top:5px;
    color:#8b8062;
    font-size:9.5px;
    font-weight:600;
    line-height:1.25;
}

.suhavi-payment-option-advance .suhavi-payment-option-note{
    color:#7b641c;
}

.suhavi-payment-option-call{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-top:8px;
    padding:6px 10px;
    background:#f0c400;
    color:#222!important;
    border-radius:5px;
    font-size:10.5px;
    font-weight:750;
    line-height:1;
    text-decoration:none!important;
}

.suhavi-payment-option-call:hover{
    background:#ddb300;
    color:#222!important;
}

/* =========================================================
   CART — SPACIOUS SINGLE COLUMN
   ========================================================= */

.woocommerce-cart .suhavi-payment-options-cart .suhavi-cart-checkout-payment-options{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    margin:0 0 18px!important;
    border-radius:9px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option{
    width:100%!important;
    min-height:88px!important;
    padding:15px 17px!important;
    align-items:flex-start!important;
    gap:13px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option+.suhavi-payment-option{
    border-left:0!important;
    border-top:1px solid #ddd2ae!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-icon{
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-advance .suhavi-payment-option-icon{
    flex-basis:48px!important;
    width:48px!important;
    height:48px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-title{
    font-size:14px!important;
    margin-bottom:5px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-text{
    font-size:12px!important;
    line-height:1.45!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-text strong{
    font-size:13px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-note{
    margin-top:5px!important;
    font-size:9.5px!important;
}

.woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-call{
    margin-top:8px!important;
    padding:6px 10px!important;
    font-size:10.5px!important;
}

/* =========================================================
   CHECKOUT — COMPACT BUT READABLE
   ========================================================= */

.woocommerce-checkout .suhavi-payment-options-checkout .suhavi-cart-checkout-payment-options{
    margin-bottom:14px!important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:767px){

    .suhavi-cart-checkout-payment-options{
        grid-template-columns:1fr!important;
        border-radius:8px!important;
        margin-bottom:14px!important;
    }

    .suhavi-payment-option{
        padding:13px 11px!important;
        gap:10px!important;
        min-height:78px!important;
    }

    .suhavi-payment-option+.suhavi-payment-option{
        border-left:0!important;
        border-top:1px solid #ddd2ae!important;
    }

    .suhavi-payment-option-icon{
        flex-basis:38px!important;
        width:38px!important;
        height:38px!important;
    }

    .suhavi-payment-option-advance .suhavi-payment-option-icon{
        flex-basis:42px!important;
        width:42px!important;
        height:42px!important;
    }

    .suhavi-payment-option-title{
        font-size:13px!important;
        line-height:1.25!important;
    }

    .suhavi-payment-option-advance .suhavi-payment-option-title::after{
        display:block!important;
        width:max-content!important;
        margin:4px 0 5px!important;
        font-size:8px!important;
    }

    .suhavi-payment-option-text{
        font-size:11px!important;
        line-height:1.4!important;
    }

    .suhavi-payment-option-text strong{
        font-size:12px!important;
    }

    .suhavi-payment-option-note{
        font-size:9px!important;
    }

    .suhavi-payment-option-call{
        margin-top:7px!important;
        padding:6px 9px!important;
        font-size:10px!important;
    }

    /* CART remains spacious on mobile */
    .woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option{
        min-height:82px!important;
        padding:13px 11px!important;
        gap:10px!important;
    }

    .woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-advance .suhavi-payment-option-icon{
        flex-basis:42px!important;
        width:42px!important;
        height:42px!important;
    }

    .woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-title{
        font-size:13px!important;
    }

    .woocommerce-cart .suhavi-payment-options-cart .suhavi-payment-option-text{
        font-size:11px!important;
    }

    /* Corner treatment stays on first/last cards when stacked */
    .suhavi-payment-option:first-child::before{
        width:100%!important;
        height:3px!important;
    }

    .suhavi-payment-option:first-child::after{
        left:0!important;
        top:0!important;
        width:3px!important;
        height:100%!important;
    }

    .suhavi-payment-option:last-child::before{
        right:0!important;
        bottom:0!important;
        width:100%!important;
        height:3px!important;
    }

    .suhavi-payment-option:last-child::after{
        right:0!important;
        top:0!important;
        width:3px!important;
        height:100%!important;
    }
}
