/* Need to add to excisiting code */

input {
    transition-property: background-color;
    /* Input hat ansonsten eine Animation jedesmal wenn sich die Weite oder Höhe ändert */
}

/* Wizard - Base */

.wizard {
    display: grid;
    grid-template-columns: 0.3fr 1fr;
    gap: 1rem;
    /* Darker page background so the lighter sidebar reads as a distinct rounded
       panel against it (the content area uses this same colour). */
    background-color: #f2f2f2;
    min-height: 100%;
}

/* Wizard - Aside Section */


/* In staff / assistance mode the wizard is a fixed-height frame that does not
   scroll: the single grid row is capped to the frame, and each column scrolls
   internally, so the aside stays put while only the content moves. */
.assistance-mode .wizard,
.staff-mode .wizard {
    grid-template-rows: minmax(0, 1fr);
}

.assistance-mode .wizard > #aside,
.staff-mode .wizard > #aside {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

/* Only the main column scrolls; the aside stays put */
.assistance-mode .wizard > main,
.staff-mode .wizard > main {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
}

.assistance-mode .wizard .aside__container,
.staff-mode .wizard .aside__container {
    height: 100%;
    max-height: 100%;
}

.wizard .aside__container {
    overflow-y: auto;
    position: sticky;
    top: 0rem;
    padding: 2rem 1rem;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 2fr 1fr 0.5fr auto;
    row-gap: 2rem;
    /* The sidebar is a lighter panel with its right edge rounded, standing out
       against the darker page background. */
    background-color: #f9f9f9;
    border-top-right-radius: 1.75rem;
    border-bottom-right-radius: 1.75rem;
}


.wizard .aside__help * {
    margin: 0;
}

.wizard .aside__steps {
    display: flex;
    flex-direction: column;
    align-self: center;
    margin-left: 1.5rem;
    font-size: var(--text-300);
    color: rgb(95, 95, 95);
}

.wizard .aside__steps .active {
    font-weight: 600;
    position: relative;
    font-size: var(--text-400);
    color: black;
}

.wizard .aside__steps-icon {
    display: inline-block;
    position: absolute;
    left: -1.5rem;
    top: 0.15rem;
    height: 1.5rem;
    width: 1.5rem;
}

/* Aside Help Section */

.wizard .help__title {
    font-size: var(--text-400);
    margin-bottom: 0;
}

/* Waypoint */

.wizard .aside__waypoint {
    display: none;
}

/* Wizard - Main Section */

.wizard main {
    background-color: #f2f2f2;
}

.wizard main {
    display: grid;
}

.wizard .main__header {
    display: flex;
    gap: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    align-items: center;
}

/* main recede */

.wizard .main__recede svg {
    --recede-size: clamp(3.25rem, 2.85rem + 2vw, 5.25rem);
    width: var(--recede-size);
    height: var(--recede-size);
    transform: translateY(0.2rem);
}

.wizard .main__content {
    padding: 2rem 1rem;
    grid-area: main;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-self: center;
}

.wizard .main__wrapper {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
}

/* Inputs with Floating labels */

.wizard .inputBox {
    position: relative;
    width: 100%;
}

.wizard .main__title {
    /* Rendered as an h1 for document structure, sized like the former h3 */
    font-size: var(--text-600);
    margin-bottom: 1.5rem;
}

.wizard .main__recede {
    margin-bottom: 1.5rem;
}

/* Default Input Text */

.wizard .inputBox input,
.wizard .inputBox select {
    width: 100%;
    padding-block-start: 1.6rem;
    height: 4.375rem;
    transform: translateY(0.5rem);
}

.wizard .inputBox select {
    font-size: 1.125rem;
    transition: all 0.2s ease-in-out;
}

.wizard .inputBox label {
    position: absolute;
    left: 0;
    top: 0;
    padding: 1rem;
    pointer-events: none;
    color: hsla(205, 0%, 35%, 0.6);
    font-size: 1.125rem;
    transition-duration: 0.3s;
    transform: translateY(0.725rem);
    white-space: nowrap;
    width: 100%;
}

.wizard .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard .inputBox input:not(:placeholder-shown) ~ label,
.wizard .inputBox input:focus ~ label {
    color: hsla(205, 100%, 35%, 0.65);
    color: hsla(205, 0%, 35%, 1);
    transform: scale(0.875) translateX(0.25rem);
    transform-origin: left;
}

/* Border on Focus */

.wizard .inputBox input:focus-within,
.wizard .inputBox input:focus-within:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px hsla(205, 100%, 49%, 1);
}

/* Hide Placeholder on init */

.wizard .inputBox input::placeholder {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.3s;
}

/* Placeholder */

.wizard .inputBox input:not(:placeholder-shown)::placeholder,
.wizard .inputBox input:focus::placeholder {
    opacity: 0.4;
    color: hsla(205, 0%, 35%);
}

/* Label after Typing */

.wizard .inputBox input:not(:placeholder-shown) {
    color: hsla(205, 0%, 0%, 1);
}

.wizard .inputBox input:not(:placeholder-shown) ~ label {
    color: hsla(205, 100%, 35%, 0.65);
}

/* Disabled Input */

.wizard .inputBox input:disabled {
    cursor: not-allowed;
    filter: grayscale(100%);
    opacity: 0.75;
}

.wizard .inputBox input:disabled ~ label {
    filter: grayscale(100%);
    opacity: 0.75;
}

