﻿html {
    font-size: 18px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f3f4f6;
}

.customer-form__upload-input {
    margin-top: 0.5rem;
}

.customer-form__upload-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-weight: 500;
}

.memo-area {
    width: 100%;
    margin-top: 0.5rem;
}

.customer-details__required-hint {
    margin: 0.5rem 0 1rem;
    color: #475569;
    font-weight: 600;
}

.required-marker {
    color: #b91c1c;
    font-weight: 700;
}


a, .btn-link {
    color: #223261;
}

.btn-primary {
    color: #fff;
    background-color: #223261;
    border-color: #223261;
}

.dxbs-btn.btn-primary,
.dxbs-btn.btn-primary:hover,
.dxbs-btn.btn-primary:focus,
.dxbs-btn.btn-primary:active,
.dxbs-btn.btn-primary.active {
    background-color: #223261;
    border-color: #223261;
}

.dxbs-btn.btn-secondary,
.dxbs-btn.btn-secondary:hover,
.dxbs-btn.btn-secondary:focus,
.dxbs-btn.btn-secondary:active,
.dxbs-btn.btn-secondary.active {
    color: #223261;
    border-color: #223261;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #223261;
}

.content {
    padding-top: 1.1rem;
}

.page {
    display: block;
    min-height: 100vh;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.workflow-layout {
    display: block;
    align-items: start;
    position: relative;
}

.workflow {
    padding: 1.25rem 1rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    position: static;
    width: auto;
}

.workflow-layout .content {
    padding: 0;
    margin: 0 auto;
}

.workflow h4 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.workflow__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    font-weight: 600;
}

.workflow__steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow__step-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.workflow__step-button:disabled {
    cursor: default;
}

.workflow__step {
    color: #94a3b8;
}

.workflow__step--pending {
    color: #b8c0cf;
}

.workflow__step--pending .workflow__step-button {
    opacity: 0.75;
}

.workflow__step i {
    font-size: 1.1rem;
}

.workflow__step--active,
.workflow__step--complete {
    color: #223261;
}

.workflow__step--active {
    font-weight: 700;
}


.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -100px;
    z-index: 2000;
    background: #223261;
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0.75rem;
    outline: 3px solid #111827;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #223261;
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #223261;
}

h1 i,
h2 i,
h3 i,
h4 i,
h5 i,
h6 i {
    color: #223261;
}

.page-header {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    justify-content: center;
    width: 100%;
}

.page-subtitle {
    margin: 0.25rem 0 0;
    color: #475569;
    text-align: center;
}

.page-hero {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.page-hero__title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.page-hero__subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 4px 0 0;
    line-height: 1.4;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.header {
    background: #ffffff;
    color: #0f172a;
    border-top: 3px solid #223261;
    box-shadow: 0 1px 0 #e2e8f0, 0 4px 16px rgba(15, 23, 42, 0.06);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .header-inner {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 56px;
}

.header-workflow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.header-workflow * {
    pointer-events: auto;
}

.header .brand {
    display: flex;
    align-items: center;
}

.header-brand-logo {
    display: block;
    max-height: 44px;
    max-width: 220px;
    width: auto;
    height: auto;
}

.header .actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end;
}

/* nav-stepper: header workflow progress indicator */
.nav-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.nav-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-stepper__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    padding: 0;
    line-height: 1;
}

.nav-stepper__dot:disabled {
    cursor: default;
}

