#main .row {
    margin-top: 0 !important;
}

.kiosk-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rk-kiosk-scope {
    --rk-kiosk-header-height: 8vh;
    --rk-kiosk-viewport-height: 100vh;
    --rk-kiosk-available-height: calc(var(--rk-kiosk-viewport-height) - var(--rk-kiosk-header-height));
    --rk-kiosk-portrait-image-height: 38vh;
}

@supports (height: 100dvh) {
    .rk-kiosk-scope {
        --rk-kiosk-viewport-height: 100dvh;
    }
}

/* Colonnes */
.kiosk-config-gauche,
.kiosk-config-droite {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.rk-kiosk-scope.kiosk-config-gauche,
.rk-kiosk-scope.kiosk-config-droite {
    display: flex;
    flex-direction: column;
}

.kiosk-config-gauche {
    align-items: stretch;
    justify-content: center;
}

.rk-kiosk-left-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kiosk-config-gauche .viewer2d-cover-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kiosk-config-gauche #image-block-viewer2d {
    position: relative !important;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.kiosk-config-gauche #view_full_size-viewer2d,
.kiosk-config-gauche .product-cover-configurator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.kiosk-config-gauche #bigpic-viewer2d,
.kiosk-config-gauche #image-block-viewer2d .configurator-layer-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.kiosk-config-gauche #image-block-viewer2d .configurator-layer-img {
    position: absolute !important;
    inset: 0;
    pointer-events: none;
}

.kiosk-config-gauche #viewer2d-download-preview,
.kiosk-config-gauche br,
.kiosk-config-gauche #viewer2d-back-to-cover {
    display: none;
}

.kiosk-config-droite {
    display: flex;
    flex-direction: column;
}

/* Contenu interne à droite */
.kiosk-config-right-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Partie scrollable uniquement pour le configurateur */
.kiosk-config-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.kiosk-step-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.kiosk-step--missing .kiosk-step-header h3 {
    color: #c0392b;
}

.kiosk-step-header h3 span {
    color: red;
}

.kiosk-help-bubble {
    background: #00ac4e;
    color: white;
    border: 0;
    font-size: 1.5rem !important;
    height: 30px;
    aspect-ratio: 1/1;
    border-radius: 15px;
    font-weight: bold;
    margin-left: 20px;
}

.kiosk-help-bubble.kiosk-help-bubble-rubber {
    border-radius: 15px;
    aspect-ratio: unset;
    padding: 0px 15px;
    font-size: 1.1rem !important;
}

.kiosk-config-droite h1 {
    margin-bottom: 10px;
}

/* Récap en bas : container transformé en colonne + dropdown interne */
.kiosk-summary {
    flex: 0 0 auto;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

/* Le titre sert de bouton de toggle */
.kiosk-summary-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

/* Caret d’ouverture/fermeture */
.kiosk-summary-caret {
    display: inline-flex;
    transition: all 0.3s ease;
}

.kiosk-summary-caret i {
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

.kiosk-summary.is-open .kiosk-summary-caret i {
    transform: rotate(0deg);
}

/* Zone scrollable à l'intérieur du récap – repliée par défaut */
.kiosk-summary-scroll {
    max-height: 0;
    overflow-y: hidden;
    padding-right: 6px;
    transition: all 0.3s ease;
}

/* Quand ouvert, le contenu se déploie vers le haut */
.kiosk-summary.is-open .kiosk-summary-scroll {
    max-height: 180px;
    overflow-y: auto;
}

/* La footer reste collée en bas du bloc récap */
.kiosk-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: solid 1px gray;
}

/* Liste interne */
.kiosk-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kiosk-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.kiosk-dialog {
    border: 0;
    padding: 0;
    border-radius: 18px;
    width: min(720px, calc(100% - 32px));
}

.kiosk-dialog-content {
    position: relative;
    padding: 18px 18px 14px;
}

.kiosk-dialog-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.kiosk-dialog-body {
    margin-top: 10px;
    max-height: 65vh;
    overflow: auto;
}

.kiosk-dialog-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.kiosk-dialog-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* Zone configurateur */
.kiosk-config-droite input[type="radio"] {
    transform: scale(1.6);
    /* taille du rond */
    margin-right: 10px;
    cursor: pointer;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #999 !important;
    transition: 0.2s all linear !important;
    margin-right: 5px !important;
    position: relative !important;
    margin: 0;
}

.kiosk-config-droite input[type="radio"]:checked {
    border: 5px solid #00AC4E !important;
}

.kiosk-step-options {
    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-gap: 5px;
}

.kiosk-step-options:has(button.kiosk-help-bubble) {
    grid-template-columns: repeat(1, auto 50px);
}

/* Pour aligner proprement avec le texte */
.kiosk-option-line {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left !important;
    font-size: 18px;
    margin-bottom: 5px;
    cursor: pointer;
}

.kiosk-option-line .kiosk-option-label {
    text-align: left !important;
}

/* zone cliquable plus large (kiosk friendly) */
.kiosk-option-line input[type="radio"] {
    flex-shrink: 0;
}


.kiosk-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 0.95rem;
}