.wizard .inputBox select:focus-visible {
    color: hsla(205, 100%, 35%, 1);
    border-color: hsla(205, 100%, 70%, 1);
    outline-color: hsla(205, 100%, 70%, 1);
    background-color: hsla(207, 82%, 98%, 1);
}

.wizard .inputBox select:focus-visible ~ label {
    color: hsla(205, 100%, 35%, 0.65);
}

.wizard .inputBox select ~ label {
    transform: scale(0.875) translateX(0.25rem);
    transform-origin: left;
}

/* Input Error */

.wizard .inputBox small {
    display: block;
    padding-block-start: 1rem;
}

.wizard .inputBox.error small {
    color: crimson;
}

/* Input Grid */

.wizard .main__input-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wizard .input__group--flex {
    display: flex;
    flex-wrap: wrap;
}

.wizard .input__group {
    display: grid;
    gap: 1rem;
}

.wizard .input__group--1-1 {
    grid-template-columns: 1fr 1fr;
}

.wizard .input__group--1-2 {
    grid-template-columns: 1fr 2fr;
}

.wizard .input__group--1-3 {
    grid-template-columns: 1fr 3fr;
}

/* Container for serial key blocks */
.wizard .serial-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* Dashes between inputs */
.wizard .serial-input-container .dash {
    font-size: 1.5rem;
    padding: 0 0.25rem;
    user-select: none;
    margin: 0 0.25rem;
    line-height: 1;
    color: hsla(205, 0%, 35%, 0.6);
}

/* Ensure inputs are only as wide as 4 characters */
.wizard .serial-input-container .inputBox input {
    width: 10ch;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

/* Override inputBox only inside serial container */
.wizard .serial-input-container .inputBox {
    width: auto;
    flex: 0 0 auto;
}

/* Responsive behavior: breaks to new line when needed */
@media (max-width: 500px) {
    .wizard .serial-input-container .inputBox input {
        width: 8ch;
    }
}

/* Responsive behavior: breaks to new line when needed */
@media (max-width: 735px) {
    .wizard .serial-input-container .dash {
        display: none;
    }
}

.wizard .aside__logo {
    width: clamp(2.5rem, 2rem + 2.5vw, 5rem);
    margin-left: clamp(0rem, -0.2rem + 1vw, 1rem);
}

/* Wizard - Basket Section */

.wizard .main__container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
    "main"
    "basket";
}

.wizard .basket__content {
    grid-area: basket;
    position: fixed;
    bottom: 0;
    width: 76%;
}

.wizard .basket-container {
    max-height: 70vh;
    display: flex;
    justify-content: center;
}

.wizard .basket {
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    width: 80%;
    max-width: 1024px;
    background-color: white;
    filter: drop-shadow(0 0 1.5rem hsla(0, 0%, 0%, 0.15));
}

.wizard .main__content {
    filter: blur(0rem);
    transition: filter 200ms;
}

.wizard .main__content.blur {
    filter: blur(0.5rem);
}

.wizard .basket__trigger {
    margin-top: -2rem;
    justify-content: center;
    width: 100%;
    display: flex;
    position: absolute;
    z-index: 1;
}

/* The trigger is a <button> for keyboard access, but must look like the bare
   circle icon: no button chrome, no hover lift, only the icon is interactive. */
.wizard button.basket__trigger,
.wizard button.basket__trigger:hover,
.wizard button.basket__trigger:active {
    width: 66px;
    height: 66px;
    min-width: 0;
    padding: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background: none;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    transform: none;
    color: inherit;
    transition: none;
}

.wizard .main__mobile-footer {
    display: none;
}

@media only screen and (max-width: 600px) {
    .wizard {
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    /* Mobile Footer */
    .wizard .main__mobile-footer {
        display: flex;
        margin-top: 2rem;
        margin-bottom: 2.5rem;
        text-align: center;
        flex-direction: column;
        gap: .5rem;
    }

    .wizard .main__mobile-footer a {
        text-decoration: none;
    }

    .wizard .aside__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wizard .input__group {
        grid-template-columns: 1fr;
    }

    .wizard .aside__help,
    .wizard .aside__links,
    .wizard .aside__legal {
        display: none;
    }

    .wizard .aside__waypoint {
        display: flex;
    }

    .wizard .aside__steps {
        display: none;
    }

    /* .wizard .aside__steps ul {
      margin: 0;
    }
    .wizard .aside__steps li:not(.active) {
      display: none;
    }

    .wizard .aside__steps li svg {
      display: none;
    } */
    .wizard .basket-container {
        max-height: 60vh;
    }

    .wizard .aside__container {
        height: 100%;
        padding: 1rem;
    }

    .wizard .basket {
        width: 100%;
    }

    .wizard .basket__content {
        width: 100%;
    }

    .wizard .basket__full-view {
        display: none;
    }

    .wizard .basket__lite-view {
        display: block;
        height: 100%;
        /* overflow: auto; */
    }
}

@media only screen and (min-width: 600px) {
    .wizard .basket__full-view {
        display: block;
        height: 100%;
    }

    .wizard .basket__lite-view {
        display: none;
    }
}

.wizard .basket__lite-view .order-summary__header {
    display: block;
}

.wizard .basket__lite-view .order-summary__total {
    justify-content: space-between;
}

.wizard .basket__lite-view .order-summary__total--onetime {
    align-items: start;
}

.wizard .basket__details {
    display: none;
    overflow: auto;
    height: 100%;
}

.wizard .order-summary__header {
    margin-bottom: 0;
}

.wizard .order-summary__price--total {
    font-size: var(--text-500);
}

.wizard .main__body {
    margin-bottom: 1.5rem;
}

.wizard .main__content.has_basket {
    margin-bottom: 4rem;
}

.wizard details {
    border-bottom-color: transparent;
}

.wizard .main__footer {
    /* margin-top: 0rem; */
    /* margin-bottom: 1.5rem; */
}

.wizard #wizard_form {
    margin-bottom: 0rem;
}

