/* ==========================================
   EKKO Studio
   Input + Wizard styling
   ========================================== */


/* ------------------------------------------
   Grundstruktur
------------------------------------------ */

.ekko-studio {
    width: 100%;
    box-sizing: border-box;
}

.ekko-studio *,
.ekko-studio *::before,
.ekko-studio *::after {
    box-sizing: border-box;
}

.ekko-step {
    display: none;
    width: 100%;
}

.ekko-step.active {
    display: block;
}


/* ==========================================
   STEP 1
   ========================================== */

#ekko-step-1 {
    max-width: 920px;
    margin: 0 auto;
    padding: 55px 30px 70px;
    text-align: center;
}


/* ------------------------------------------
   Inputområde
------------------------------------------ */

.ekko-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* ------------------------------------------
   Animeret eksempeltekst
------------------------------------------ */

.ekko-animation {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;

    padding: 0 30px;

    font-size: 30px;
    line-height: 1.2;
    justify-content: center;
    text-align: center;

    color: #8b8b8b;

    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;

    z-index: 1;
}

.ekko-text {
    display: inline-block;
}


/* ------------------------------------------
   Cursor
------------------------------------------ */

.ekko-caret {
    display: inline-block;

    width: 2px;
    height: 1.1em;

    margin-left: 4px;

    background: #333;

    animation: ekko-blink .8s infinite;
}

@keyframes ekko-blink {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

}


/* ------------------------------------------
   Det rigtige input
------------------------------------------ */

#ekko-input {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;

    min-height: 92px;

    padding: 22px 30px;

    border: 1px solid #d8d8d8;
    border-radius: 22px;

    background: rgba(255, 255, 255, .28);

    font-family: inherit;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;

    color: #222;

    outline: none;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


/* Når brugeren skriver */

.ekko-wrapper.typing .ekko-animation {
    opacity: 0;
    transition: opacity .25s ease;
}


/* Focus */

#ekko-input:focus {
    border-color: #bdbdbd;

    box-shadow:
        0 0 0 4px rgba(0, 0, 0, .035);
}


/* ------------------------------------------
   Hjælpetekst
------------------------------------------ */

.ekko-helper {
    margin-top: 13px;

    text-align: center;

    color: #666;

    font-size: 15px;
    line-height: 1.5;
}


/* ==========================================
   Primær knap
   ========================================== */

.ekko-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;

    margin-top: 28px;
    padding: 15px 30px;

    border: none;
    border-radius: 8px;

    background: #111;
    color: #fff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


/* Step 1 CTA */

#ekko-step-1 #ekko-next {
    min-width: 205px;

    margin-top: 24px;

    background: #e50900;

    border-radius: 9px;

    font-size: 17px;
    font-weight: 700;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .14);
}


#ekko-step-1 #ekko-next:hover {
    background: #d60800;

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(0, 0, 0, .18);
}


#ekko-step-1 #ekko-next:active {
    transform: translateY(0);
}


/* Almindelige knapper */

.ekko-button:hover {
    transform: translateY(-2px);
}

.ekko-button.secondary {
    background: #e9e9e9;
    color: #111;
}

.ekko-button.secondary:hover {
    background: #dedede;
}


/* ==========================================
   Actions
   ========================================== */

.ekko-actions {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 40px;

    flex-wrap: wrap;
}


/* ==========================================
   STEP 2
   ========================================== */

#ekko-step-2 {
    max-width: 920px;
    margin: 0 auto;
    padding: 55px 30px 70px;
    text-align: center;
}

#ekko-step-2.active {
    display: flex;
    flex-direction: column;
}


/*
 * Når Step 3 er aktiv, forbliver Step 2 synlig
 * (budskab, perler, farver, palette, morse),
 * men Step 2's egen overskrift og "videre"-knapper
 * skal skjules, så de ikke dubler med Step 3.
 */

#ekko-step-2.ekko-step2-collapsed > h2,
#ekko-step-2.ekko-step2-collapsed > .ekko-actions {
    display: none !important;
}

#ekko-step-2 h2 {
    order: 1;

    margin: 0 0 28px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
}


/* ------------------------------------------
   Budskab
------------------------------------------ */