.nav-stepper__label {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.nav-stepper__item.workflow__step--active .nav-stepper__dot {
    background: #223261;
    border-color: #223261;
    color: #fff;
    box-shadow: 0 0 0 3px #22326120;
    cursor: default;
}

.nav-stepper__item.workflow__step--active .nav-stepper__label {
    color: #223261;
    font-weight: 700;
}

.nav-stepper__item.workflow__step--complete .nav-stepper__dot {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.nav-stepper__item.workflow__step--complete .nav-stepper__dot:hover {
    background: #bfdbfe;
}

.nav-stepper__item.workflow__step--complete .nav-stepper__label {
    color: #475569;
}

.nav-stepper__line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 13px;
    align-self: flex-start;
    min-width: 24px;
}

.nav-stepper__line.done {
    background: #bfdbfe;
}

.stepper-progress {
    display: none;
}

@media (max-width: 640px) {
    .stepper-progress {
        display: block;
        text-align: center;
        font-size: 11px;
        font-weight: 600;
        color: #64748b;
        margin: 2px 0 12px;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 640px) {
    .header .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-height: auto;
        padding-bottom: 0;
    }

    .header .brand {
        padding-top: 0.35rem;
        padding-bottom: 0.5rem;
    }

    .header-workflow {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        pointer-events: auto;
    }

    .nav-stepper {
        justify-content: center;
        width: 100%;
    }

    .nav-stepper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
}

.site-footer {
    margin-top: auto;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
}

.site-footer__logo {
    height: 2rem;
    width: auto;
}

.site-footer__legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__legal a {
    color: #223261;
    text-decoration: none;
    font-weight: 600;
}

.site-footer__legal a:hover {
    text-decoration: underline;
}

.site-footer__legal-ext {
    margin-left: 0.25rem;
    font-size: 0.85em;
}

.site-footer__version {
    justify-self: end;
    text-align: right;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-footer__version {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .header .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-height: auto;
        padding-bottom: 0;
    }

    .header .brand {
        display: flex;
        justify-content: center;
        padding-top: 0.35rem;
        padding-bottom: 0.5rem;
    }

    .header-workflow {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        pointer-events: auto;
    }

    .nav-stepper {
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .header .workflow {
        width: 100%;
    }

    .header .workflow__steps {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .header .workflow__steps li {
        justify-content: center;
    }

    .header .workflow__step-button {
        font-size: 0;
        gap: 0.35rem;
    }

    .header .workflow__step-button i {
        font-size: 1rem;
        margin-right: 0 !important;
    }

    .header .workflow__steps li:not(:last-child)::after {
        display: inline-block;
        margin-left: 0.35rem;
    }

    .header .brand {
        text-align: center;
        justify-self: center;
    }

    .header-brand-logo {
        max-height: 35px;
    }

    .header .brand .subtitle {
        font-size: 0.8rem;
    }
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0 2rem;
}

.checkout {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.checkout__header h1 {
    margin-bottom: 0.35rem;
}

/* co-steps: checkout progress stepper */
.co-steps {
    display: flex;
    align-items: flex-start;
    width: 75%;
    margin: 1.5rem auto 1.25rem;
    padding: 0;
}

@media (max-width: 900px) {
    .co-steps {
        width: 100%;
        margin: 0.75rem 0;
    }
}

@media (max-width: 640px) {
    .co-steps {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .co-step__label {
        display: none;
    }
}

.co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.co-step__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.co-step__label {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
}

.co-step.active .co-step__dot {
    background: #223261;
    border-color: #223261;
    color: #fff;
    box-shadow: 0 0 0 4px #22326126;
}

.co-step.active .co-step__label {
    color: #223261;
    font-weight: 600;
}

.co-step.done .co-step__dot {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.co-step.done .co-step__label {
    color: #475569;
}

.co-step__line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 14px;
    align-self: flex-start;
    min-width: 16px;
}

.co-step__line.done {
    background: #bfdbfe;
}

.checkout__content {
    display: grid;
    gap: 1.5rem;
}

.checkout__panel {
    background: #ffffff;
    border-radius: 12px;
    text-align: left;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 1rem;
}

.checkout__cart-layout {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(220px, 280px);
    gap: 1.5rem;
    align-items: start;
}

.checkout__cart-media {
    display: flex;
    justify-content: center;
}

.checkout__cart-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.checkout__cart-meta {
    display: grid;
    gap: 1rem;
}

.checkout__summary-list {
    display: grid;
    gap: 0.5rem;
}


@media (max-width: 900px) {
    .checkout__cart-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .checkout__cart-meta {
        width: 100%;
    }
}

.checkout__summary-list div {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.checkout__summary-list div span:first-child {
    flex: 0 0 50%;
    text-align: right;
    font-weight: 700;
}

.checkout__summary-list div span:last-child {
    flex: 0 0 50%;
    text-align: left;
}

.checkout__summary-list div span:first-child {
    flex: 0 0 50%;
    text-align: right;
    font-weight: 700;
}

.checkout__summary-list div span:last-child {
    flex: 0 0 50%;
    text-align: left;
}

.checkout__summary-group {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.checkout__totals {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.checkout__totals div {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.checkout__totals div span:first-child {
    flex: 0 0 50%;
    text-align: right;
    font-weight: 700;
}

.checkout__totals div span:last-child {
    flex: 0 0 50%;
    text-align: left;
}

.checkout__totals div span:first-child {
    flex: 0 0 50%;
    text-align: right;
    font-weight: 700;
}

.checkout__totals div span:last-child {
    flex: 0 0 50%;
    text-align: left;
}

.checkout__delivery,
.checkout__field {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
}

.checkout__field-value {
    font-weight: 600;
    color: #0f172a;
}

.checkout__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.checkout__pickup-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0.5rem 0 0;
}

.checkout__pickup-note i {
    font-size: 2rem;
    color: #223261;
}

.checkout__checkboxes {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.checkout__checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
}

.checkout__checkboxes label span {
    display: block;
}

.checkout__checkbox-text {
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.checkout__checkbox-text p {
    margin: 0;
}

@media (min-width: 801px) {
    .checkout__checkboxes {
        padding: 0 7.2rem;
    }
}

@media (min-width: 801px) {
    .checkout__checkboxes {
        padding: 0 7.2rem;
    }
}

@media (min-width: 801px) {
    .checkout__checkboxes {
        padding: 0 7.2rem;
    }
}

.checkout__checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout__checkboxes label span {
    display: block;
}

.checkout__pdf {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.checkout__pdf iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

.checkout__error {
    color: #dc2626;
    font-weight: 600;
}

.checkout__info {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f1f5f9;
}

.checkout__warning {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.checkout__nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* co-btn: primary and ghost action buttons */
.co-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    border: none;
    background: #223261;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.3;
}

.co-btn:hover {
    background: #1a2750;
}

.co-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.co-btn--ghost {
    background: transparent;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.co-btn--ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Section sub-header inside panel */
.co-section-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.25rem 0 0.6rem;
}

.co-section-head i {
    font-size: 15px;
    color: #94a3b8;
}

/* Delivery radio card */
.co-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
}

.co-radio-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.co-radio-card.is-selected {
    border-color: #223261;
    background: #f0f3fa;
}

.co-radio-card__input {
    display: none;
}

.co-radio-card__icon {
    font-size: 26px;
    color: #94a3b8;
    flex-shrink: 0;
}

.co-radio-card.is-selected .co-radio-card__icon {
    color: #223261;
}

.co-radio-card__title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

.co-radio-card__sub {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Declaration cards */
.co-decl-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.co-decl-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
}

.co-decl-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.co-decl-card.is-checked {
    border-color: #223261;
    background: #f0f3fa;
}

.co-decl-card__input {
    display: none;
}

.co-decl-card__check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.co-decl-card__check::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid transparent;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(0px, -1px);
    transition: border-color 0.15s;
}

.co-decl-card.is-checked .co-decl-card__check {
    background: #223261;
    border-color: #223261;
    color: #fff;
}

.co-decl-card.is-checked .co-decl-card__check::after {
    border-color: #fff;
}

.co-decl-card__body {
    flex: 1;
}

.co-decl-card__title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.co-decl-card__body p {
    font-size: 12.5px;
    color: #475569;
    margin: 0 0 4px;
    line-height: 1.5;
}

.co-decl-card__body p:last-child {
    margin-bottom: 0;
}

.co-decl-card__body p.co-decl-card__subhead {
    font-weight: 600;
    color: #334155;
    margin-top: 8px;
}

.co-decl-card__list {
    margin: 0 0 4px;
    padding-left: 18px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
}

.co-decl-card__list li {
    margin-bottom: 2px;
}

.co-decl-card__list li:last-child {
    margin-bottom: 0;
}

/* Info banner */
.co-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}

.co-info-banner i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Error */
.co-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

.co-error i {
    font-size: 17px;
    flex-shrink: 0;
}

/* Warning box */
.co-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.55;
}

.co-warning i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Success banner */
.co-success-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 4px;
}

.co-success-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-success-banner__title {
    font-size: 15px;
    font-weight: 700;
    color: #14532d;
}

.co-success-banner__sub {
    font-size: 12.5px;
    color: #166534;
    margin-top: 2px;
}

/* Order confirm modal */
.co-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: co-modal-fade .15s ease-out;
}

.co-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 48px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
    animation: co-modal-pop .18s ease-out;
}

.co-modal__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.co-modal__header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.co-modal__sub {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0;
}

.co-modal__close {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .12s, color .12s;
    flex-shrink: 0;
    padding: 0;
}

.co-modal__close:hover {
    background: #f1f5f9;
    color: #475569;
}

.co-modal__body {
    padding: 1.25rem;
}

.co-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

@keyframes co-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes co-modal-pop {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Popup body (legacy) */
.co-popup-body {
    padding: 0.75rem 1rem 0.25rem;
}

.co-popup-body p {
    margin-bottom: 1rem;
    color: #0f172a;
    font-size: 14px;
}

/* einlagen-anzahl page */
.einlagen-anzahl-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.einlagen-anzahl-options {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin: 1.75rem 0 1.25rem;
}

.einlagen-anzahl-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 180px;
    padding: 1.75rem 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    color: #0f172a;
}

.einlagen-anzahl-option:hover:not(.is-disabled) {
    border-color: #93c5fd;
    background: #f8fafc;
}

.einlagen-anzahl-option.is-selected {
    border-color: #223261;
    background: #223261;
    color: #fff;
    box-shadow: 0 0 0 4px #22326120;
}

.einlagen-anzahl-option.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.einlagen-anzahl-option__icon {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.einlagen-anzahl-option.is-selected .einlagen-anzahl-option__icon {
    color: #bfdbfe;
}

.einlagen-anzahl-option__number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.einlagen-anzahl-option__label {
    font-size: 13px;
    font-weight: 600;
}

.einlagen-anzahl-option__desc {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

.einlagen-anzahl-option.is-selected .einlagen-anzahl-option__desc {
    color: #bfdbfe;
}

.einlagen-anzahl-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.freigabe-page {
    max-width: none;
    padding-left: clamp(1rem, 2.5vw, 2.5rem);
    padding-right: clamp(1rem, 2.5vw, 2.5rem);
}

.freigabe-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Prüfansicht: volle Breite, zwei Spalten (links Rezept & Messung, rechts Konfiguration) */
.freigabe-meta-head {
    margin-bottom: 1.25rem;
}

.freigabe-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.freigabe-meta-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.freigabe-meta-label {
    flex: 0 0 auto;
    min-width: 90px;
    color: #64748b;
}

.freigabe-meta-value {
    font-weight: 600;
    color: #0f172a;
}

.freigabe-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.freigabe-review-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

@media (max-width: 1100px) {
    .freigabe-review-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.freigabe-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.freigabe-section-title {
    margin-bottom: 12px;
    font-weight: 700;
}

.freigabe-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.freigabe-row:last-child {
    border-bottom: none;
}

.freigabe-row span {
    color: #64748b;
}

.freigabe-row strong {
    text-align: right;
    color: #0f172a;
}

.freigabe-rezept-text {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    white-space: pre-wrap;
}

.freigabe-recipe-image {
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.freigabe-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.freigabe-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.freigabe-reject {
    border-color: #fecaca;
    background: #fef2f2;
}

@media (max-width: 768px) {
    .freigabe-row {
        flex-direction: column;
        gap: 4px;
    }

    .freigabe-row strong {
        text-align: left;
    }
}

.welcome-banner {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.welcome-banner__title {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.welcome-banner__subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: #475569;
}

.measurement-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    flex-wrap: wrap;
    flex-direction: column;
}

.measurement-content {
    flex: 1 1 200px;
    font-weight: 600;
    color: #0f172a;
    width: 100%;
    text-align: center;
}

.measurement-content h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.measurement-content p {
    font-weight: 500;
    color: #475569;
    margin-bottom: 1.5rem;
}

.measurement-cta {
    font-size: 1.05rem;
    padding: 0.75rem 1.6rem;
}

.measurement-viewer {
    flex: 1 1 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    --pdf-height: 990px;
    --caption-height: 28px;
    --image-gap: 1rem;
}

.measurement-viewer__title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.freigabe-messung {
    flex: 1 1 auto;
    padding: 0;
    box-shadow: none;
    border: none;
    --pdf-height: 480px;
    --caption-height: 24px;
    --image-gap: 0.75rem;
}


.measurement-viewer__layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.measurement-image-stack {
    display: flex;
    flex-direction: column;
    gap: var(--image-gap);
    flex: 0 0 260px;
    height: var(--pdf-height);
}

.measurement-image {
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: calc((var(--pdf-height) - var(--image-gap)) / 2);
}

.measurement-image img {
    width: 100%;
    height: calc(((var(--pdf-height) - var(--image-gap)) / 2) - var(--caption-height));
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.measurement-image figcaption {
    margin-top: 0.4rem;
    color: #475569;
    font-weight: 600;
    min-height: var(--caption-height);
}

.measurement-pdf-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex: 1 1 auto;
    height: var(--pdf-height);
    background: #ffffff;
}

@media (max-width: 900px) {
    .measurement-viewer__layout {
        flex-direction: column;
    }
    .measurement-image-stack {
        flex: 1 1 auto;
    }
}

.measurement-pdf {
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.measurement-code-card {
    flex: 1 1 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.measurement-code-card__hint {
    color: #475569;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.measurement-code-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.measurement-code-form__input {
    flex: 1 1 220px;
    min-width: 200px;
}

.code-expired-card {
    flex: 1 1 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.code-expired-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    font-size: 2rem;
}

.code-expired-card__title {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.code-expired-card__lead {
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.9rem;
}

.code-expired-card__code {
    display: inline-block;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.05rem 0.45rem;
}

.code-expired-card__steps {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.code-expired-card__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-weight: 500;
}

.code-expired-card__steps strong {
    color: #0f172a;
}

.code-expired-card__steps i {
    flex: 0 0 auto;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #223261;
}

.measurement-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.measurement-placeholder i {
    font-size: 2rem;
}

.page-with-sticky-banner {
    padding-bottom: 160px;
}

.sticky-action-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.9rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.1);
}

.sticky-action-banner__text {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 900px) {
    .page-with-sticky-banner {
        padding-bottom: 200px;
    }

    .sticky-action-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .sticky-action-banner .measurement-cta {
        width: 100%;
    }
}

.configuration {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(250px, 0.85fr);
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0 2rem;
}

.configuration__main {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.configuration__header {
    text-align: left;
}

.configuration__header p {
    color: #475569;
    margin: 0.25rem 0 0;
}

.wiz-stepper {
    display: flex;
    align-items: flex-start;
    width: 75%;
    margin: 1.5rem auto 1.25rem;
    padding: 0;
}

@media (max-width: 900px) {
    .wiz-stepper {
        width: 100%;
        margin: 0.75rem 0;
    }
}

@media (max-width: 640px) {
    .wiz-stepper {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .wiz-stepper__label {
        display: none;
    }
}

.wiz-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.wiz-stepper__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    padding: 0;
    line-height: 1;
}

.wiz-stepper__item.active .wiz-stepper__dot {
    border-color: #223261;
    background: #223261;
    color: #fff;
    cursor: default;
    box-shadow: 0 0 0 4px #22326126;
}

.wiz-stepper__item.done .wiz-stepper__dot {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #1e40af;
}

.wiz-stepper__item.done .wiz-stepper__dot:hover {
    background: #bfdbfe;
    border-color: #93c5fd;
}

.wiz-stepper__label {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.wiz-stepper__item.active .wiz-stepper__label {
    color: #223261;
    font-weight: 600;
}

.wiz-stepper__item.done .wiz-stepper__label {
    color: #475569;
}

.wiz-stepper__line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 15px;
    transition: background 0.18s;
}

.wiz-stepper__line.done {
    background: #223261;
}

.configuration__panel {
    padding: 1rem 0;
    border-top: 1px solid #eef2f7;
    text-align: left;
}

.configuration__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
    justify-items: center;
}

.configuration__grid > div {
    width: 100%;
    max-width: 740px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: left;
}

.configuration__grid--center > div {
    align-items: center;
    text-align: center;
}

.configuration__grid--center .configuration__options {
    justify-content: center;
}

.configuration__grid label {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.configuration__hint {
    font-size: 0.85rem;
    color: #64748b;
}

.configuration__input {
    width: 100%;
    max-width: 220px;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.configuration__input--compact {
    max-width: 120px;
    margin-top: 0.5rem;
}

.configuration__slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 450px;
}

.configuration__range {
    width: 100%;
}

.configuration__slider-value {
    min-width: 2.5rem;
    text-align: right;
    font-weight: 600;
    color: #0f172a;
}

.configuration__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.configuration__option {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    color: #475569;
}

.configuration__option--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.configuration__option-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.configuration__option.selected {
    border-color: #223261;
    background: #2232611a;
    color: #0f172a;
}

.configuration__section {
    margin-top: 1rem;
}

/* Zwei Spalten nur, solange jede Karte breit genug für Bild + Text bleibt
   (>= 500px pro Spalte), sonst automatisch untereinander. */
.configuration__model-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: 1.5rem;
    align-items: start;
}

.configuration__model-columns .configuration__section {
    margin-top: 0;
}

.configuration__section-actions {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 0.75rem;
}

.configuration__section--subtle {
    opacity: 0.75;
}

.configuration__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0.75rem;
    justify-content: center;
}

.configuration__cards--full {
    flex-direction: column;
    align-items: stretch;
}

.configuration__card {
    text-align: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.configuration__card--full {
    width: 100%;
    flex: 1 1 100%;
    text-align: left;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
}

.configuration__card--premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fff7ed, #ffffff 55%);
    box-shadow: 0 16px 26px rgba(245, 158, 11, 0.18);
}

.configuration__card-badge {
    align-self: flex-start;
    display: inline-flex;
    width: fit-content;
    background: #f59e0b;
    color: #ffffff;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.configuration__card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.configuration__card-content {
    display: grid;
    gap: 0.4rem;
    text-align: left;
    font-size: 0.75rem;
    min-width: 0;
}

.configuration__card-header {
    display: grid;
    gap: 0.25rem;
}

.configuration__card.selected {
    border-color: #223261;
    box-shadow: 0 10px 20px rgba(34, 50, 97, 0.15);
}

.configuration__card--subtle {
    background: #f8fafc;
}

.card-image-small {
    width: 120px!important;
    height: 120px!important;
}

.configuration__card-title {
    font-weight: 700;
    color: #0f172a;
}

.configuration__card-tagline {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.configuration__card-text {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.configuration__card--full .configuration__card-text {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
}

.configuration__card-description {
    color: #475569;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: break-word;
    hyphens: auto;
}

.configuration__card-image {
    
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.configuration__card--full .configuration__card-image {
    width: 180px;
    height: 180px;
}

.configuration__color-swatch {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .configuration__card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .configuration__card-image,
    .configuration__card--full .configuration__card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
    }

    .configuration__color-swatch {
        width: 110px;
        height: 110px;
    }

    .configuration__panel {
        overflow-x: hidden;
    }
}

.configuration__card-price {
    font-weight: 700;
    color: #223261;
}

.configuration__card--full .configuration__card-price {
    align-self: flex-start;
}

.configuration__addons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    justify-items: center;
}

.configuration__checkbox {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #475569;
    font-weight: 500;
    align-items: center;
}

.configuration__checkbox .dx-checkbox {
    align-items: center;
}

.configuration__option-text {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.configuration__option-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.configuration__checkbox input {
    margin-right: 0.5rem;
}

.configuration__price {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.configuration__option-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.configuration__checkbox--disabled {
    opacity: 0.55;
}

.configuration__checkbox--disabled .configuration__option-image {
    filter: grayscale(100%);
}

.configuration__option-description {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #64748b;
}

.configuration__option-hint {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: 22ch;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    color: #b45309;
}

.configuration__option-hint i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.configuration__nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.75rem;
}

.configuration__summary {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.configuration__summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.configuration__summary-price {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.5rem 0 1rem;
}

.configuration__summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #475569;
}

.configuration__summary-list > div:not(.summary-breakdown) {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.configuration__summary-label {
    flex: 0 0 50%;
    text-align: right;
    color: #475569;
    font-weight: 400;
}

.configuration__summary-value {
    flex: 0 0 50%;
    text-align: left;
    color: #0f172a;
    font-weight: 600;
}

.configuration__summary-group {
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.75rem;
}

.summary-step .configuration__summary-list > div.configuration__summary-group {
    justify-content: center;
}

.configuration__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #223261 0%, #2d4a8a 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(34, 50, 97, 0.18);
}

.configuration__summary-total strong {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Step panel header ───────────────────────────────── */
.step-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.step-panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    align-self: center;
}
.step-panel-head > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 34px;
}
.step-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.step-panel-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* ── Shoe type grid ──────────────────────────────────── */
.shoe-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.shoe-type-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .12s, background .12s, box-shadow .12s;
    text-align: center;
}
.shoe-type-tile:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}
.shoe-type-tile.is-selected {
    border-color: #223261;
    background: #eef2ff;
    box-shadow: 0 0 0 3px #22326114;
}
.shoe-type-tile__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.shoe-type-tile__label {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    line-height: 1.2;
}
.shoe-type-tile.is-selected .shoe-type-tile__label {
    color: #223261;
    font-weight: 600;
}

/* ── Shoe size row ───────────────────────────────────── */
.shoe-size-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    max-width: 480px;
}
.shoe-size-label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
}
.shoe-size-input {
    width: 58px;
    text-align: center;
    border: 2px solid #223261;
    border-radius: 8px;
    padding: 4px 6px;
    font-size: 15px;
    font-weight: 600;
    color: #223261;
    background: #f0f4ff;
    outline: none;
    flex-shrink: 0;
    -moz-appearance: textfield;
}

.shoe-size-input::-webkit-outer-spin-button,
.shoe-size-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shoe-size-input:focus {
    background: #fff;
    border-color: #1e3a8a;
}

/* ── Model section header ────────────────────────────── */
.model-section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    line-height: 1;
}
.model-section-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}
.model-section-dot--std {
    background: #94a3b8;
}
.model-section-head-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.configuration__card--full.selected .model-check-badge {
    display: flex;
}
.model-check-badge {
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #223261;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.configuration__card--full.selected .model-check-badge {
    display: flex;
}

/* ── Addon rows ──────────────────────────────────────── */
.addon-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.addon-row-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: border-color .12s, background .12s;
}
.addon-row-card:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #f8fbff;
}
.addon-row-card.is-checked {
    border-color: #223261;
    background: #eef2ff;
}
.addon-row-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.addon-row-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    background: #f8fafc;
    flex-shrink: 0;
}
.addon-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.addon-row-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.addon-row-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}
.addon-row-hint {
    font-size: 11px;
    color: #b45309;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 3px;
}
.addon-row-price {
    font-size: 13px;
    font-weight: 600;
    color: #223261;
    flex-shrink: 0;
}
.addon-toggle-sw {
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: #e2e8f0;
    position: relative;
    flex-shrink: 0;
    transition: background .15s;
    pointer-events: none;
}
.addon-toggle-sw.is-on {
    background: #223261;
}
.addon-toggle-sw__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.addon-toggle-sw.is-on .addon-toggle-sw__dot {
    left: 19px;
}

