/**
 * Express Checkout Shared Styles
 * Single source of truth for Express Checkout loading states
 */

/* Loading skeleton animation */
.express-checkout-container {
    position: relative;
}

.express-checkout-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(90deg, 
        var(--border-light, rgba(0,0,0,0.1)) 25%, 
        var(--bg-secondary, rgba(0,0,0,0.05)) 50%, 
        var(--border-light, rgba(0,0,0,0.1)) 75%);
    background-size: 200% 100%;
    animation: express-skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}

.express-checkout-container.ready::before {
    display: none;
}

/* Hide failed/unavailable express checkout sections */
.express-checkout-container.failed,
.express-checkout-divider.failed,
.limit-express-divider.failed {
    display: none !important;
}

@keyframes express-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* iDEAL express button — sits INSIDE .express-checkout-container, replacing
   the Stripe wallet element for Netherlands users (see CountryDetection in
   plan-renderer.js). Matches wallet button geometry (44px tall, 6px radius)
   so the slot looks identical regardless of which method is shown.
   iDEAL pink (#CC0066) is the official brand color; logo sits on the left
   with the brand label centered to its right (same layout pattern as our
   Apple Pay / Google Pay express buttons). */
.ideal-express-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #CC0066;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 120ms ease, transform 80ms ease;
}

.ideal-express-button:hover {
    background: #b3005a;
}

.ideal-express-button:active {
    transform: translateY(1px);
}

.ideal-express-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ideal-express-button__logo {
    display: block;
    height: 28px;
    width: auto;
    pointer-events: none;
}

.ideal-express-button__label {
    line-height: 1;
    pointer-events: none;
}