.main__proceed {
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.wizard .basket__details--show {
    display: block;
}

.wizard .basket__full-view .order-summary__item {
    display: block;
}

.wizard .basket__full-view .order-summary__primary-item,
.wizard .basket__full-view .order-summary__secondary-item {
    display: flex;
}

.wizard .order-summary__primary-item {
    /* color: red; */
    font-size: var(--text-400);
}

.wizard .order-summary__secondary-item {
    /* color: blue; */
    font-size: var(--text-300);
}

.wizard .order-summary__facturation-duration,
.wizard .order-summary__item--discount {
    /* font-size: 0.625rem; */
    font-weight: 400;
}

.wizard .order-summary__item--discount {
    color: #3ab667;
}

.wizard .order-summary__facturation-duration {
    color: rgb(100, 100, 100);
}

/* Font Weight Primary Items */
.wizard .order-summary__primary-item .order-summary__product-category {
    font-weight: 900;
}

.wizard .order-summary__primary-item .order-summary__price--onetime {
    font-weight: 900;
}

.wizard .order-summary__primary-item .order-summary__price--monthly {
    font-weight: 900;
}

/* Font Weight Secondary Items */

.wizard .order-summary__secondary-item .order-summary__title {
    font-weight: 600;
}

.wizard .order-summary__secondary-item .order-summary__price--onetime {
    font-weight: 600;
}

.wizard .order-summary__secondary-item .order-summary__price--monthly {
    font-weight: 600;
}

/* Mobile Basket View */

.wizard .order-summary__item--subtotal-onetime {
    display: flex;
}

.wizard .order-summary__item--subtotal-monthly {
    display: flex;
}

.wizard .basket__lite-view .order-summary__price--onetime {
    display: block;
}

.wizard .basket__lite-view .order-summary__product-category {
    border-bottom: 1px solid #ccc;
    padding-block: 1rem;
}

.wizard .basket__lite-view .order-summary__product-category:last-child {
    border-bottom: 0px solid #ccc;
    padding-block-end: 4rem;
}

.wizard .basket__lite-view .order-summary__product-category:first-child {
    border-bottom: 0px solid #ccc;
    padding-block-end: 0rem;
}

.wizard .order-summary__product-category--name {
    font-weight: 900;
    font-size: var(--text-500);
}

.wizard .basket__lite-view .order-summary__item {
    font-size: var(--text-300);
    border-bottom: none;
    justify-content: space-between;
    column-gap: 1rem;
    padding-block: 0.1rem;
}

.wizard .basket__lite-view .order-summary__title,
.wizard .basket__lite-view .order-summary__price--monthly,
.wizard .basket__lite-view .order-summary__price--onetime {
    font-weight: 500;
}

.wizard .basket__lite-view .order-summary__item--subtotal-monthly,
.wizard .basket__lite-view .order-summary__item--subtotal-onetime {
    font-size: var(--text-400);
    padding-top: 1rem;
}

.wizard .order-summary__item--subtotal-monthly .order-summary__title,
.wizard .order-summary__item--subtotal-monthly .order-summary__price--monthly,
.wizard .order-summary__item--subtotal-monthly .order-summary__price--onetime,
.wizard .order-summary__item--subtotal-onetime .order-summary__title,
.wizard .order-summary__item--subtotal-onetime .order-summary__price--monthly,
.wizard .order-summary__item--subtotal-onetime .order-summary__price--onetime {
    font-weight: 900;
}

.wizard .order-summary__lite-product-category--name {
    font-weight: 900;
}

.wizard .order-summary__lite-product-category {
    padding-block: 1rem;
}

.wizard .choice__shortcut {
    font-size: var(--text-300);
    display: flex;
    background-color: #e1fdff;
    width: calc(var(--text-300) * 2);
    height: calc(var(--text-300) * 2);
    line-height: calc(var(--text-300) * 2);
    border-width: 0.06rem;
    border-radius: 0.5rem;
    color: #0095ff;
    flex-direction: column;
    text-align: center;
    justify-content: flex-end;
    align-items: center;
    border-style: solid;
    border-color: #5dbaff;
}

/* Main Input Grid Button */

.wizard .main__input-grid button,
.wizard .main__input-grid .btn {
    border-radius: 0.5rem;
    background-color: #def1ff;
    border-color: #5dbaff;
    border-width: 0.06rem;
    gap: 1.25rem;
}

.wizard .main__input-grid button:hover,
.wizard .main__input-grid .btn:hover {
    background-color: #fff;
    box-shadow: 3px 3px rgb(93, 186, 255);
}

.wizard .input__group--flex button,
.wizard .input__group--flex .btn {
    justify-content: center;
}

.wizard .choice__icon {
    margin-left: auto;
}

.wizard .choice__label {
    text-align: left;
    color: #000622;
}

.wizard .choice__label :nth-child(2) {
    font-size: var(--text-200);
    /* opacity: 0.6; */
    font-weight: 500;
    color: #434860;
}

.wizard .main__section-title {
    font-size: var(--text-500);
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.wizard .order-summary__title svg {
    display: inline-flex;
    width: 1.2rem;
    height: 1.2rem;
    transform: translateY(0.2rem);
}

/* Choice Chips - Links */

.wizard .choice-chips {
    /* Segmented control (iOS/tvOS style): a grey track holding the two options */
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0.3rem;
    list-style: none;
    background: #e7e8ec;
    border-radius: 999px;
}

/* Sliding indicator (the white pill with the blue border) that glides from the
   old choice to the new one. Its position/width are set from JS via the custom
   properties on the list (see position_chip_indicator in app.js). */
.wizard .choice-chips::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0;
    width: var(--chip-ind-w, 0);
    transform: translateX(var(--chip-ind-x, 0));
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid #0095ff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 6, 34, 0.18);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.wizard .choice-chips.has-indicator::before {
    opacity: 1;
}

.wizard .choice-chips.is-ready::before {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .wizard .choice-chips.is-ready::before {
        transition: none;
    }
}

.wizard .choice-chip {
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    /* Transparent border on every chip so the sliding indicator behind it fits
       exactly and there is no size change between states. */
    border: 1.5px solid transparent;
    border-radius: 999px;
    color: #4a4f5a;
    background-color: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.wizard .choice-chip a {
    display: block;
    padding: 0.45rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
}

.wizard .choice-chip:not(.choice-chip--active):hover {
    color: #000622;
    transform: none;
    box-shadow: none;
}

.wizard .choice-chip--active {
    /* The white pill and blue border are drawn by the sliding indicator behind
       the chip; the active chip itself just gets bold blue text for visibility. */
    color: #0095ff;
    background-color: transparent;
    border-color: transparent;
    font-weight: 700;
    box-shadow: none;
}

.wizard .basket__trigger #Icon_ionic-ios-arrow-up {
    transform-box: fill-box;
    transform-origin: center;
    transform: translate(0.5rem, 0.5rem) rotate(0deg);
    fill: hsla(0, 0%, 0%, 1);
    transition: all 200ms;
}

.wizard .basket__trigger.open #Icon_ionic-ios-arrow-up {
    transform-box: fill-box;
    transform-origin: center;
    transform: translate(0.5rem, 0.7rem) rotate(180deg);
    fill: hsla(0, 0%, 0%, 1);
}