.ekko-step2-message {
    display: contents;
}

.ekko-step2-message h3 {
    display: none;
}


/* ------------------------------------------
   Step 2 tekstfelt
------------------------------------------ */

.ekko-editor-wrapper {
    order: 3;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

#ekko-editor-input {
    position: relative;
    z-index: 2;

    display: block !important;

    width: 100%;
    min-height: 92px;

    padding: 22px 30px;

    border: 1px solid #d8d8d8;
    border-radius: 22px;

    background: #fff;

    font-family: inherit;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;

    color: #222;

    outline: none;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

#ekko-editor-input:focus {
    border-color: #bdbdbd;

    box-shadow:
        0 0 0 4px rgba(0, 0, 0, .035);
}


/* ------------------------------------------
   Perlerne kommer direkte efter feltet
------------------------------------------ */

#ekko-preview-beads {
    order: 4;

    width: 100%;

    min-height: 150px;

    margin: 8px 0 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: auto;
    overflow-y: hidden;
}


/* ------------------------------------------
   Diskret forklaring
------------------------------------------ */

#ekko-step-2 > h3 {
    order: 5;

    margin: 4px 0 0;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;

    color: #666;
}


/* ------------------------------------------
   Gem / ændring af budskab
------------------------------------------ */

#ekko-update-text {
    order: 2;

    min-height: auto;
    min-width: 0;

    margin-top: 7px;
    padding: 4px 0;

    border: none;
    border-radius: 0;

    background: transparent;
    color: #666;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    box-shadow: none;

    cursor: pointer;
}

#ekko-update-text:hover {
    background: transparent;
    color: #111;

    transform: none;

    box-shadow: none;
}

#ekko-update-text:active {
    transform: none;
}


/* ------------------------------------------
   Navigation skal altid ligge nederst
------------------------------------------ */

#ekko-step-2 .ekko-actions {
    order: 9;
}


/* ------------------------------------------
   Ingen hjælpetekst i Step 2
------------------------------------------ */

.ekko-step2-message .ekko-helper {
    display: none;
}


/* ------------------------------------------
   Farvevælger
------------------------------------------ */

.ekko-palettes {
    order: 7;

    width: 100%;

    margin-top: 58px;
}

.ekko-palettes h3 {
    margin-bottom: 18px;
}


/* ------------------------------------------
   Tekst-preview
------------------------------------------ */

#ekko-preview-text {
    display: none;
}


/* ------------------------------------------
   Morse
------------------------------------------ */

#ekko-preview-morse {
    margin: 6px 0 0;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    min-height: 0;

    letter-spacing: 2px;

    font-size: 18px;

    line-height: 1.4;

    text-align: left;

    word-break: break-word;
}


/* ------------------------------------------
   Morse details
------------------------------------------ */

.ekko-morse-details {
    order: 8;

    margin-top: 28px;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    padding: 14px 0;
}

.ekko-morse-details summary {
    cursor: pointer;

    font-size: 15px;
    font-weight: 600;
}


/* ==========================================
   Armbånd
   ========================================== */

#ekko-preview-beads {
    width: 100%;

    min-height: 120px;

    margin: 10px 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: auto;
    overflow-y: hidden;
}


/* ==========================================
   Perler
   ========================================== */

.ekko-bead {
    position: relative;
    z-index: 1;

    width: 40px !important;
    height: 40px !important;

    object-fit: contain;

    display: inline-block;

    vertical-align: middle;

    margin-right: -39px;
}

.ekko-bead:hover {
    z-index: 20;
}


/* ==========================================
   PALETTER
   ========================================== */

.ekko-palettes {
    margin-top: 42px;
}

.ekko-palettes h3 {
    margin-bottom: 18px;
}


/* Palette grid */

#ekko-palette-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(180px, 1fr));

    gap: 16px;

    margin-top: 20px;

    width: 100%;
}


/* Palette */

.ekko-palette {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    padding: 14px 18px;

    border: 1px solid #d9d9d9;

    border-radius: 14px;

    background: #fff;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;
    text-align: center;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;

    overflow: hidden;
}

.ekko-palette-preview {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    width: 100%;
    min-width: 0;
}


