/* Magala checkout — cart badge, payment chips, listing CTAs */
.magala-cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #008080;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    margin-left: 8px;
}
.magala-cart-badge .magala-cart-count {
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e21d38;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.magala-pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 8px;
}
.magala-pay-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 128, 128, 0.15);
    color: #5eead4;
    border: 1px solid rgba(0, 128, 128, 0.35);
}
.magala-pay-badge.cod { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); }
.item-card, .shop-card {
    color: #e2e8f0;
}
.item-card .item-title, .item-card h3, .shop-card h3 {
    color: #f8fafc !important;
}
.magala-card-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.magala-btn-cart {
    background: #008080 !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.magala-btn-cart:hover { background: #0f766e !important; color: #fff !important; }
.magala-btn-ghost {
    background: transparent;
    border: 1px solid #64748b;
    color: #e2e8f0 !important;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
}
.magala-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #072a2e;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 1px solid #008080;
    max-width: 320px;
}
.magala-checkout-box.magala-unified {
    margin-top: 16px;
    max-width: 100%;
}
.magala-buyer-chip {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #134e4a;
}
.magala-ship { margin-top: 4px; color: #0f766e; font-size: 12px; }
.magala-login-gate { font-weight: 700; }
.magala-pay-option.disabled { opacity: 0.55; cursor: not-allowed; }
#page-cart .shopping-cart-header { color: #f8fafc !important; }
#page-cart .cart-empty.frappe-card {
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}
#page-cart .cart-empty .cart-empty-state img {
    max-height: 140px;
    width: auto;
}
.magala-checkout-box {
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 22px;
    margin: 18px 0 40px;
    border: 1px solid #cbd5e1;
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.magala-checkout-box h4 { font-weight: 800; color: #072a2e; }
.magala-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: #f8fafc;
    transition: all .2s ease;
    flex: 1 1 0;
    min-width: 180px;
    position: relative;
}
.magala-pay-option:hover { border-color: #94a3b8; background: #f1f5f9; }
.magala-pay-option.selected { border-color: #008080; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(0,128,128,.12); }
.magala-pay-option input[type=radio] { display: none; }
.magala-pay-option.disabled { opacity: 0.55; cursor: not-allowed; }
.magala-pay-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.magala-pay-label { font-weight: 700; font-size: 14px; color: #0f172a; }
.magala-pay-desc { font-size: 12px; color: #64748b; margin-top: 2px; line-height: 1.4; max-height: 0; overflow: hidden; transition: max-height .25s ease, margin .25s ease; }
.magala-pay-option.selected .magala-pay-desc { max-height: 120px; margin-top: 4px; }
.magala-pay-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.magala-field { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.magala-place-btn {
    width: 100%;
    background: #008080;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 800;
    font-size: 15px;
}
#product-listing .item-card {
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #e2e8f0 !important;
}
