.ckos-storefront,
.ckos-storefront * {
    box-sizing: border-box;
}

.ckos-storefront {
    --ckos-surface: #ffffff;
    --ckos-muted: #64748b;
    --ckos-line: #e2e8f0;
    --ckos-text: #0f172a;
    color: var(--ckos-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 auto;
    max-width: 1120px;
    padding: 20px;
    width: 100%;
}

.ckos-storefront a {
    text-decoration: none;
}

.ckos-storefront-nav {
    align-items: center;
    background: var(--ckos-surface);
    border: 1px solid var(--ckos-line);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px 16px;
}

.ckos-storefront-brand {
    align-items: center;
    color: var(--ckos-text);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 44px;
}

.ckos-storefront-logo-small {
    border-radius: 8px;
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.ckos-storefront-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ckos-storefront-nav-links a {
    border-radius: 10px;
    color: var(--ckos-text);
    display: inline-flex;
    font-weight: 600;
    min-height: 44px;
    padding: 11px 12px;
}

.ckos-storefront-nav-links a:hover,
.ckos-storefront-nav-links a:focus-visible {
    background: #f1f5f9;
}

.ckos-storefront-hero,
.ckos-storefront-pagehead {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid var(--ckos-line);
    border-radius: 22px;
    padding: clamp(24px, 5vw, 56px);
}

.ckos-storefront-logo {
    display: block;
    max-height: 90px;
    max-width: 220px;
    object-fit: contain;
}

.ckos-storefront-kicker {
    color: var(--ckos-brand-secondary, #2563eb);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 14px 0 8px;
    text-transform: uppercase;
}

.ckos-storefront h1,
.ckos-storefront h2,
.ckos-storefront h3,
.ckos-storefront p {
    margin-top: 0;
}

.ckos-storefront h1 {
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.05;
    margin-bottom: 14px;
}

.ckos-storefront-pagehead h1 {
    font-size: clamp(30px, 5vw, 46px);
}

.ckos-storefront-hero > p:not(.ckos-storefront-kicker),
.ckos-storefront-pagehead > p:not(.ckos-storefront-kicker) {
    color: var(--ckos-muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 720px;
}

.ckos-storefront-actions,
.ckos-storefront-contact,
.ckos-storefront-consents {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ckos-storefront-actions {
    margin-top: 24px;
}

.ckos-storefront-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--ckos-text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 11px 16px;
}

.ckos-storefront-button:hover,
.ckos-storefront-button:focus-visible {
    border-color: var(--ckos-brand-secondary, #2563eb);
    outline: 2px solid transparent;
}

.ckos-storefront-button-primary {
    background: var(--ckos-brand-primary, #0f172a);
    border-color: var(--ckos-brand-primary, #0f172a);
    color: #ffffff;
}

.ckos-storefront-section,
.ckos-storefront-order-section,
.ckos-storefront-empty,
.ckos-storefront-notice {
    background: #ffffff;
    border: 1px solid var(--ckos-line);
    border-radius: 18px;
    margin-top: 18px;
    padding: 22px;
}

.ckos-storefront-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 20px;
}

.ckos-storefront-menu-card {
    background: #ffffff;
    border: 1px solid var(--ckos-line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    min-height: 170px;
    padding: 20px;
}

.ckos-storefront-menu-card.is-unavailable {
    background: #f8fafc;
}

.ckos-storefront-menu-card h2,
.ckos-storefront-menu-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.ckos-storefront-menu-card strong {
    font-size: 18px;
}

.ckos-storefront-availability {
    align-self: flex-start;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
}

.ckos-storefront-availability.is-available {
    background: #dcfce7;
    color: #166534;
}

.ckos-storefront-availability.is-unavailable {
    background: #f1f5f9;
    color: #475569;
}

.ckos-storefront-order-form {
    margin-top: 18px;
}

.ckos-storefront-menu-card-order {
    min-height: 145px;
}

.ckos-storefront label {
    color: var(--ckos-text);
    display: grid;
    font-size: 14px;
    font-weight: 650;
    gap: 7px;
}

.ckos-storefront input,
.ckos-storefront textarea,
.ckos-storefront select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--ckos-text);
    font: inherit;
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}

.ckos-storefront input:focus,
.ckos-storefront textarea:focus,
.ckos-storefront select:focus {
    border-color: var(--ckos-brand-secondary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    outline: 0;
}

.ckos-storefront-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ckos-storefront-consents {
    align-items: flex-start;
    display: grid;
    margin-top: 14px;
}

.ckos-storefront-consents label {
    align-items: flex-start;
    display: flex;
    font-weight: 500;
}

.ckos-storefront-consents input {
    flex: 0 0 auto;
    margin-top: 2px;
    min-height: 18px;
    width: 18px;
}

.ckos-storefront-total {
    background: #f8fafc;
    border-radius: 12px;
    font-weight: 800;
    margin-top: 14px;
    padding: 12px;
}

.ckos-storefront-help,
.ckos-storefront-submit-status {
    color: var(--ckos-muted);
    font-size: 13px;
    line-height: 1.55;
    margin-top: 10px;
}

.ckos-storefront-notice-error {
    border-color: #fecaca;
    color: #991b1b;
}

.ckos-storefront-honeypot {
    left: -9999px !important;
    position: absolute !important;
    top: -9999px !important;
}

.ckos-storefront-footer {
    border-top: 1px solid var(--ckos-line);
    color: var(--ckos-muted);
    margin-top: 28px;
    padding: 20px 4px;
}

.ckos-storefront-footer small {
    display: block;
    margin-top: 8px;
}

@media (max-width: 720px) {
    .ckos-storefront {
        padding: 12px;
    }

    .ckos-storefront-nav {
        align-items: stretch;
        display: grid;
    }

    .ckos-storefront-nav-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ckos-storefront-nav-links a {
        font-size: 13px;
        justify-content: center;
        padding-left: 6px;
        padding-right: 6px;
        text-align: center;
    }

    .ckos-storefront-fields {
        grid-template-columns: 1fr;
    }

    .ckos-storefront-actions,
    .ckos-storefront-actions .ckos-storefront-button {
        width: 100%;
    }
}
