/* Checkout: no gap under Media Mate — payment opens in popup, not inline. */
.payment_method_tivimate_soar_pay .payment_box {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.payment_method_tivimate_soar_pay .tmt-checkout-hint {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.payment_method_tivimate_soar_pay .wc-tmt-inline-embed {
    margin-top: 12px;
}

.payment_method_tivimate_soar_pay .wc-tmt-inline-status {
    display: none;
    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_tivimate_soar_pay .wc-tmt-inline-status.is-error {
    display: block;
}

.payment_method_tivimate_soar_pay .wc-tmt-inline-status.is-error {
    border: 2px solid #e11d48;
    background: #fff1f2;
    color: #9f1239;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}

/* Top of checkout — visible when user scrolls up to billing fields */
.wc-tmt-checkout-top-notice {
    display: block;
    margin: 0 0 1.25em;
    padding: 14px 16px 14px 14px;
    border: 1px solid #e24040;
    border-left: 4px solid #e24040;
    border-radius: 6px;
    background: #fff5f5;
    color: #9b1c1c;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(226, 64, 64, 0.1);
}

.wc-tmt-checkout-top-notice__bullet {
    color: #e24040;
    font-weight: 700;
    margin-right: 6px;
}

.wc-tmt-checkout-top-notice__text {
    color: #7f1d1d;
}

.payment_method_tivimate_soar_pay .wc-tmt-inline-frame-wrap {
    border-radius: 14px;
    overflow: hidden;
    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_tivimate_soar_pay .wc-tmt-inline-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: #111528;
}

/* Secure payment popup (Media Mate checkout) */
.wc-tmt-payment-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.wc-tmt-payment-modal.is-open {
    display: flex;
}

html.wc-tmt-modal-open,
html.wc-tmt-modal-open body {
    overflow: hidden;
}

.wc-tmt-payment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(4px);
}

.wc-tmt-payment-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(580px, 100%);
    max-height: min(92dvh, 920px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 28px 60px -16px rgba(0, 0, 0, 0.65);
    background: #0b1022;
}

.wc-tmt-payment-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wc-tmt-payment-modal__close:hover {
    background: rgba(30, 41, 59, 0.95);
}

.wc-tmt-payment-modal.is-processing .wc-tmt-payment-modal__close {
    display: none;
}

.wc-tmt-payment-modal.is-processing .wc-tmt-payment-modal__backdrop {
    pointer-events: none;
    cursor: default;
}

.wc-tmt-payment-modal__frame-wrap {
    flex: 1 1 auto;
    min-height: 420px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.wc-tmt-payment-modal__frame-wrap iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    height: 520px;
    border: 0;
    background: #111528;
}

.payment_method_tivimate_soar_pay .wc-tmt-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_tivimate_soar_pay .wc-tmt-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 TiViMate payment page; hide it on checkout when TiViMate is selected. */
body.wc-tmt-checkout-hide-shipping.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
body.wc-tmt-checkout-hide-shipping.woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping {
    display: none !important;
}

