.payment_method_etogo_gateway .etogo-method-card {
    background: linear-gradient(145deg, #0f172a, #111827);
    border: 1px solid #25324a;
    border-radius: 12px;
    padding: 14px;
    color: #e5e7eb;
}

.payment_method_etogo_gateway .etogo-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.payment_method_etogo_gateway .etogo-logo {
    width: auto;
    height: 28px;
    max-width: 220px;
    object-fit: contain;
}

.payment_method_etogo_gateway .etogo-secure-label {
    display: inline-block;
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 12px;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.payment_method_etogo_gateway .etogo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment_method_etogo_gateway .etogo-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1;
    color: #e2e8f0;
    background: #111827;
}

.payment_method_etogo_gateway .etogo-note {
    margin: 12px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

.payment_method_etogo_gateway .wc-etogo-inline-embed {
    margin-top: 12px;
}

.payment_method_etogo_gateway .wc-etogo-inline-status {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    margin-bottom: 10px;
}

.payment_method_etogo_gateway .wc-etogo-inline-status.is-error {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(136, 19, 55, 0.18);
    color: #fecdd3;
}

.payment_method_etogo_gateway .wc-etogo-inline-frame-wrap {
    border-radius: 14px;
    /*
     * SAFARI / APPLE PAY FIX:
     * overflow:hidden on any ancestor of the payment iframe prevents Safari from
     * launching the native Apple Pay sheet (the OS-level payment UI is clipped/blocked).
     * Use clip-path for the visual rounded corner instead — it does NOT create a new
     * stacking/clipping context that Safari's Payment Request API cares about.
     */
    overflow: visible;
    -webkit-clip-path: inset(0 round 14px);
            clip-path: inset(0 round 14px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 20px 50px -12px rgba(0, 0, 0, 0.45);
    background: #0b1022;
}

.payment_method_etogo_gateway .wc-etogo-inline-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: #111528;
}

.payment_method_etogo_gateway .wc-etogo-inline-new-attempt {
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    font-weight: 600;
}

.payment_method_etogo_gateway .wc-etogo-inline-new-attempt:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(203, 213, 225, 0.35);
}

/* Shipment line is shown on the Etogo payment page; hide it on checkout when Etogo is selected. */
body.wc-etogo-checkout-hide-shipping.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
body.wc-etogo-checkout-hide-shipping.woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping {
    display: none !important;
}

@media (max-width: 640px) {
    .payment_method_etogo_gateway .etogo-method-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment_method_etogo_gateway .etogo-logo {
        height: 24px;
        max-width: 180px;
    }
}


#wc-etogo-modal {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.85);
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wc-etogo-modal-content {
    width:90%;
    max-width:700px;
    height:80%;
    background:#000;
    border-radius:10px;
    overflow:hidden;
    position:relative;
}

.wc-etogo-modal-content iframe {
    width:100%;
    height:100%;
}

.wc-etogo-close {
    position:absolute;
    top:10px;
    right:15px;
    font-size:22px;
    cursor:pointer;
    color:#fff;
}
