/*
Theme Name:  Odido P&P Theme
Theme URI:   https://p-p.nl
Author:      Simon Holman
Author URI:  https://p-p.nl
Description: Jingle belletjes-mok redemption form for Odido, created by P&P Projects.
Version:     2.3
Text Domain: odido-penp
Template:    twentytwentyfive
*/

:root {
    --order-ink: #171718;
    --order-muted: #54515a;
    --order-line: #e6e2eb;
    --order-lavender: #f1ecff;
    --order-focus: #6943b2;
    --order-width: 72rem;
    --order-gutter: clamp(1rem, 3.5vw, 2.75rem);
    --order-font: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    background: #fff;
    color: var(--order-ink);
}

.order-header,
.order-shell {
    color: var(--order-ink);
    font-family: var(--order-font);
    font-size: 1rem;
    line-height: 1.5;
}

.order-header {
    background: #fff;
    border-bottom: 1px solid var(--order-line);
}

.order-header-inner,
.order-shell {
    box-sizing: content-box;
    width: auto;
    max-width: var(--order-width);
    margin-inline: auto;
    padding-inline: var(--order-gutter);
}

.order-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.875rem;
}

.order-brand {
    display: inline-flex;
    border-radius: 0.25rem;
}

.order-brand img {
    display: block;
    width: clamp(6.375rem, 12vw, 8.8125rem);
    height: auto;
}

.order-header-label {
    color: var(--order-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: end;
}

.order-shell {
    margin-block: 0;
    padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 7vw, 6rem);
}

.order-shell h1,
.order-shell h2,
.order-shell h3 {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-weight: 700;
}

.order-shell h2 {
    font-size: clamp(1.75rem, 3.1vw, 2.5rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.order-shell p {
    margin: 0;
    font-weight: 500;
}

.order-shell :focus-visible,
.order-brand:focus-visible {
    outline: 3px solid var(--order-focus);
    outline-offset: 3px;
}

.order-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
    padding: clamp(1.5rem, 4.5vw, 3.75rem);
    border-radius: clamp(1.25rem, 3vw, 2.25rem);
    background:
        radial-gradient(ellipse at 86% 100%, #c5b1ff 0, transparent 56%),
        radial-gradient(ellipse at 99% 9%, #ffe1a3 0, transparent 51%),
        linear-gradient(117deg, #f8edff 8%, #f9dbe6 60%, #c2ddff 100%);
}

.order-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.4rem, 5vw, 4.15rem);
    letter-spacing: -0.06em;
    line-height: 1.03;
    text-wrap: balance;
}

.order-hero p {
    max-width: 46ch;
    margin-top: 0.875rem;
}

.order-hero-visual {
    display: grid;
    place-items: center;
    margin: 0;
    padding: clamp(0.75rem, 2.7vw, 2rem);
    border-radius: clamp(1rem, 2vw, 1.75rem);
    background: #fff;
}

.order-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.order-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-sizing: border-box;
    min-height: 2.75rem;
    margin-top: 1.25rem;
    padding: 0 1rem;
    border: 1px solid currentColor;
    border-radius: 50rem;
    color: var(--order-ink);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.order-hero-link:hover {
    background: rgb(255 255 255 / 45%);
}

.order-checkout,
.order-notice {
    margin-top: clamp(1.5rem, 4vw, 3.25rem);
    border-radius: clamp(1.25rem, 3vw, 2.25rem);
}

.order-checkout {
    scroll-margin-top: 1rem;
    padding: clamp(0.75rem, 4vw, 2.75rem);
    background: linear-gradient(145deg, #ffd8c0, #f6dbed 47%, #c9c1ff);
}

.order-form {
    box-sizing: border-box;
    max-width: 54rem;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.75rem);
    border-radius: clamp(1rem, 2.5vw, 1.75rem);
    background: #fff;
}

.order-form-design p,
.order-confirmation p,
.order-notice p {
    margin-top: 0.75rem;
    color: var(--order-muted);
}

.order-form-design .order-field {
    max-width: 28rem;
    margin-top: 1rem;
}

.order-delivery {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    border-top: 1px solid var(--order-line);
}

.order-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.order-fields-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-field {
    min-width: 0;
}

.order-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.order-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #827c8a;
    border-radius: 0.7rem;
    background-color: #fff;
    color: var(--order-ink);
    font: inherit;
    font-weight: 500;
}

.order-shell .order-form-hint {
    margin-top: 0.875rem;
    color: var(--order-muted);
    font-size: 0.875rem;
}

.order-submit-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.order-submit {
    min-height: 3rem;
    padding: 0.75rem 1.6rem;
    border: 0;
    border-radius: 50rem;
    background: var(--order-ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.order-submit:hover {
    background: #423451;
}

.order-shell .order-address-override {
    margin-bottom: 1.5rem;
}

.order-submit-secondary {
    border: 1px solid var(--order-ink);
    background: #fff;
    color: var(--order-ink);
}

.order-submit-secondary:hover {
    background: var(--order-lavender);
}

.order-notice,
.status-message {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: var(--order-lavender);
}

.order-notice {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.status-message.error {
    margin-bottom: 1.25rem;
    background: #fff0ef;
    color: #862529;
    font-weight: 600;
}

@media (max-width: 51rem) {
    .order-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-hero-visual {
        width: min(100%, 34rem);
        box-sizing: border-box;
        justify-self: center;
    }
}

@media (max-width: 40rem) {
    .order-header-inner {
        min-height: 4rem;
    }

    .order-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-field:has(#street),
    .order-field:has(#email),
    .order-field:has(#email-confirmation),
    .order-field:has(#confirmation-code) {
        grid-column: 1 / -1;
    }

    .order-submit {
        width: 100%;
    }
}

@media (max-width: 30rem) {
    .order-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}