.wizard .basket__trigger #basket__trigger--ellipse {
    fill: hsl(0, 0%, 100%);
    transition: fill 200ms;
}

.wizard .basket__trigger svg {
    cursor: pointer;
}

/* Errors */

.wizard .errorlist li,
.wizard p.callout {
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 0.5rem;
    border: #0095ff solid 1px;
    color: rgba(0, 149, 255, 1);
    padding: 0.5rem 0.75rem;
    margin-block: 0.75rem;
    font-size: var(--text-300);
    font-weight: 500;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' %3F%3E%3Csvg class='feather feather-alert-circle' fill='none' height='1.5rem' stroke='rgba(0, 149, 255,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.6rem 0.6rem;
    padding-left: 2.6rem;
}

.wizard p.callout {
    margin-bottom: 1.5rem;
}

/* Benne Magic */

.STYLESHEETS-TODO {
    background-color: deeppink !important;
    color: yellow !important;
    animation: flickerAnimation 0.75s infinite;
}

@keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

#content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.25s ease-out;
}

/* The directional enter animation for the step content is run imperatively with
   the Web Animations API in settle_content_transition (app.js), so no keyframes
   are needed here. */

#content.htmx-swapping {
    /* The old content just fades out; the incoming content carries the
       directional slide (see settle_content_transition in app.js). */
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

#content.htmx-request {
    opacity: 0.1;
    transition: all 300ms linear;
    cursor: not-allowed;
    pointer-events: none;
}

/* While a toggle (Mieten/Kaufen, Internet/Internet & TV, ...) is switching the
   same step, skip the dim-out and fade-out so the directional slide of the
   incoming content is the whole effect instead of being buried under a long
   fade during the request. */
body.toggling #content.htmx-request,
body.toggling #content.htmx-swapping {
    opacity: 1;
    transition: none;
}

#content.htmx-added {
    opacity: 0;
}

@keyframes basketUpdate {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

#basket {
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.5s ease-out;
}

#basket.hidden {
    opacity: 0;
    transform: translateY(150px);
    transition: all 0.5s ease-out;
}

.wizard button.btn--text-link {
    font-size: var(--text-300);
    border: 0;
    padding: 0;
    gap: 0.75rem;
    text-decoration: underline;
    text-decoration-color: var(--primary-text-decoration-color);
    transition: text-decoration-color 0.2s;
}

.wizard button.btn--text-link:hover {
    box-shadow: none;
    transform: none;
    color: var(--primary-link-color);
    text-decoration-color: var(--primary-color);
    background-color: transparent;
}

.wizard .aside__links form,
.wizard .main__mobile-footer form {
    margin-bottom: 0;
    display: inline-block;
}

.wizard .aside__links button,
.wizard .main__mobile-footer button {
    all: unset;
    cursor: pointer;
    transition: color 0.2s;
}

