/**
 * Tap Payments — Product Page Express Buy  v3.5.0
 */

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

.tap-product-buy {
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
}

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

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

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

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

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

.tap-pp-btn {
    margin: 8px 0;
    min-height: 44px;
}

/* Google Pay button — fill container width */
.tap-pp-btn .gpay-button-fill,
.tap-pp-btn button.gpay-button {
    width: 100% !important;
    min-height: 44px;
}

/* Apple Pay button — fill container width */
.tap-pp-btn apple-pay-button,
.tap-pp-btn .apple-pay-button,
.tap-pp-btn > div {
    width: 100%;
}

/* ── Disabled state (variable product, no variation chosen) ── */

.tap-pp-disabled .tap-pp-btn {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.5);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

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

#tap-pp-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-pp-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
}

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

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