/*
 * Palette-perler skalerer nu efter kortets
 * faktiske bredde.
 *
 * Fire perler deler den tilgængelige plads.
 * De kan derfor ikke længere løbe ud over
 * palettekortet på mobil.
 */

.ekko-palette-preview img {
    flex: 1 1 0;

    width: auto !important;
    max-width: 52px !important;

    min-width: 0 !important;

    height: auto !important;
    max-height: 52px !important;

    aspect-ratio: 1 / 1;

    object-fit: contain;

    display: block;

    margin: 0 !important;
}

.ekko-palette:hover {
    border-color: #999;

    transform: translateY(-1px);
}

.ekko-palette.selected {
    border-color: #111;

    background: #f7f7f7;
}


/* ==========================================
   STEP 3 – farvevælger
   ========================================== */

#dot-colors,
#dash-colors,
#letter-colors,
#word-colors {
    display: grid;

    grid-template-columns:
        repeat(6, 42px);

    gap: 12px;

    margin: 15px 0 30px;
}


#dot-colors img,
#dash-colors img,
#letter-colors img,
#word-colors img {
    width: 42px;
    height: 42px;

    object-fit: contain;

    display: block;

    cursor: pointer;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


#dot-colors img:hover,
#dash-colors img:hover,
#letter-colors img:hover,
#word-colors img:hover {
    transform: scale(1.08);
}


.ekko-library-bead.selected {
    outline: 3px solid #111;

    outline-offset: 3px;

    border-radius: 50%;
}


/* Deaktiveret farve */

.ekko-color-disabled {
    cursor: not-allowed !important;
}


/* ==========================================
   Tekst-actions
   ========================================== */

.ekko-text-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 25px;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 700px) {

    #ekko-step-1 {
        padding: 38px 18px 55px;
    }

    #ekko-step-2 {
        padding: 35px 18px 55px;
    }


    #ekko-input {
        min-height: 76px;

        padding: 20px 24px;

        border-radius: 999px;

        font-size: 21px;
    }


    .ekko-animation {
        padding: 0 24px;

        font-size: 21px;
    }


    #ekko-step-1 #ekko-next {
        display: flex;

        width: 100%;
        max-width: 280px;

        margin: 22px auto 0;
    }


    #ekko-step-2 h2 {
        font-size: 28px;
    }


    #ekko-editor-input {
        min-height: 76px;

        padding: 20px 24px;

        border-radius: 999px;

        font-size: 21px;
    }


    #ekko-preview-beads {
        min-height: 135px;
        margin-top: 8px;
    }


    #ekko-step-2 > h3 {
        margin-top: 2px;
        font-size: 14px;
    }


    #ekko-update-text {
        margin-top: 5px;
        font-size: 14px;
    }


    /*
     * Palettekort:
     * To kolonner på mobil.
     */

    #ekko-palette-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

        width: 100%;
    }


    .ekko-palette {
        min-height: 72px;

        width: 100%;
        min-width: 0;

        padding: 10px 10px;

        overflow: hidden;
    }


    /*
     * Fire perler fordeler sig automatisk
     * efter kortets bredde.
     */

    .ekko-palette-preview {
        gap: 3px;

        width: 100%;
        min-width: 0;
    }


    .ekko-palette-preview img {
        flex: 1 1 0;

        width: auto !important;

        max-width: 48px !important;

        min-width: 0 !important;

        height: auto !important;

        max-height: 48px !important;
    }


    .ekko-palettes {
        margin-top: 48px;
    }


    #ekko-preview-text {
        font-size: 20px;
    }


    #dot-colors,
    #dash-colors,
    #letter-colors,
    #word-colors {
        grid-template-columns:
            repeat(6, 40px);

        gap: 10px;
    }


    #dot-colors img,
    #dash-colors img,
    #letter-colors img,
    #word-colors img {
        width: 40px;
        height: 40px;
    }


    .ekko-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .ekko-actions .ekko-button {
        width: 100%;
    }

}


