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

html, body {
    width: 100%;
    height: 100%;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.checkout {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 20px 16px;
}

.checkout-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

/* Fields */
.field-group {
    margin-bottom: 12px;
    flex: 1;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.field-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
    color: #111827;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    -webkit-appearance: none;
}

.field-input::placeholder {
    color: #9ca3af;
}

.field-input:focus {
    border-color: #6366f1;
    background: #ffffff;
}

.field-input.error {
    border-color: #ef4444;
}

.field-input.valid {
    border-color: #10b981;
}

.field-error {
    display: block;
    font-size: 11px;
    color: #ef4444;
    margin-top: 3px;
    min-height: 14px;
}

.field-row {
    display: flex;
    gap: 10px;
}

.divider {
    height: 1px;
    background: #f3f4f6;
    margin: 14px 0;
}

/* Apple Pay button — стандартний Safari стиль */
.apple-pay-btn {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: plain;
    -apple-pay-button-style: black;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.apple-pay-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Status */
.status {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.status-ready      { color: #6b7280; background: transparent; }
.status-validating { color: #2563eb; background: #eff6ff; }
.status-authorized { color: #7c3aed; background: #f5f3ff; }
.status-decrypted  { color: #059669; background: #ecfdf5; }
.status-failed     { color: #dc2626; background: #fef2f2; }
