/**
 * Tap Payments — Cart Page Express Buy  v3.6.2
 */

/* ── Container ─────────────────────────────────────────── */

.tap-cart-buy {
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
}

/* ── Divider ───────────────────────────────────────────── */

.tap-cart-buy__divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0;
    gap: 12px;
}

.tap-cart-buy__divider::before,
.tap-cart-buy__divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #ddd;
}

.tap-cart-buy__divider span {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── Buttons ───────────────────────────────────────────── */

.tap-cart-btn {
    margin: 8px 0;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
    border-radius: 8px;
}

/* Google Pay button — fill + rounded corners */
.tap-cart-btn .gpay-button-fill,
.tap-cart-btn button.gpay-button {
    width: 100% !important;
    min-height: 48px;
    border-radius: 8px !important;
}

/* Apple Pay button — match Google Pay height */
.tap-cart-btn apple-pay-button,
.tap-cart-btn .apple-pay-button,
.tap-cart-btn > div {
    width: 100%;
    height: 48px !important;
    max-height: 48px !important;
}

/* ── Error ─────────────────────────────────────────────── */

#tap-cart-errors {
    color: #cc0000;
    font-size: 13px;
    line-height: 1.4;
    margin: 6px 0;
    padding: 8px 12px;
    background: #fff0f0;
    border-left: 3px solid #cc0000;
    border-radius: 3px;
}

/* ── Processing overlay ────────────────────────────────── */

.tap-cart-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
}

.tap-cart-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: tap-cart-spin 0.7s linear infinite;
}

@keyframes tap-cart-spin {
    to { transform: rotate(360deg); }
}