/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 420px) {

    #ekko-step-1 {
        padding-left: 14px;
        padding-right: 14px;
    }


    #ekko-input {
        font-size: 19px;

        padding-left: 22px;
        padding-right: 22px;
    }


    #ekko-editor-input {
        font-size: 19px;

        padding-left: 22px;
        padding-right: 22px;
    }


    .ekko-animation {
        padding-left: 22px;
        padding-right: 22px;

        font-size: 19px;
    }


    /*
     * På helt små skærme bliver perlerne
     * yderligere skaleret efter kortet.
     */

    .ekko-palette {
        padding-left: 7px;
        padding-right: 7px;
    }


    .ekko-palette-preview {
        gap: 2px;
    }


    .ekko-palette-preview img {
        max-width: 42px !important;
        max-height: 42px !important;
    }


    #dot-colors,
    #dash-colors,
    #letter-colors,
    #word-colors {
        grid-template-columns:
            repeat(6, 36px);

        gap: 8px;
    }


    #dot-colors img,
    #dash-colors img,
    #letter-colors img,
    #word-colors img {
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   EKKO – Step 2 layout corrections
   ========================================================= */

/* Step 2 keeps the main heading at the top */

#ekko-step-2.active {
    display: flex !important;
    flex-direction: column !important;
}

#ekko-step-2 > h2 {
    order: 1 !important;
}


/* Message contents stay in the Step 2 flow */

.ekko-step2-message {
    display: contents !important;
}

.ekko-step2-message h3,
.ekko-step2-message .ekko-helper {
    display: none !important;
}


/* Message input */

#ekko-step-2 .ekko-editor-wrapper {
    order: 2 !important;
}


/* Gem-knappen */

#ekko-update-text {
    order: 3 !important;
    position: static !important;
    align-self: flex-end !important;
    margin: 3px 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}


/* Morse: left aligned, no surrounding lines */

#ekko-step-2 .ekko-morse-details {
    order: 4 !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}

#ekko-step-2 .ekko-morse-details summary {
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* Beads */

#ekko-preview-beads {
    order: 5 !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

#ekko-preview-beads .ekko-bead {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin-right: -39px !important;
    margin-left: 0 !important;
}


/* "Dit budskab i perler" */

#ekko-step-2 > h3 {
    order: 6 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: #666 !important;
}


/* Palette section */

#ekko-step-2 .ekko-palettes {
    order: 7 !important;
}


/* Mønster / fyld-valg – ligger nu inde i farvevælgeren,
   lige efter DINE FARVER og før SKIFT PALETTE */

#ekko-step-2 .ekko-step2-pattern {
    width: 100% !important;

    margin: 0 0 32px !important;
    padding-top: 24px !important;

    border-top: 1px solid #e5e5e5 !important;
}

#ekko-step-2 .ekko-step2-pattern h3 {
    margin: 0 0 14px !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
    color: #222 !important;
}


/* Navigation */

#ekko-step-2 .ekko-actions {
    order: 9 !important;
}


/* Palette grid stays two columns */

#ekko-palette-list {
    display: grid !important;
    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap: 12px 14px !important;

    width: 100% !important;
}

#ekko-palette-list .ekko-palette {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;

    overflow: hidden !important;
}


/*
 * VIGTIGT:
 * Den sidste layout-regel ovenfor er mere specifik
 * end de tidligere palette-regler.
 *
 * Derfor defineres perlernes responsive størrelse
 * også her, så de ikke kan blive skubbet ud af kortet.
 */

#ekko-palette-list .ekko-palette-preview {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 5px !important;
}

#ekko-palette-list .ekko-palette-preview img {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 52px !important;
    height: auto !important;
    max-height: 52px !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
}


/* Mobile */

@media (max-width: 700px) {

    #ekko-palette-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }


    #ekko-palette-list .ekko-palette-preview {
        gap: 3px !important;
    }


    #ekko-palette-list .ekko-palette-preview img {
        max-width: 48px !important;
        max-height: 48px !important;
    }


    #ekko-preview-beads {
        min-height: 46px !important;
        height: 46px !important;
    }

}


/* Small mobile */

@media (max-width: 420px) {

    #ekko-palette-list .ekko-palette {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }


    #ekko-palette-list .ekko-palette-preview {
        gap: 2px !important;
    }


    #ekko-palette-list .ekko-palette-preview img {
        max-width: 42px !important;
        max-height: 42px !important;
    }

}