.wizard .aside__links button:hover,
.main__mobile-footer button:hover {
    color: var(--primary-color);
}

.wizard button * {
    pointer-events: none;
}

.wizard button#choice-0 {
    margin-bottom: 1.5rem;
}

.wizard main p {
    max-width: 59ch;
}

/* Phonenumber a tag */

.wizard a[href^="tel"] {
    color: inherit;
    /* text-decoration-color: transparent; */
}

.wizard a {
    font-weight: 500;
    color: inherit;
    text-decoration-color: transparent;
    transition: all 0.2s;
}

.wizard a:hover {
    color: var(--primary-color);
}

.wizard .aside__links {
    font-size: var(--text-300);
}

.wizard .aside__links .aside__links--highlight {
    font-weight: 600;
}

.wizard .aside__legal {
    font-size: var(--text-300);
}

/* Checkout Header */

.wizard .checkout__header-title {
    font-size: var(--text-500);
    font-weight: 800;
}

.wizard .checkout__header-product {
    font-size: var(--text-600);
    font-weight: 800;
}

.wizard .checkout__netneutrality-info {
    margin-bottom: 1rem;
}

.wizard .checkout__netneutrality-info a {
}

.wizard .checkout__address-title {
    font-weight: 700;
}

.wizard .checkout__address {
    margin-bottom: 1rem;
}

.wizard .checkout__header-congratulations {
    margin-bottom: 1rem;
}

.wizard .checkout__header-info {
    display: flex;
    font-weight: 900;
    gap: 1rem;
}

.wizard .checkout__header-leading-icon {
    display: flex;
    gap: 0.25rem;
}

.wizard .checkout__netneutrality-info a {
    font-size: var(--text-300);
    text-decoration-color: black;
}

.wizard .checkout__address {
    font-size: var(--text-300);
}

.wizard .order-summary__lite-product-category .order-summary__item {
    padding-block: 0.1rem;
    font-size: var(--text-300);
}

.wizard .order-summary__lite-product-category .order-summary__item--subtotal-onetime {
    margin-top: 1rem;
}

.wizard .order-summary__item--subtotal-monthly {
    margin-top: 1rem;
}

.wizard .order-summary__item--subtotal-monthly .order-summary__title,
.wizard .order-summary__item--subtotal-onetime .order-summary__title {
    color: black;
    font-weight: 900;
}

.wizard .main__footer-checkout-prices {
    text-align: right;
}

.wizard .checkout-lottie-animation {
    display: flex;
    justify-content: center;
}

.wizard .checkout-lottie-animation-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.wizard .checkout-lottie-animation {
    height: 10rem;
}

.wizard .checkout-lottie-subtitle {
    transform: translateY(-1.25rem);
}

.wizard .main__footer-checkout-prices .footnotes {
    text-align: right;
    margin-bottom: 2rem;
}

/* Mobile Progress Circle */

.wizard .chart-container {
    width: 2.25rem;
    display: inline-block;
}

.wizard .single-chart {
    width: 100%;
}

.wizard .circular-chart {
    display: block;
    position: relative;
}

.wizard .circular-chart .circle-bg {
    fill: none;
    stroke: #d5d6d8;
    stroke-width: 4;
}

.wizard .circular-chart .circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    /* The completed arc moves from its previous value (see settle_waypoint in app.js) */
    transition: stroke-dasharray 0.6s ease;
}

.wizard .circular-chart .circle {
    stroke: #333a47;
}

.wizard .single-chart text {
    text-anchor: middle;
    font-weight: 700;
}

.wizard .circular-chart-value {
    font-size: 0.7em;
}

.wizard .circular-chart-unit {
    font-size: 0.4em;
}

/* Dropzone Styles */

.wizard #upload-dropzone {
    border-radius: var(--default-radius);
    border: 2px dashed rgb(0, 135, 247);
    width: 100%;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

.wizard #upload-dropzone.dz-started {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;
}

@media only screen and (max-width: 600px) {
    .wizard #upload-dropzone.dz-started {
        grid-template-columns: 1fr 1fr;
    }
}

.wizard .dz-message p {
    margin-bottom: 0;
}

.wizard .dz-message .footnotes {
    text-align: center;
}

.wizard .dropzone-delete-icon {
    width: 2rem;
    height: 2rem;
    fill: white;
    opacity: 0.75;
    transition: all 200ms ease;
    transform: rotate(0deg);
}

.wizard .dropzone .dz-preview .dz-details {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.5rem;
    display: flex;
    justify-content: right;
    align-items: flex-start;
}

.wizard .dropzone-delete-icon:focus,
.wizard .dropzone-delete-icon:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* As a <button> the icon must not pick up the generic button chrome */
.wizard button.dropzone-delete-icon,
.wizard button.dropzone-delete-icon:hover,
.wizard button.dropzone-delete-icon:focus,
.wizard button.dropzone-delete-icon:active {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
}

.wizard .dropzone.dz-clickable * {
    cursor: pointer;
}

.wizard .dropzone .dz-preview {
    margin: 0;
}

.wizard .dropzone .dz-preview .dz-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.wizard .dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
}