.kiosk-summary-item:last-child {
    border-bottom: none;
}

.kiosk-price-line.is-hidden {
    display: none;
}

.kiosk-summary-label {
    max-width: 70%;
}

.kiosk-summary-price {
    font-weight: 600;
    white-space: nowrap;
}

/* Rappel style options */
.kiosk-config-tab {
    margin-top: 10px;
}

.kiosk-tab-title {
    background: #00843d;
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.kiosk-tab-number {
    background: #fff;
    color: #00843d;
    width: 25px;
    aspect-ratio: 1 / 1;
    margin-right: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.kiosk-tab-content {
    border: 1px solid #00843d;
    border-top: none;
    padding: 12px;
}

.kiosk-step {
    margin-bottom: 15px;
}

.kiosk-select {
    width: 100%;
    padding: 6px;
}

.imgchauss {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.kiosk-valid-config {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #00843d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.kiosk-step-yesno {
    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-gap: 5px;
    margin-bottom: 1.5rem;
}

.kiosk-option-input {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.kiosk-option-input label {
    width: auto;
}

.kiosk-option-input input {
    flex: 1;
}

@media (orientation: landscape) {
    .rk-kiosk-scope.kiosk-config-gauche,
    .rk-kiosk-scope.kiosk-config-droite {
        height: var(--rk-kiosk-available-height);
        min-height: var(--rk-kiosk-available-height);
        max-height: var(--rk-kiosk-available-height);
        overflow: hidden;
    }

    .rk-kiosk-scope.kiosk-config-gauche {
        position: sticky;
        top: var(--rk-kiosk-header-height);
        align-self: flex-start;
    }
}

@media (orientation: portrait) {
    .kiosk-layout {
        flex-direction: column;
    }

    .rk-kiosk-scope.kiosk-config-gauche,
    .rk-kiosk-scope.kiosk-config-droite {
        width: 100%;
        overflow: hidden;
    }

    .rk-kiosk-scope.kiosk-config-gauche {
        position: sticky;
        top: var(--rk-kiosk-header-height);
        z-index: 2;
        background: #fff;
        height: var(--rk-kiosk-portrait-image-height);
        min-height: var(--rk-kiosk-portrait-image-height);
        max-height: var(--rk-kiosk-portrait-image-height);
    }

    .rk-kiosk-scope.kiosk-config-droite {
        height: calc(var(--rk-kiosk-available-height) - var(--rk-kiosk-portrait-image-height));
        min-height: calc(var(--rk-kiosk-available-height) - var(--rk-kiosk-portrait-image-height));
        max-height: calc(var(--rk-kiosk-available-height) - var(--rk-kiosk-portrait-image-height));
        padding-bottom: 5px;
    }
}

.kiosk-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(33, 33, 33, 0.55);
    backdrop-filter: blur(1px);
    z-index: 9999;
}

.kiosk-loading-overlay.is-visible {
    display: flex;
}

.kiosk-loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    aspect-ratio: 1 / 1;
}

.kiosk-product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border: 2px dashed #c6c6c6;
    color: #5f5f5f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    background: #fafafa;
}

.kiosk-loading-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid #d7d7d7;
    border-top-color: #00ac4e;
    animation: rkSpin 1s linear infinite;
}

@keyframes rkSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