/* =========================================================
   EKKO – actual SVG beads
   The bracelet preview is rendered as SVG, so .ekko-bead
   CSS does not control the visible beads. Enlarge the SVG
   image itself while keeping the 25-unit center spacing.
   ========================================================= */

#ekko-preview-beads svg image {
    width: 72px !important;
    height: 48px !important;
    x: -36px !important;
    y: -24px !important;
}


/* =========================================================
   EKKO – DINE FARVER
   ========================================================= */


/*
 * Den gamle "Vælg farver"-overskrift skal væk.
 */

#ekko-step-2 .ekko-palettes > h3 {
    display: none !important;
}


/*
 * Det gamle tekstområde fra library.js skal væk.
 */

.ekko-current-color-intro {
    display: none !important;
}


/*
 * DINE FARVER ligger som et selvstændigt,
 * visuelt roligt område.
 */

#ekko-current-colors {
    width: 100%;

    margin: 30px 0 0;
    padding: 0;
}


/*
 * Overskriften.
 */

#ekko-current-colors > h3 {
    margin: 0 0 15px;

    font-size: 23px;
    line-height: 1.2;
    font-weight: 500;

    color: #444;

    text-align: left;
}


/*
 * De fire farvevalg på én række.
 */

.ekko-current-color-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/*
 * De fire farvekort.
 */

.ekko-current-color {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    min-height: 92px;

    padding: 10px 5px;

    border: 1px solid #dedede;
    border-radius: 12px;

    background: #fff;

    color: #444;

    font-family: inherit;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.ekko-current-color:hover {
    border-color: #aaa;

    transform: translateY(-1px);
}


/*
 * Farveperlen.
 */

.ekko-current-color-image {
    display: block;

    width: 42px !important;
    height: 42px !important;

    margin: 0 0 5px !important;

    object-fit: contain;
}


/*
 * Navnet på funktionen.
 */

.ekko-current-color-label {
    display: block;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;

    color: #555;

    text-align: center;
}


/*
 * Paletteområdet kommer efter DINE FARVER.
 */

#ekko-step-2 .ekko-palettes {
    margin-top: 30px;
}


/*
 * Vi bruger pseudo-element til overskriften,
 * så vi ikke skal ændre PHP-markup.
 */

#ekko-palette-list::before {
    content: "SKIFT PALETTE";

    display: block;

    grid-column: 1 / -1;

    margin: 0 0 5px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;

    color: #444;

    text-align: left;
}


/*
 * Fjern den gamle custom-knap.
 */

#ekko-palette-list #ekko-custom-colors {
    display: none !important;
}


/*
 * Mobile
 */

@media (max-width: 700px) {

    #ekko-current-colors {
        margin-top: 26px;
    }


    #ekko-current-colors > h3 {
        margin-bottom: 12px;

        font-size: 21px;
    }


    .ekko-current-color-grid {
        gap: 7px;
    }


    .ekko-current-color {
        min-height: 82px;

        padding: 8px 4px;

        border-radius: 11px;
    }


    .ekko-current-color-image {
        width: 34px !important;
        height: 34px !important;

        margin-bottom: 4px !important;
    }


    .ekko-current-color-label {
        font-size: 13px;
    }


    #ekko-step-2 .ekko-palettes {
        margin-top: 28px;
    }


    #ekko-palette-list::before {
        margin-bottom: 3px;

        font-size: 18px;
    }

}


/*
 * Meget små mobiler.
 */

@media (max-width: 420px) {

    #ekko-current-colors {
        margin-top: 23px;
    }


    #ekko-current-colors > h3 {
        font-size: 19px;
    }


    .ekko-current-color-grid {
        gap: 5px;
    }


    .ekko-current-color {
        min-height: 76px;

        padding: 7px 3px;

        border-radius: 10px;
    }


    .ekko-current-color-image {
        width: 30px !important;
        height: 30px !important;
    }


    .ekko-current-color-label {
        font-size: 12px;
    }


    #ekko-palette-list {
        gap: 8px 10px !important;
    }


    #ekko-palette-list::before {
        font-size: 17px;
    }

}