.wizard .dropzone .dz-preview.dz-success .dz-success-mark {
    animation: passing-through 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.wizard .dropzone .dz-preview .dz-progress {
    opacity: 1;
    z-index: 1000;
    pointer-events: none;
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    margin-top: 0;
    width: 100%;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.2rem;
}

.wizard .dropzone .dz-preview .dz-progress .dz-upload {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    transition: width 300ms ease-in-out;
    overflow: hidden;
}

.wizard .dropzone .dz-preview.dz-complete .dz-progress {
    opacity: 0;
}

/* Default textarea Text */

.wizard .inputBox textarea {
    width: 100%;
    padding-block-start: 1.6rem;
    height: 4.375rem;
    transform: translateY(0.5rem);
    transition-property: background-color, border-color, box-shadow;
    min-height: 12rem;
    resize: none;
}

.wizard .inputBox textarea:not(:placeholder-shown) ~ label,
.wizard .inputBox textarea:focus ~ label {
    color: hsla(205, 0%, 35%, 1);
    transform: scale(0.875) translateX(0.25rem) translateY(-0.15rem);
    transform-origin: left;
}

/* Border on Focus */

.wizard .inputBox textarea:focus-within,
.wizard .inputBox textarea:focus-within:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px hsla(205, 100%, 49%, 1);
}

/* Hide Placeholder on init */

.wizard .inputBox textarea::placeholder {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.3s;
}

/* Placeholder */

.wizard .inputBox textarea:not(:placeholder-shown)::placeholder,
.wizard .inputBox textarea:focus::placeholder {
    opacity: 0.4;
    color: hsla(205, 0%, 35%);
}

/* Label after Typing */

.wizard .inputBox textarea:not(:placeholder-shown) ~ label {
    color: hsla(205, 100%, 35%, 0.65);
}

.wizard .inputBox textarea:not(:placeholder-shown) {
    outline: none;
}

.wizard .inputBox textarea:focus {
    background-color: #f5fafe;
    border-color: #0091f8;
}

/* Wizard Language Switcher */

.wizard .language-switcher {
    display: flex;
    align-items: center;
}

.wizard .language-switcher ul {
    text-transform: uppercase;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    margin: 0;
}

.wizard .language-switcher ul li {
    position: relative;
    font-size: var(--text-300);
}

.wizard .language-switcher ul li a {
    padding: 0.4rem;
    color: hsla(0, 0%, 0%, 0.4);
    font-weight: 600;
}

.wizard .language-switcher ul li a:hover,
.wizard .language-switcher ul li a.active:hover,
.wizard .language-switcher ul li a:focus,
.wizard .language-switcher ul li a.active:focus {
    color: var(--primary-color);
}

.wizard .language-switcher ul li a.active {
    color: hsla(0, 0%, 0%, 1);
}

.wizard .language-switcher ul li::after {
    content: "•";
    position: absolute;
    color: hsla(0, 0%, 0%, 0.2);
    font-weight: 400;
    transform: translateY(-3%) translateX(-50%);
}

.wizard .language-switcher ul li:last-child::after {
    content: "";
}

.wizard .main__mobile-footer .language-switcher {
    justify-content: center;
}

.wizard .language-switcher .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.wizard .main__mobile-footer .language-switcher .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* leading-checkbox */

.wizard .leading-checkbox__container {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background-color: white;
    border-radius: 0.51rem;
    padding: 1rem;
    font-size: var(--text-300);
    margin-bottom: 1rem;
}

.wizard .leading-checkbox__container:last-child {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.wizard .main__footer-checkout-confirm button {
    margin-top: 1rem;
}

.wizard .main__footer-checkout-confirm .checkbox input:focus {
    border: 1px solid transparent;
    background-color: aliceblue;
}

.wizard .main__footer-checkout-confirm .checkbox {
    --background: #fff;
    --border: #d1d6ee;
    --border-hover: #bbc1e1;
    --border-active: var(--primary-color);
    --tick: #fff;
    position: relative;
}

.wizard .main__footer-checkout-confirm .checkbox input,
.wizard .main__footer-checkout-confirm .checkbox svg {
    width: 21px;
    height: 21px;
    display: block;
}

.wizard .main__footer-checkout-confirm .checkbox input {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background: var(--background);
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 0.3rem;
    transition: box-shadow 0.3s;
    box-shadow: inset 0 0 0 var(--s, 1px) var(--b, var(--border));
}

.wizard .main__footer-checkout-confirm .checkbox input:hover {
    --s: 2px;
    --b: var(--border-hover);
}

.wizard .main__footer-checkout-confirm .checkbox input:checked {
    --b: var(--border-active);
}

.wizard .main__footer-checkout-confirm .checkbox svg {
    pointer-events: none;
    fill: none;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--stroke, var(--border-active));
    position: absolute;
    top: 0;
    left: 0;
    width: 21px;
    height: 21px;
    transform: scale(var(--scale, 1)) translateZ(0);
}

.wizard .main__footer-checkout-confirm .checkbox.path input:checked {
    --s: 2px;
    transition-delay: 0.4s;
}

.wizard .main__footer-checkout-confirm .checkbox.path input:checked + svg {
    --a: 16.1 86.12;
    --o: 102.22;
}

.wizard .main__footer-checkout-confirm .checkbox.path svg {
    stroke-dasharray: var(--a, 86.12);
    stroke-dashoffset: var(--o, 86.12);
    transition: stroke-dasharray 0.6s, stroke-dashoffset 0.6s;
}

.wizard .main__footer-checkout-confirm .checkbox.bounce {
    --stroke: var(--tick);
}

