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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 60px;
}

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

header {
    background-color: #ffffff;
    padding: 40px 20px 20px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

h1 {
    color: #0066cc;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    font-size: 1em;
    font-weight: 400;
}

.content-section {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95em;
}

.back-link:hover {
    text-decoration: underline;
}

.consent-block {
    margin-bottom: 22px;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    transition: background-color 0.3s ease, border-left-color 0.3s ease;
}

.consent-block.nudge {
    background-color: #fff5f5;
    border-left-color: #d9534f;
    animation: consent-shake 0.45s;
}

@keyframes consent-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.55;
}

.consent-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0066cc;
}

.consent-text {
    color: #333;
    font-size: 0.95em;
}

.consent-text a {
    color: #0066cc;
    text-decoration: none;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* X-2 subtle overlay: iframe is visible (faded, slightly grey-scaled)
   so users can preview what fields they'll fill, but pointer events are
   blocked until consent is checked. */
.checkout-wrap {
    position: relative;
    min-height: 380px;
    opacity: 0.65;
    filter: grayscale(30%);
    pointer-events: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.checkout-wrap.is-unlocked {
    opacity: 1;
    filter: none;
    pointer-events: auto;
}

.checkout-mount {
    min-height: 380px;
}

.checkout-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.95em;
    pointer-events: none;
}

.checkout-error {
    color: #d9534f;
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
    padding: 14px 16px;
    margin-top: 16px;
    display: none;
}

.checkout-error.is-visible {
    display: block;
}

.error-text {
    margin: 0 0 12px;
    color: #d9534f;
    font-size: 0.95em;
    line-height: 1.5;
    word-break: break-word;
}

.error-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.error-btn-primary {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', Arial, sans-serif;
    transition: background-color 0.2s ease;
}

.error-btn-primary:hover {
    background-color: #0052a3;
}

.error-email-label {
    color: #555;
    font-size: 0.95em;
}

.error-email {
    color: #0066cc;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    user-select: all;
    transition: color 0.2s ease;
}

.error-email:hover {
    text-decoration: underline;
}

.error-email:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.7em;
    }

    .content-section {
        padding: 22px 18px;
    }

    .consent-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.45em;
    }

    header {
        padding: 30px 15px 15px 15px;
    }

    .container {
        padding: 15px;
    }

    .checkout-wrap,
    .checkout-mount {
        min-height: 340px;
    }
}
