/* Apple Pay Test Store - Site Styles */
/* Following JustEatTakeaway ApplePayJSSample pattern */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

header .subtitle {
    color: #86868b;
    font-size: 16px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.product-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card .description {
    color: #86868b;
    margin-bottom: 24px;
}

.price-section,
.email-section {
    margin-bottom: 20px;
}

.price-section label,
.email-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.price-section input,
.email-section input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.price-section input:focus,
.email-section input:focus {
    border-color: #0071e3;
}

#apple-pay-button-container {
    margin-top: 24px;
}

/* Apple Pay button styling */
apple-pay-button {
    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 48px;
    --apple-pay-button-border-radius: 8px;
    --apple-pay-button-padding: 0;
    display: block;
}

#apple-pay-unavailable {
    background: #fff3cd;
    color: #856404;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.status-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    min-height: 44px;
}

.status-message:empty {
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
}

.status-message.info {
    background: #e7f3ff;
    color: #0c5460;
}

.info-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.info-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-section ul {
    list-style: none;
    color: #86868b;
    font-size: 14px;
}

.info-section ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.info-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0071e3;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #86868b;
    font-size: 12px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }

    header h1 {
        font-size: 24px;
    }

    .product-card {
        padding: 24px;
    }
}
