/* =====================================================
   BEEF MANIAC - CHECKOUT STRIPE STYLES
   ===================================================== */

/* Express Checkout Container */
.express-checkout-container {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-off-white) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-primary);
    text-align: center;
}

.express-checkout-title {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.express-checkout-hint {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

#express-checkout-element {
    min-height: 48px;
}

/* Express Checkout Element - multiple buttons stacked */
#express-checkout-element > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Highlight animation when coming from express checkout button */
.express-checkout-container.express-highlight {
    animation: expressHighlight 2s ease-out;
}

@keyframes expressHighlight {
    0% {
        box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* Main checkout divider between express and form */
.checkout-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-xl) 0;
    color: var(--color-gray);
    font-size: var(--font-size-sm);
}

.checkout-divider::before,
.checkout-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-gray-light);
}

.checkout-divider span {
    padding: 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.express-checkout-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-lg) 0;
    color: var(--color-gray);
    font-size: var(--font-size-sm);
}

.express-checkout-divider::before,
.express-checkout-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-gray-light);
}

.express-checkout-divider span {
    padding: 0 var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stripe Card Container */
.stripe-card-container {
    margin-bottom: var(--spacing-lg);
}

.stripe-element {
    padding: 12px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stripe-element:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.card-errors {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    min-height: 20px;
}

/* Processing state */
#place-order-btn:disabled {
    background-color: var(--color-gray);
    cursor: not-allowed;
}

/* Security note styling */
.security-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    margin-top: var(--spacing-md);
}

.security-note svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Checkout form improvements */
.checkout-form .form-section h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Loading state for checkout */
.checkout-loading {
    position: relative;
    pointer-events: none;
}

.checkout-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .express-checkout-container {
        margin-bottom: var(--spacing-md);
    }

    .express-checkout-divider {
        margin: var(--spacing-md) 0;
    }

    .stripe-element {
        padding: 14px 12px;
    }
}

/* =====================================================
   Google Places Autocomplete Styling
   ===================================================== */

/* Style the autocomplete dropdown */
.pac-container {
    font-family: var(--font-body), 'Nunito', sans-serif;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    z-index: 10000;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--color-gray-light);
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item-selected {
    background-color: rgba(196, 30, 58, 0.08);
}

.pac-item-query {
    font-weight: 600;
    color: var(--color-secondary);
}

.pac-matched {
    font-weight: 700;
    color: var(--color-primary);
}

.pac-icon {
    display: none;
}

/* Hide Google logo */
.pac-logo::after {
    display: none;
}