/* ── Addon accordion ─────────────────────────────────── */
details.addon-more {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}
details.addon-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    background: #f8fafc;
    list-style: none;
    user-select: none;
}
details.addon-more > summary::-webkit-details-marker { display: none; }
details.addon-more > summary .acc-chevron {
    font-size: 16px;
    transition: transform .15s;
    display: inline-flex;
}
details.addon-more[open] > summary .acc-chevron {
    transform: rotate(90deg);
}
.addon-more-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Bezug grid ──────────────────────────────────────── */
.bezug-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.bezug-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .12s, background .12s, box-shadow .12s;
    width: 100%;
}
.bezug-card-item:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #f8fbff;
}
.bezug-card-item.is-selected {
    border-color: #223261;
    background: #eef2ff;
    box-shadow: 0 0 0 3px #22326114;
}
.bezug-card-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
}
.bezug-card-item__img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    background: #f8fafc;
}
.bezug-card-item__name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}
.bezug-card-item__price {
    font-size: 12px;
    font-weight: 600;
    color: #223261;
}
.bezug-premium-badge {
    font-size: 10px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

/* ── Summary list ────────────────────────────────────── */
.summary-list {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.summary-list__group-head {
    padding: 8px 14px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.summary-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.summary-list__row:last-child {
    border-bottom: none;
}
.summary-list__key {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.summary-list__key i {
    font-size: 14px;
    flex-shrink: 0;
}
.summary-list__val {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
}
.summary-list__check {
    color: #16a34a;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .configuration {
        grid-template-columns: 1fr;
    }

    .configuration__summary {
        position: static;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .header .workflow__steps {
        justify-content: center;
    }
}

.partner-selection {
    padding: 1.5rem 0 2rem;
    text-align: center;
}

.partner-selection__hint {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.partner-selection__error {
    margin: 0.75rem 0 0;
    color: #dc2626;
    font-weight: 600;
}

.partner-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.partner-filter label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    font-size: 0.85rem;
}

.partner-filter .form-control {
    max-width: 220px;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.partner-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card {
    text-align: left;
}

@media (max-width: 900px) {
    .partner-card {
        grid-template-columns: 1fr;
    }

    .partner-card__locations {
        grid-template-columns: 1fr;
    }
}

.partner-card.selected {
    border-color: #223261;
    box-shadow: 0 14px 28px rgba(34, 50, 97, 0.15);
    transform: translateY(-2px);
}

.partner-logo {
    width: 140px;
    height: auto;
}

.partner-card__left {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.partner-card__right {
    display: grid;
}

.partner-card__locations {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.partner-card__location-list label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: block;
}

.partner-location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.partner-location-item {
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    display: grid;
    gap: 0.2rem;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.partner-location-item.selected {
    border-color: #223261;
    background: #2232611a;
}

.partner-location-item__city {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.partner-location-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: grid;
    gap: 0.35rem;
    min-height: 320px;
}

.partner-location-card h4 {
    margin: 0 0 0.25rem;
    color: #0f172a;
}

.partner-location-card p {
    margin: 0;
    color: #475569;
    font-weight: 600;
}

.partner-location-map {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 10px;
}

.customer-details {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    text-align: left;
}

.customer-details__hint {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.customer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.cf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.cf-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.cf-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.cf-card__icon--health {
    background: #fce7f3;
    color: #9d174d;
}

.cf-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.cf-card__body {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.cf-field--full {
    grid-column: 1 / -1;
}

.cf-label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

/* Hinweis unterhalb eines Formularfelds, z. B. fehlender Kostenträger */
.cf-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.cf-hint > i {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 14px;
}

.cf-hint--warn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.cf-card__body .customer-form__input,
.cf-card__body .customer-form__input .dxbl-text-edit {
    width: 100%;
}

.customer-form__receipt-preview {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.recipe-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: -2px;
}

/* Einwilligung in die Rezeptverarbeitung: Checkbox mit Volltext, den Verweisen darunter.
   Die Verweise stehen außerhalb des Labels, damit ein Klick darauf nicht die Box umschaltet. */
.consent-card {
    padding: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.consent-card:hover {
    border-color: #93c5fd;
}

.consent-card.is-checked {
    border-color: #223261;
    background: #f0f3fa;
}

.consent-card__toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.consent-card__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-card.is-checked .co-decl-card__check {
    background: #223261;
    border-color: #223261;
    color: #fff;
}

.consent-card.is-checked .co-decl-card__check::after {
    border-color: #fff;
}

/* Tastaturbedienung: Der Fokus liegt auf dem ausgeblendeten Input, sichtbar wird er am Kästchen. */
.consent-card__input:focus-visible + .co-decl-card__check {
    outline: 2px solid #223261;
    outline-offset: 2px;
}

.consent-card__text {
    flex: 1;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.55;
}

.consent-card__links {
    margin: 10px 0 0;
    padding-left: 34px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.consent-card__links a {
    color: #223261;
    text-decoration: underline;
}

/* Hinweis, wenn der Upload gesperrt bleibt, weil keine wirksame Einwilligung möglich ist. */
.consent-blocked {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    background: #fffbeb;
}

.consent-blocked > i {
    font-size: 20px;
    color: #b45309;
    flex-shrink: 0;
}

.consent-blocked__title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.consent-blocked p {
    margin: 0;
    font-size: 12.5px;
    color: #78350f;
    line-height: 1.5;
}

.recipe-upload-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.recipe-upload-divider__line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.recipe-upload-divider__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.recipe-upload-divider__step {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #223261;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rezept-tile-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rezept-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 18px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    text-align: center;
}

.rezept-tile:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.rezept-tile.is-selected {
    border-color: #223261;
    background: #eef2ff;
    box-shadow: 0 0 0 3px #22326118;
}

.rezept-tile__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rezept-tile.is-selected .rezept-tile__icon {
    background: #223261;
    color: #fff;
}

.rezept-tile__label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.rezept-tile__sub {
    font-size: 11px;
    color: #64748b;
}

.upload-zone {
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color .15s, background .15s;
    text-align: center;
}

.upload-zone:hover {
    border-color: #223261;
    background: #f0f4ff;
}

.upload-zone__icon {
    font-size: 28px;
    color: #94a3b8;
}

.upload-zone__label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.upload-zone__sub {
    font-size: 11px;
    color: #94a3b8;
}

.upload-zone-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.upload-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    background: #fff;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.upload-remove-btn:hover {
    background: #fef2f2;
}

.yn-group {
    display: flex;
    gap: 8px;
}

.yn-btn {
    flex: 1;
    padding: 7px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.yn-btn:hover {
    border-color: #94a3b8;
}

.yn-btn.yn-yes.is-selected {
    border-color: #223261;
    background: #eef2ff;
    color: #223261;
}

.yn-btn.yn-no.is-selected {
    border-color: #223261;
    background: #eef2ff;
    color: #223261;
}

/* Hinweis unter einer Gesundheitsfrage, die aus dem Rezept vorbelegt wurde. */
.cf-prefill-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #223261;
}

.cf-save-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: #223261;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: background .15s;
}

.cf-save-btn:hover {
    background: #1a2750;
}

.partner-info h3 {
    margin: 0 0 0.35rem;
}

.partner-description {
    color: #475569;
    line-height: 1.45;
}

.partner-actions {
    margin-top: auto;
}

.partner-selected {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.underage-contact {
    margin: 2rem auto;
    max-width: 560px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.underage-contact__hero {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-top: 3px solid #223261;
}

.underage-contact__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.underage-contact__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.underage-contact__lead {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.underage-contact__divider {
    border-top: 1px solid #f1f5f9;
}

.underage-contact__contact {
    padding: 1.25rem 2rem 1.75rem;
}

.underage-contact__contact-intro {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.875rem;
}

.underage-contact__address {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.underage-contact__address-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.underage-contact__address-row i {
    font-size: 1.1rem;
    color: #223261;
    flex-shrink: 0;
}

/* ============================================================
   Konsolidierte Komponenten-Styles
   (ehemals scoped .razor.css bzw. <style>-Bloecke)
   ============================================================ */

/* --- Layout: MainLayout (ehemals MainLayout.razor.css) --- */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row a:hover, .top-row .btn-link:hover {
        text-decoration: underline;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* --- Layout: NavMenu (ehemals NavMenu.razor.css) --- */
.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand {
    font-size: 1.1rem;
}

.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* --- Layout: ReconnectModal (ehemals ReconnectModal.razor.css) --- */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}


#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active {
        background-color: #6b9ed2;
    }

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* --- Partner: PartnerSelection (ehemals PartnerSelection.razor.css) --- */
.partner-selection-map-screen {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100vh - 170px);
}


.partner-selection-map-screen__map-wrapper {
    position: relative;
    flex: 1;
    min-height: 560px;
}

.partner-selection-map-screen__content {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1rem;
    height: 100%;
}

.partner-selection-map-screen__locations-list {
    border: 1px solid #d7dbe7;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.partner-list-head {
    padding: 10px 14px 8px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.partner-list-head__label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.partner-list-info {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 14px;
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    font-size: 11px;
    color: #1d4ed8;
    line-height: 1.4;
}

.partner-list-info i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.partner-list-info p {
    margin: 0;
}

.partner-list-items {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.partner-location-item {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1.5px solid #e8ebf3;
    border-radius: .875rem;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.partner-location-item:last-child {
    margin-bottom: 0;
}

.partner-location-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 2px 8px rgba(34, 50, 97, 0.07);
}

.partner-location-item.is-selected {
    border-color: #223261;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px #22326114;
}

.partner-location-item__avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.partner-location-item__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.partner-location-item__initials {
    font-size: 14px;
    font-weight: 700;
    color: #223261;
    letter-spacing: .02em;
}

.partner-location-item__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-location-item__name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.partner-location-item__branch {
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
}

.partner-location-item__addr {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

.partner-location-item__addr i {
    font-size: 12px;
    flex-shrink: 0;
    color: #bfdbfe;
}

.partner-location-item__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #223261;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(34, 50, 97, 0.25);
}

.partner-selection-map-screen__list-toggle {
    display: none;
    width: 100%;
    border: 1px solid #d7dbe7;
    border-radius: .75rem;
    background: #fff;
    padding: .55rem .75rem;
    text-align: left;
    font-weight: 600;
}


.partner-selection-map-screen__address-bar {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.partner-selection-map-screen__search-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d7dbe7;
    border-radius: 10px;
    padding: 0 12px;
    height: 42px;
    transition: border-color .15s;
}

.partner-selection-map-screen__search-wrap:focus-within {
    border-color: #223261;
    box-shadow: 0 0 0 3px #22326114;
}

.partner-selection-map-screen__search-icon {
    font-size: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.partner-selection-map-screen__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    min-width: 0;
}

.partner-selection-map-screen__search-input::placeholder {
    color: #94a3b8;
}

.partner-selection-map-screen__loc-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.partner-selection-map-screen__map {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #d7dbe7;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.partner-selection-map-screen__address-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 27, 45, 0.55);
    z-index: 20;
}

.partner-selection-map-screen__address-box {
    width: min(520px, calc(100% - 2rem));
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.partner-selection-map-screen__partner-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 30;
    animation: partner-overlay-fade-in .22s ease-out;
}

.partner-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    padding: 1rem;
    animation: modal-fade-in .15s ease-out;
}

.partner-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 48px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.1);
    animation: modal-pop-in .18s ease-out;
    overflow: hidden;
}

.partner-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.partner-modal__title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.partner-modal__close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .12s, color .12s;
    padding: 0;
}

.partner-modal__close:hover {
    background: #f1f5f9;
    color: #475569;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modal-pop-in {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.partner-popup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.partner-popup__identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.partner-popup__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.partner-popup__logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #94a3b8;
    flex-shrink: 0;
}

.partner-popup__identity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-popup__name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.partner-popup__branch {
    font-size: 13px;
    color: #64748b;
}

.partner-popup__address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.partner-popup__address-icon {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 1px;
    flex-shrink: 0;
}

.partner-popup__actions {
    display: flex;
}

.partner-popup__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 10px;
    background: #223261;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.partner-popup__btn:hover {
    background: #1a2750;
}

.partner-popup__hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

@keyframes partner-overlay-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes partner-card-pop-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 992px) {
    .partner-selection-map-screen {
        height: calc(100vh - 120px);
    }

    .partner-selection-map-screen__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .partner-selection-map-screen__address-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .partner-selection-map-screen__content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }

    .partner-selection-map-screen__list-toggle {
        display: block;
    }

    .partner-selection-map-screen__locations-list {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        border-width: 0;
        transition: max-height .2s ease, opacity .2s ease, border-width .2s ease;
    }

    .partner-selection-map-screen__locations-list.is-open {
        max-height: 300px;
        opacity: 1;
        overflow-y: auto;
        border-width: 1px;
    }
}
/* --- Configuration: ConfigurationWizard (ehemals <style>) --- */
    .einlagen-switcher {
        display: flex;
        gap: 0.625rem;
        flex-wrap: wrap;
        margin: 1rem 0 1.25rem;
    }

    .einlagen-card {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.625rem 1rem 0.625rem 0.75rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
        cursor: pointer;
        text-align: left;
        flex: 1;
        min-width: 160px;
        transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    }

    .einlagen-card:hover {
        border-color: #c7d2fe;
        background: #eef2ff;
    }

    .einlagen-card.active {
        border-color: #223261;
        background: #fff;
        box-shadow: 0 0 0 3px #22326114;
        cursor: default;
    }

    .einlagen-card.done {
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

    .einlagen-card.done:hover {
        border-color: #86efac;
        background: #dcfce7;
    }

    .einlagen-card__num {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #e2e8f0;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.15s, color 0.15s;
    }

    .einlagen-card.active .einlagen-card__num {
        background: #223261;
        color: #fff;
    }

    .einlagen-card.done .einlagen-card__num {
        background: #16a34a;
        color: #fff;
    }

    .einlagen-card__body {
        display: flex;
        flex-direction: column;
        gap: 1px;
        flex: 1;
        min-width: 0;
    }

    .einlagen-card__title {
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        line-height: 1.2;
    }

    .einlagen-card__sub {
        font-size: 11px;
        color: #94a3b8;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .einlagen-card.active .einlagen-card__sub {
        color: #64748b;
    }

    .einlagen-card__status {
        flex-shrink: 0;
        font-size: 16px;
        color: #16a34a;
        display: flex;
        align-items: center;
    }

    .einlagen-card__pulse {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #223261;
        animation: pulse-dot 1.6s ease-in-out infinite;
    }

    @keyframes pulse-dot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.4; transform: scale(0.7); }
    }

    .kopieren-dialog__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        backdrop-filter: blur(3px);
    }

    .kopieren-dialog {
        background: #fff;
        border-radius: 16px;
        padding: 2rem;
        max-width: 460px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
        text-align: center;
    }

    .kopieren-dialog__icon {
        font-size: 2.5rem;
        color: #223261;
        margin-bottom: 0.75rem;
    }

    .kopieren-dialog h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 0.6rem;
    }

    .kopieren-dialog p {
        font-size: 0.9rem;
        color: #475569;
        margin: 0 0 1.5rem;
        line-height: 1.5;
    }

    .kopieren-dialog__actions {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }


/* --- Configuration: CoverColorStep (ehemals <style>) --- */
    .cover-step__kassen-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        font-size: 0.875rem;
        color: #1e40af;
    }
    .cover-step__kassen-banner-text {
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
    }

/* --- Summary: PriceSummaryCard (ehemals <style>) --- */
    .psc-header {
        padding: 0.875rem 1.25rem 0.75rem;
        border-bottom: 1px solid var(--divider-color, #e5e7eb);
    }

    .psc-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4px;
    }

    .psc-label {
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #9ca3af;
    }

    .psc-badge {
        font-size: 11px;
        padding: 2px 9px;
        border-radius: 20px;
        font-weight: 500;
    }

    .psc-badge--kasse {
        background: #d1fae5;
        color: #065f46;
    }

    .psc-badge--privat {
        background: #dbeafe;
        color: #1e40af;
    }

    .psc-total-price {
        font-size: 24px;
        font-weight: 500;
        color: #111827;
        letter-spacing: -.02em;
    }

    .psc-total-sub {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 1px;
    }

    .psc-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    .psc-empty__icon {
        font-size: 2rem;
        color: #d1d5db;
    }

    .psc-empty__text {
        font-size: 12px;
        color: #9ca3af;
        line-height: 1.5;
        margin: 0;
    }

    .psc-einlage {
        border-top: 1px solid #e5e7eb;
    }

    .psc-einlage-head {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0.625rem 1.25rem 0.5rem;
        width: 100%;
        background: none;
        border: none;
        text-align: left;
    }

    .psc-einlage-head--toggle {
        cursor: pointer;
    }

    .psc-einlage-head--toggle:hover {
        background: #f9fafb;
    }

    .psc-chevron {
        font-size: 13px;
        color: #9ca3af;
        margin-left: auto;
        flex-shrink: 0;
    }

    .psc-einlage-body--collapsed {
        display: none;
    }

    .psc-einlage-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        padding: 3px 10px 3px 3px;
        border-radius: 20px;
        flex-shrink: 0;
    }

    .psc-einlage-dot {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
        flex-shrink: 0;
    }

    .psc-einlage-badge--1 {
        background: #dbeafe;
        color: #1e40af;
    }

    .psc-einlage-badge--1 .psc-einlage-dot {
        background: #1e40af;
    }

    .psc-einlage-badge--2 {
        background: #ede9fe;
        color: #5b21b6;
    }

    .psc-einlage-badge--2 .psc-einlage-dot {
        background: #5b21b6;
    }

    .psc-einlage-badge--3 {
        background: #fce7f3;
        color: #9d174d;
    }

    .psc-einlage-badge--3 .psc-einlage-dot {
        background: #9d174d;
    }

    .psc-einlage-schuh {
        font-size: 12px;
        color: #6b7280;
        flex: 1;
    }

    .psc-einlage-subtotal {
        font-size: 13px;
        font-weight: 500;
        color: #111827;
        white-space: nowrap;
    }

    .psc-einlage-body {
        padding: 0.5rem 1.25rem 0.75rem;
    }

    .psc-group-label {
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #9ca3af;
        margin: 0.5rem 0 4px;
    }

    .psc-group-label--toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: 10px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #9ca3af;
    }

    .psc-group-label--toggle:hover {
        color: #6b7280;
    }

    .psc-group-label--toggle i {
        font-size: 11px;
    }

    .psc-item {
        background: #f9fafb;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        margin-bottom: 4px;
    }

    .psc-item:last-child {
        margin-bottom: 0;
    }

    .psc-item-top {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .psc-thumb {
        width: 28px;
        height: 28px;
        border-radius: 5px;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid #e5e7eb;
    }

    .psc-thumb--placeholder {
        background: #e5e7eb;
    }

    .psc-item-name {
        font-size: 13px;
        font-weight: 500;
        color: #111827;
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .psc-item-price {
        font-size: 13px;
        font-weight: 500;
        color: #111827;
        white-space: nowrap;
    }

    .psc-pill {
        font-size: 10px;
        padding: 1px 5px;
        border-radius: 8px;
        font-weight: 500;
        white-space: nowrap;
    }

    .psc-pill--empfohlen {
        background: #d1fae5;
        color: #065f46;
    }

    .psc-pill--zusatz {
        background: #fef3c7;
        color: #92400e;
    }

    .psc-item-rows {
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .psc-row {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        padding: 1px 0;
    }

    .psc-row--sep {
        border-top: 1px solid #e5e7eb;
        margin-top: 2px;
        padding-top: 3px;
    }

    .psc-row-lbl {
        color: #6b7280;
    }

    .psc-row-hint {
        color: #9ca3af;
        font-size: 11px;
    }

    .psc-row-hint::before {
        content: " · ";
    }

    .psc-row-val {
        font-weight: 500;
        color: #111827;
    }

    .psc-row-val--muted {
        color: #9ca3af;
    }

    .psc-row-val--accent {
        color: #1d4ed8;
    }

    .psc-footer {
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem 1.25rem;
    }

    .psc-footer-row {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .psc-footer-row--kasse {
        color: #065f46;
    }

    .psc-footer-divider {
        border-top: 1px solid #e5e7eb;
        margin: 6px 0;
    }

    .psc-footer-total {
        display: flex;
        justify-content: space-between;
        font-size: 15px;
        font-weight: 500;
        color: #111827;
        padding-top: 6px;
        border-top: 1px solid #e5e7eb;
    }

/* --- Customer: CustomerRecipeSection (ehemals <style>) --- */
    .recipe-upload-input-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

/* ============================================================
   Ausgelagerte Inline-Styles (ehemals style="...")
   ============================================================ */

/* Summary: PriceSummaryCard */
.psc-row-val--sm {
    font-size: 12px;
}

/* Checkout / EinlagenAnzahl: co-info-banner Abstaende */
.co-info-banner--spaced {
    margin-bottom: 1.5rem;
}

.co-info-banner--flush {
    margin-bottom: 0;
}

/* Checkout: summary-list mit oberem Abstand */
.summary-list--spaced {
    margin-top: 1rem;
}

/* Checkout: Erfolgs-Icon im step-panel */
.step-panel-icon--success {
    background: #dcfce7;
    color: #166534;
}

/* Customer: cf-card__body Einspalten-Varianten */
.cf-card__body--single {
    grid-template-columns: 1fr;
    gap: 10px;
}

.cf-card__body--one-col {
    grid-template-columns: 1fr;
}

/* Customer: Rezept-Bereich */
.recipe-check-icon {
    color: #16a34a;
}

.customer-form__receipt-preview--block {
    display: block;
    margin: 0 auto 12px;
}

.upload-zone--inline {
    padding: 10px 20px;
    flex-direction: row;
    gap: 8px;
    cursor: pointer;
}

.recipe-replace-icon {
    font-size: 16px;
}

.recipe-replace-label {
    font-size: 13px;
    font-weight: 600;
}

/* Configuration: FootAndShoeStep */
.config-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.cf-label--legend {
    margin-bottom: 8px;
}

.configuration__hint--block {
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

.configuration__hint--spaced {
    display: block;
    margin-top: 4px;
}

.configuration__range--grow {
    flex: 1;
}

/* Configuration: CoverColorStep */
.cover-step__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.cover-step__material-desc {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.2;
}

/* Configuration: AddonsStep */
.addons-alert--sm {
    font-size: 12px;
}

.addons-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

/* --- Pages: Rechtliche Seiten (AgbPage, DatenschutzPage) --- */
.legal-page {
    max-width: 860px;
    margin: 0 auto;
}

.legal-page .page-hero {
    margin-bottom: 1.25rem;
}

.legal-content {
    padding: 1.5rem 1.75rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.legal-section + .legal-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.legal-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.legal-section__subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin: 1.5rem 0 0.5rem;
}

.legal-section__question {
    font-size: 14.5px;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    margin: 1.1rem 0 0.4rem;
}

.legal-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 0.75rem;
}

.legal-text:last-child {
    margin-bottom: 0;
}

/* Nummerierte Klausel: Ziffer links, Text bündig daneben. */
.legal-clause {
    display: grid;
    grid-template-columns: 46px 1fr;
    margin-bottom: 0.75rem;
}

.legal-clause:last-child {
    margin-bottom: 0;
}

.legal-clause__no {
    font-size: 14.5px;
    font-weight: 700;
    color: #223261;
    line-height: 1.7;
}

.legal-clause__text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.legal-list {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
}

.legal-list li + li {
    margin-top: 0.5rem;
}

.legal-list--links {
    list-style: none;
    padding-left: 0;
}

.legal-address {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    font-style: normal;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Gesetzlich vorgegebener Versalien-Block (Widerspruchsrecht Art. 21 DSGVO). */
.legal-callout {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border-left: 3px solid #223261;
    border-radius: 0 8px 8px 0;
}

.legal-text--emphasis {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}

.legal-content a {
    color: #223261;
    overflow-wrap: anywhere;
}

.legal-page__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .legal-content {
        padding: 1.1rem 1rem;
    }

    .legal-clause {
        grid-template-columns: 40px 1fr;
    }
}

@media print {
    .legal-page__actions {
        display: none;
    }

    .legal-content {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}