.wizard .main__footer-checkout-confirm .checkbox.bounce input:checked {
    --s: 11px;
}

.wizard .main__footer-checkout-confirm .checkbox.bounce input:checked + svg {
    -webkit-animation: bounce 0.4s linear forwards 0.2s;
    animation: bounce 0.4s linear forwards 0.2s;
}

.wizard .main__footer-checkout-confirm .checkbox.bounce svg {
    --scale: 0;
}

.wizard .main__footer-checkout-confirm a {
    color: var(--primary-link-color);
    text-decoration-color: var(--primary-text-decoration-color);
    transition: text-decoration-color 0.2s;
}

@-webkit-keyframes bounce {
    50% {
        transform: scale(1.2);
    }

    75% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    50% {
        transform: scale(1.2);
    }

    75% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Dropzone Demo Installation Grid  */

.wizard .demo-installation-grid {
    width: 100%;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    margin-bottom: 2rem;
}

.wizard .demo-installation-grid img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Order Wizard Leading Animation */

.wizard .wizardstep__leading-animation {
    display: flex;
    justify-content: center;
}

.wizard .wizardstep__leading-animation > * {
    max-width: clamp(12rem, 9.6rem + 12vw, 24rem);
}

.wizard .wizardstep__with-leading-animation {
    width: 100%;
}

.wizard .wizardstep__with-leading-animation div {
    display: flex;
    justify-content: center;
}

.wizard .wizardstep__with-leading-animation lottie-player {
    max-width: clamp(10rem, 8rem + 10vw, 20rem);
}

.wizard .wizardstep__with-leading-animation--large lottie-player {
    max-width: clamp(18rem, 12rem + 22vw, 36rem);
    /* The illustration is cut off at the bottom edge; fade it out instead */
    mask-image: linear-gradient(to bottom, #000 40%, transparent 87%);
}

.wizard .wizardstep__with-leading-animation--large > div {
    margin-bottom: 1.5rem;
}

.wizard .order-summary__total--monthly .order-summary__price--label,
.wizard .order-summary__total--onetime .order-summary__price--label {
    font-size: var(--text-200);
}

.wizard .order-summary__lite-product-category {
    /* The border separates the categories; a full 1rem below the last item
       looked like excess padding, so the bottom is kept tight and the top
       padding gives the next category its breathing room. */
    padding-top: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ccc;
}

.wizard .order-summary__lite-product-category:last-child,
.wizard .basket__full-view .order-summary__item:last-child {
    margin-bottom: 4rem;
    border-bottom-color: transparent;
}

.wizard .claimable-table {
    border: 1px solid #dadada;
    border-collapse: separate;
    border-radius: 1rem;
    background: white;
    padding: 0.5rem;
    max-width: 620px;
    table-layout: fixed; /* important for wrapping text */
    word-wrap: break-word;
}

.wizard .claimable-summary {
    text-align: center;
    background: linear-gradient(25deg, rgba(108, 66, 228, 0.05) 0%, rgba(0, 176, 234, 0.05) 75%);
    border-left: 1px solid #dadada;
    border-right: 1px solid #dadada;
    border-bottom: 1px solid #dadada;
    border-collapse: separate;
    border-radius: 0rem 0rem 1rem 1rem;
    padding: 0.75rem;
}

.wizard .claimable-summary--text {
    background: linear-gradient(25deg, #6c42e4 0%, #0088b5 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for Firefox */
    color: transparent; /* fallback for safety */
}

.claimable-title {
    border: 1px solid #dadada;
    border-radius: 1rem 1rem 0rem 0rem;
    background: linear-gradient(25deg, #6c42e4 0%, #00b0ea 75%);
    text-align: center;
    color: white;
    font-weight: 600;
}

td.claimable-title {
    position: relative;
    overflow: hidden;
    background-color: #333;
    color: white;
}

/* The shine effect */
td.claimable-title:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 10%,
            rgba(255, 255, 255, 0.05) 30%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.05) 60%,
            rgba(255, 255, 255, 0) 30%
    );
    opacity: 0;
    animation: shineMove 2.5s, shineFade 2.5s ease-in-out;
}

/* Move the gradient across */
@keyframes shineMove {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fade in/out the shine during its movement */
@keyframes shineFade {
    0% {
        opacity: 0.0;
    }
    20% {
        opacity: 0.75;
    }
    50% {
        opacity: 0.50;
    }
    80% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
    }
}

.monospace {
    font-family: 'Courier New', Courier, monospace;
}

.main__footer-claimable-display {
    border: 1px solid #dadada;
    border-radius: 1rem;
    background: linear-gradient(25deg, rgba(108, 66, 228, 0.05) 0%, rgba(0, 176, 234, 0.05) 75%);
    text-align: center;
    padding: 0.5rem;
    margin-bottom: 2.5rem;
}

.main__footer-claimable-display__text {
    background: linear-gradient(25deg, #6c42e4 0%, #0088b5 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for Firefox */
    color: transparent; /* fallback for safety */
}

/* While the order summary is open the blurred step content is not interactive */
.wizard .blur {
    pointer-events: none;
    user-select: none;
}

/* Price difference to the currently selected option */
.wizard .choice__delta {
    margin-left: 0.25rem;
    color: #434860;
    opacity: 0.85;
    white-space: nowrap;
}

/* Rolling digits for the basket totals */
.wizard .odo {
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wizard .odo-slot {
    display: inline-block;
    height: 1em;
    line-height: 1;
    overflow: hidden;
    vertical-align: baseline;
}

.wizard .odo-strip {
    display: block;
    will-change: transform;
}

.wizard .odo-digit {
    display: block;
    height: 1em;
    line-height: 1;
}

.wizard .odo-static {
    display: inline-block;
    line-height: 1;
}

/* Completed steps in the step list can be reopened */
.wizard .aside__steps-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.wizard .aside__steps-link:hover,
.wizard .aside__steps-link:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

/* Modal explaining why a step was reopened automatically */
.wizard .step-notice-dialog {
    /* the global margin reset would otherwise pin the dialog to the top left */
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0;
    border-radius: 1rem;
    padding: 2rem;
    max-width: min(32rem, calc(100vw - 2rem));
    box-shadow: 0 1rem 3rem rgba(0, 6, 34, 0.25);
    color: #000622;
    text-align: center;
}

.wizard .step-notice-dialog::backdrop {
    /* same treatment as the blurred page behind the open cart */
    background: rgba(194, 65, 12, 0.42);
    backdrop-filter: blur(0.5rem);
    animation: step-notice-backdrop 0.35s ease-out both;
}

.wizard .step-notice-dialog[open] {
    animation: step-notice-plop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes step-notice-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes step-notice-plop {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.wizard .step-notice-dialog__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #c2410c;
    color: #fff;
    font-weight: 900;
    font-size: var(--text-600);
    line-height: 3rem;
    /* one-time pulse once the dialog has plopped in */
    animation: attention-pulse 0.9s ease-out 0.35s 1 both;
}

.wizard .step-notice-dialog__title {
    font-size: var(--text-500);
    margin: 0 0 1rem;
}

.wizard .step-notice-dialog__reasons {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.wizard .step-notice-dialog__reasons li + li {
    margin-top: 0.5rem;
}

.wizard .step-notice-dialog:not([open]) {
    display: none;
}

.wizard .step-notice-dialog__close {
    min-width: 12rem;
}

/* Steps that were reopened automatically and still need attention */
.wizard .aside__steps li.attention {
    position: relative;
}

.wizard .aside__steps li.attention,
.wizard .aside__steps li.attention a {
    color: #c2410c;
}

.wizard .aside__steps-icon--alert {
    /* small badge, vertically aligned with the step title */
    height: 1.15rem;
    width: 1.15rem;
    left: -1.65rem;
    top: 0.2rem;
}

@keyframes attention-pulse {
    0% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 0.9rem rgba(194, 65, 12, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 65, 12, 0); }
}

/* Animated step switching in the aside (see settle_steps in app.js) */
.wizard .aside__steps li {
    transition: color 300ms ease, font-size 300ms ease;
}

.wizard .aside__steps li.active.aside__steps--entering {
    font-size: var(--text-300);
    color: inherit;
}

.wizard .aside__steps li.aside__steps--leaving {
    font-size: var(--text-400);
    color: black;
}

.wizard .aside__steps-icon {
    will-change: transform;
}

/* Current step while one of its sub-steps / options is being edited */
.wizard .aside__steps li.substep,
.wizard .aside__steps li.substep a {
    /* the green of the promo / discount lines in the cart */
    color: #3ab667;
}

.wizard .aside__steps-icon--substep {
    height: 1.15rem;
    width: 1.15rem;
    left: -1.65rem;
    top: 0.2rem;
}

/* Staff / assistance mode banner: one compact row, expandable on click.
   Every text element truncates on its own when space runs out. */
.mode-banner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-height: 0;
    /* In staff / assistance mode the <body> is a fixed-height flex column, so
       the banner (a flex item) would otherwise be squeezed by a different amount
       on each step depending on how tall the content is, making it visibly grow
       and shrink while navigating. Pin it to its own height so it never flexes. */
    flex: 0 0 auto;
}

.mode-banner.is-truncated,
.mode-banner.is-open {
    cursor: pointer;
}

.mode-banner__group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.mode-banner__group--left {
    flex: 1 1 auto;
}

.mode-banner__group--right {
    /* the disclaimer on the right gives way first, the title last */
    flex: 0 12 auto;
    justify-content: flex-end;
}

.mode-banner__pill {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.mode-banner .mode-banner__text {
    font-weight: 400;
}

.mode-banner .mode-banner__text--title {
    font-size: 0.95rem;
    font-weight: 700;
}

.mode-banner__text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    font-size: 0.875rem;
    text-align: left;
}

/* The long explanation gives way first; identifier and user name last */
.mode-banner__text--explanation {
    flex-shrink: 6;
}

.mode-banner__action {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.2rem 0.75rem;
}

.mode-banner__toggle[hidden] {
    display: none;
}

.mode-banner__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.2rem;
    min-width: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
}

.mode-banner__toggle:hover,
.mode-banner__toggle:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: none;
    border: 0;
}

.mode-banner__caret {
    transition: transform 0.2s ease;
}

/* Expanded: groups may wrap and texts show in full */
.mode-banner.is-open {
    flex-wrap: wrap;
}

.mode-banner.is-open .mode-banner__group {
    flex-wrap: wrap;
}

.mode-banner.is-open .mode-banner__text {
    white-space: normal;
}

.mode-banner.is-open .mode-banner__caret {
    transform: rotate(180deg);
}