/* ==========================================
   STEP 2 → STEP 3
   Skjul SKIFT PALETTE når Step 2 er kollapset
   (dvs. når Step 3 vises)
   ========================================== */

#ekko-step-2.ekko-step2-collapsed #ekko-palette-list {
    display: none !important;
}


/* ==========================================
   STEP 3 – de tre valg på række
   ========================================== */

#ekko-step-3 h2 {
    text-align: center;

    margin: 0 0 36px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
}

.ekko-step3-choices {
    display: flex;
    flex-wrap: wrap;

    gap: 24px;

    margin: 36px 0;
}

.ekko-step3-choices .ekko-order-section {
    flex: 1 1 220px;
    min-width: 220px;
}

.ekko-step3-choices h3 {
    margin: 0 0 14px;

    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.ekko-option-group {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.ekko-option {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 16px;

    border: 1px solid #d9d9d9;
    border-radius: 14px;

    background: #fff;

    cursor: pointer;

    font-size: 15px;
    color: #666;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.ekko-option strong {
    color: #222;
}

.ekko-option:hover {
    border-color: #999;
}

.ekko-option input[type="radio"] {
    accent-color: #111;

    width: 16px;
    height: 16px;

    flex-shrink: 0;
}

.ekko-option:has(input:checked) {
    border-color: #111;

    background: #f7f7f7;
}


@media (max-width: 640px) {

    .ekko-step3-choices {
        flex-direction: column;

        gap: 18px;
    }

    .ekko-step3-choices .ekko-order-section {
        flex: 1 1 auto;
        min-width: 0;
    }

}


/* ==========================================
   STEP 3 – Sammenfattet valgkort (fx afslutning)
   ========================================== */

.ekko-summary-card {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: inherit;
    appearance: none;

    text-align: left;
}

.ekko-summary-change {
    flex-shrink: 0;

    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;

    color: #666;

    white-space: nowrap;
}

.ekko-summary-card:hover .ekko-summary-change {
    color: #111;
}


/* ==========================================
   STEP 3 – Dit EKKO / pris-sektion
   ========================================== */

.ekko-order-summary {
    max-width: 460px;

    margin: 40px auto 0;

    text-align: center;
}

.ekko-order-summary h3 {
    margin: 0 0 10px;

    font-size: 20px;
    font-weight: 600;
    color: #222;
}

#ekko-order-summary-text {
    margin: 0 0 6px;

    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.ekko-order-tagline {
    margin: 0 0 22px;

    font-size: 13px;
    color: #999;
}

.ekko-order-price {
    margin: 0 0 22px;

    padding: 16px;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    background: #fafafa;

    font-size: 22px;
    font-weight: 600;
    color: #111;
}

.ekko-order-summary .ekko-button {
    width: 100%;
}


/* ==========================================
   VENTE-OVERLAY ved "Læg i kurv"
   ========================================== */

.ekko-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, .92);

    backdrop-filter: blur(2px);
}

.ekko-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 22px;

    padding: 20px;

    text-align: center;
}

.ekko-loading-spinner {
    width: 46px;
    height: 46px;

    border: 3px solid #e5e5e5;
    border-top-color: #111;
    border-radius: 50%;

    animation: ekko-spin .8s linear infinite;
}

@keyframes ekko-spin {
    to {
        transform: rotate(360deg);
    }
}

#ekko-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;

    min-height: 24px;

    transition: opacity .25s ease;
}

#ekko-loading-text.ekko-loading-text-fade {
    opacity: 0;
}

.ekko-loading-seconds {
    font-size: 13px;
    color: #999;
    font-variant-numeric: tabular-nums;

    /*
     * Skjult for kunderne nu hvor ventetiden er kort og fin
     * (~5 sek). Selve tælleren kører stadig i baggrunden -
     * fjern denne linje hvis vi får brug for at se den igen.
     */
    display: none;
}

.ekko-loading-reassurance {
    font-size: 13px;
    color: #b8860b;

    max-width: 260px;

    display: none;

    opacity: 0;
    transition: opacity .4s ease;
}

.ekko-loading-reassurance.ekko-loading-reassurance-visible {
    display: block;
    opacity: 1;
}