/* The web checkout (pay.dallelha.com). Light and dark follow the device. */

:root {
    --page: #f4f5f7;
    --card: #ffffff;
    --text: #1c1c1e;
    --muted: #5f6368;
    --line: #dfe1e5;
    --accent: #0b6e4f;
    --accent-text: #ffffff;
    --soft: #eef6f2;
    --danger: #b3261e;
    --warn-bg: #fff4e5;
    --warn-text: #7a4b00;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #121315;
        --card: #1d1f22;
        --text: #e8eaed;
        --muted: #a8adb3;
        --line: #3a3d42;
        --accent: #4cc497;
        --accent-text: #0b1f17;
        --soft: #1f2c27;
        --danger: #f2b8b5;
        --warn-bg: #3a2c12;
        --warn-text: #ffd68a;
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 24px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

h1 {
    margin: 0;
    font-size: 1.25rem;
}

p {
    margin: 0 0 12px;
}

.muted {
    color: var(--muted);
}

.nowrap {
    white-space: nowrap;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
}

input:focus,
button:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

button,
.button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-text);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.button.secondary {
    background: transparent;
    color: var(--accent);
}

button.link {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
    font-weight: 500;
}

.offers {
    display: grid;
    gap: 10px;
}

button.offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    background: var(--soft);
    color: var(--text);
    border-color: var(--line);
    text-align: start;
}

.offer-price {
    color: var(--accent);
    white-space: nowrap;
}

.coverage {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--soft);
}

.summary {
    font-weight: 600;
}

.qr {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 4px auto 14px;
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
}

.code-line {
    text-align: center;
}

.app-links {
    margin: 4px 0 8px;
}

.status {
    font-weight: 600;
}

.success {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--warn-bg);
    color: var(--warn-text);
}

.alert-text {
    font-weight: 700;
    color: var(--danger);
}

.sandbox {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--warn-bg);
    color: var(--warn-text);
    font-size: 0.9rem;
}

[hidden] {
    display: none !important;
}
