/**
 * Geschenkskorb Konfigurator - frontend styles.
 *
 * Design goals: warm, rustic shop aesthetic that inherits the theme's
 * typography; clear 3-step flow; strong drag-and-drop affordances.
 * The accent color is themeable per element via the --gk-accent variable
 * (set inline from the builder's "Akzentfarbe" setting).
 *
 * @package Geschenkskorb_Konfigurator
 */

.gk-configurator {
    --gk-accent: #8b5e34;
    --gk-accent-dark: #70491f;
    --gk-accent-dark: color-mix(in srgb, var(--gk-accent) 78%, black);
    --gk-accent-soft: rgba(139, 94, 52, .08);
    --gk-accent-soft: color-mix(in srgb, var(--gk-accent) 8%, white);
    --gk-ink: #2d2a26;
    --gk-muted: #837c73;
    --gk-line: #e8e2da;
    --gk-cream: #faf7f2;
    --gk-white: #ffffff;
    --gk-green: #3f7d4e;
    --gk-radius: 14px;
    --gk-radius-sm: 9px;
    --gk-shadow: 0 2px 10px rgba(60, 42, 20, .07);
    --gk-shadow-lift: 0 10px 28px rgba(60, 42, 20, .14);
    color: var(--gk-ink);
}

.gk-configurator *,
.gk-configurator *::before,
.gk-configurator *::after {
    box-sizing: border-box;
}

/* Icons ---------------------------------------------------------------- */
.gk-icon { display: inline-flex; flex: none; }
.gk-icon svg { width: 100%; height: 100%; display: block; }
.gk-icon--size { width: 42px; height: 42px; color: var(--gk-accent); margin: 0 auto .25rem; }
.gk-icon--basket { width: 22px; height: 22px; color: var(--gk-accent); }
.gk-icon--btn { width: 18px; height: 18px; }
.gk-icon--slot { width: 20px; height: 20px; color: rgba(74, 48, 22, .62); }
.gk-icon--drag { width: 18px; height: 18px; color: #fff; }
.gk-icon--banner { width: 22px; height: 22px; color: var(--gk-green); }

/* Intro ----------------------------------------------------------------- */
.gk-heading { margin: 0 0 .3em; }
.gk-intro { margin: 0 0 2rem; color: var(--gk-muted); max-width: 46em; }

.gk-loading,
.gk-error {
    padding: 2.5rem;
    text-align: center;
    color: var(--gk-muted);
    background: var(--gk-cream);
    border-radius: var(--gk-radius);
}
.gk-error { color: #b3423a; }

/* --------------------------------------------------------------------- */
/* Step headers with numbered badges                                     */
/* --------------------------------------------------------------------- */
.gk-step { margin-bottom: 2.5rem; }

.gk-step-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.25rem;
}

.gk-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    flex: none;
    font-size: .55em;
    font-weight: 700;
    font-family: sans-serif;
    color: #fff;
    background: var(--gk-accent);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(60, 42, 20, .25);
}

/* --------------------------------------------------------------------- */
/* Step 1: size selection cards                                          */
/* --------------------------------------------------------------------- */
.gk-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
    max-width: 720px;
}

.gk-size-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.75rem 1rem 1.5rem;
    font: inherit;
    color: var(--gk-ink);
    text-align: center;
    background: var(--gk-white);
    border: 2px solid var(--gk-line);
    border-radius: var(--gk-radius);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.gk-size-card:hover {
    border-color: var(--gk-accent);
    box-shadow: var(--gk-shadow-lift);
    transform: translateY(-3px);
}

.gk-size-card.is-active {
    border-color: var(--gk-accent);
    background: var(--gk-accent-soft);
    box-shadow: var(--gk-shadow);
}

/* Check badge, revealed on the active card. */
.gk-size-check {
    position: absolute;
    top: -11px;
    right: -11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 5px;
    color: #fff;
    background: var(--gk-accent);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(60, 42, 20, .3);
    opacity: 0;
    transform: scale(.5);
    transition: opacity .2s ease, transform .2s ease;
}
.gk-size-check svg { width: 100%; height: 100%; }
.gk-size-card.is-active .gk-size-check { opacity: 1; transform: scale(1); }

.gk-size-name { font-size: 1.25rem; font-weight: 700; }

/* Capacity preview dots, arranged like the real basket (rows x columns). */
.gk-size-dots {
    display: grid;
    grid-template-columns: repeat(var(--gk-dot-cols, 5), 9px);
    justify-content: center;
    gap: 4px;
    margin: .15rem 0;
}
.gk-size-dots i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--gk-line);
    transition: background .2s ease;
}
.gk-size-card:hover .gk-size-dots i,
.gk-size-card.is-active .gk-size-dots i { background: var(--gk-accent); }

.gk-size-slots { color: var(--gk-muted); font-size: .9rem; }
.gk-size-price { color: var(--gk-accent); font-weight: 700; font-size: 1.05rem; }

/* --------------------------------------------------------------------- */
/* Step 2: layout (basket + products)                                    */
/* --------------------------------------------------------------------- */
.gk-layout {
    display: grid;
    grid-template-columns: minmax(260px, 4fr) 8fr;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 860px) {
    .gk-layout { grid-template-columns: 1fr; }
}

/* Basket ------------------------------------------------------------- */
.gk-basket {
    position: sticky;
    top: 1.25rem;
    padding: 1.25rem;
    background: var(--gk-cream);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow);
}

@media (max-width: 860px) {
    .gk-basket { position: static; }
}

.gk-basket-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.gk-basket-title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 1.02rem;
}

.gk-basket-count { color: var(--gk-muted); font-size: .85rem; }
.gk-basket-count.is-full { color: var(--gk-green); font-weight: 600; }

/* Fill-level progress bar. */
.gk-progress {
    height: 7px;
    margin-bottom: 1rem;
    background: var(--gk-line);
    border-radius: 999px;
    overflow: hidden;
}
.gk-progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gk-accent), var(--gk-accent-dark));
    border-radius: 999px;
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* The slot grid (drop zone), with the basket artwork behind it. */
.gk-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--gk-cols, 3), 1fr);
    /* "dense" backfills the gap left when a multi-slot item wraps to the next
       row - important in narrow portrait baskets, where a 2-slot article often
       does not fit in the remaining column. */
    grid-auto-flow: row dense;
    /* --gk-cell is measured in JS (it accounts for the gaps), so every row is
       exactly one Platz high - whether or not it contains an empty slot.
       Until it exists the rows fall back to the empty slots' 1:1 ratio. */
    grid-auto-rows: var(--gk-cell, auto);
    gap: .6rem;
    min-height: 140px;
    /* Portrait baskets: keep each Platz roughly thumb-sized instead of
       stretching to the full column width. */
    max-width: calc(var(--gk-cols, 3) * 128px);
    margin: 0 auto;
    padding: .75rem;
    background-color: var(--gk-white);
    /* Set as an inline style per basket size. The photos are cropped to the
       grid's aspect ratio, so "cover" fills the box without distorting them. */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 2px dashed transparent;
    border-radius: var(--gk-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* While a product is being dragged anywhere: invite the drop. */
.gk-grid.is-target {
    border-color: var(--gk-accent);
    animation: gk-invite 1.2s ease-in-out infinite;
}

/* Directly hovering the drop zone. */
.gk-grid.is-dragover {
    border-color: var(--gk-accent);
    box-shadow: inset 0 0 0 3px var(--gk-accent-soft), 0 0 0 4px var(--gk-accent-soft);
    animation: none;
}

@keyframes gk-invite {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 94, 52, .25); }
    50% { box-shadow: 0 0 0 7px rgba(139, 94, 52, 0); }
}

.gk-grid-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

/* Readable over the basket artwork. */
.gk-grid-hint span,
.gk-grid-hint {
    text-align: center;
    color: var(--gk-ink);
    font-size: .88rem;
}
.gk-grid-hint::before {
    content: attr(data-hint);
    max-width: 90%;
    padding: .5rem .9rem;
    background: rgba(255, 255, 255, .88);
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(60, 42, 20, .12);
}
.gk-grid.is-empty .gk-slot--empty .gk-icon--slot { opacity: 0; }

/* Slots ---------------------------------------------------------------- */
.gk-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    aspect-ratio: 1 / 1;
    border-radius: var(--gk-radius-sm);
    font-size: .74rem;
    text-align: center;
    overflow: hidden;
}

/* Empty slots stay translucent so the basket artwork shows through. */
/* Kept light on purpose: with 20 slots a stronger fill would hide the basket
   photo almost completely. The dashed outline carries the affordance. */
.gk-slot--empty {
    border: 1.5px dashed rgba(88, 58, 28, .55);
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.gk-slot--empty:hover {
    background: rgba(255, 255, 255, .34);
    border-color: var(--gk-accent);
}
.gk-grid.is-dragover .gk-slot--empty {
    border-color: var(--gk-accent);
    background: rgba(255, 255, 255, .42);
}

/* A filled Platz: the product rests on the basket floor, drawn roughly to
   scale, so a small jar really does look smaller than a big bottle. */
.gk-slot--filled {
    grid-column: span var(--gk-span, 1);
    /* `width: 100%` makes the inline size definite; the aspect ratio then
       yields a definite height. Without it a row that contains only filled
       tiles sizes itself from its content, while the content sizes itself in
       percent of the tile - a circular dependency that collapses the row. */
    width: 100%;
    min-width: 0;
    /* The row height is set on the grid, so the tile just stretches into it. */
    aspect-ratio: auto;
    min-height: 32px;
    padding: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

/* The product photo fills the Plätze it was allotted, shown as large as the
   tile allows. `contain` keeps the photo's own proportions intact. */
.gk-item {
    position: absolute;
    inset: 3%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 7px rgba(60, 42, 20, .4));
}

.gk-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* No product photo: a small card carrying the name instead. */
.gk-item-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: .2rem;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    text-align: center;
    background: linear-gradient(160deg, var(--gk-accent), var(--gk-accent-dark));
    border-radius: 6px;
    overflow: hidden;
}

/* Pop-in animation for freshly added items. */
.gk-pop { animation: gk-pop .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes gk-pop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gk-slot-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .75);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

.gk-slot-name {
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    padding: .1rem .3rem;
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gk-ink);
    text-align: center;
    background: rgba(255, 255, 255, .85);
    border-radius: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}
/* Keep the filled basket readable: names appear on hover, not permanently. */
.gk-slot--filled:hover .gk-slot-name { opacity: 1; }

.gk-slot-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    font-size: .6rem;
    padding: .05rem .35rem;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 999px;
}

.gk-slot-remove {
    position: absolute;
    z-index: 2;
    top: 4px;
    right: 4px;
    width: 21px;
    height: 21px;
    padding: 0;
    line-height: 19px;
    font-size: 15px;
    color: #fff;
    background: rgba(0, 0, 0, .3);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.gk-slot-remove:hover { background: rgba(0, 0, 0, .6); transform: scale(1.12); }

/* Products ----------------------------------------------------------- */
.gk-products-title { margin: 0 0 1rem; }

/* Toolbar: search + category chips ------------------------------------ */
.gk-toolbar {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin-bottom: 1.1rem;
}

.gk-search { position: relative; }

.gk-icon--search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gk-muted);
    pointer-events: none;
}

.gk-search-input {
    width: 100%;
    padding: .65rem 1rem .65rem 2.7rem;
    font: inherit;
    color: var(--gk-ink);
    background: var(--gk-white);
    border: 1.5px solid var(--gk-line);
    border-radius: 999px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gk-search-input:focus {
    outline: none;
    border-color: var(--gk-accent);
    box-shadow: 0 0 0 3px var(--gk-accent-soft);
}
.gk-search-input::placeholder { color: var(--gk-muted); }

.gk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.gk-chip {
    padding: .35rem .9rem;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    color: var(--gk-muted);
    background: var(--gk-white);
    border: 1.5px solid var(--gk-line);
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.gk-chip:hover {
    border-color: var(--gk-accent);
    color: var(--gk-accent);
    transform: translateY(-1px);
}
.gk-chip.is-active {
    background: var(--gk-accent);
    border-color: var(--gk-accent);
    color: #fff;
}

.gk-no-results {
    grid-column: 1 / -1;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--gk-muted);
    background: var(--gk-cream);
    border-radius: var(--gk-radius);
}
.gk-no-results p { margin: 0 0 .8rem; }

.gk-reset-filter {
    padding: .45rem 1.1rem;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gk-accent);
    background: transparent;
    border: 1.5px solid var(--gk-accent);
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gk-reset-filter:hover { background: var(--gk-accent); color: #fff; }

.gk-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.gk-product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--gk-white);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    overflow: hidden;
    cursor: grab;
    transition: box-shadow .2s ease, transform .15s ease, opacity .2s ease;
}

.gk-product:hover { box-shadow: var(--gk-shadow-lift); transform: translateY(-3px); }
.gk-product:active { cursor: grabbing; }
.gk-product.is-dragging { opacity: .45; transform: scale(.97); }

.gk-product.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.4);
}
.gk-product.is-disabled:hover { box-shadow: none; transform: none; }
.gk-product.is-disabled .gk-product-add { visibility: hidden; }

.gk-product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--gk-cream);
}
.gk-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slot cost chip on the image. */
.gk-product-slots-chip {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: .15rem .55rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--gk-ink);
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* Drag handle hint on the image (visible on hover). */
.gk-icon--drag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px;
    background: rgba(0, 0, 0, .35);
    border-radius: 6px;
    opacity: 0;
    transition: opacity .2s ease;
}
.gk-product:hover .gk-icon--drag { opacity: 1; }

.gk-product-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .7rem .75rem .2rem;
    flex: 1;
}

.gk-product-name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.gk-product-price { font-weight: 700; color: var(--gk-accent); font-size: .95rem; }
.gk-product-price del { color: var(--gk-muted); font-weight: 400; margin-right: .3em; }

.gk-product-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: .55rem .75rem .75rem;
    padding: .5rem;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gk-accent);
    background: transparent;
    border: 1.5px solid var(--gk-accent);
    border-radius: var(--gk-radius-sm);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gk-product-add:hover { background: var(--gk-accent); color: #fff; }

.gk-empty { color: var(--gk-muted); }

/* --------------------------------------------------------------------- */
/* Extras step (slot-free add-ons)                                       */
/* --------------------------------------------------------------------- */
.gk-step-intro {
    margin: -0.6rem 0 1.1rem;
    color: var(--gk-muted);
    max-width: 46em;
}

.gk-extras-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gk-extra {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem;
    background: var(--gk-white);
    border: 1.5px solid var(--gk-line);
    border-radius: var(--gk-radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.gk-extra:hover { box-shadow: var(--gk-shadow); }
.gk-extra.is-selected {
    border-color: var(--gk-accent);
    background: var(--gk-accent-soft);
}

.gk-extra-media {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: var(--gk-radius-sm);
    overflow: hidden;
    background: var(--gk-cream);
}
.gk-extra-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gk-extra-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
    min-width: 0;
}
.gk-extra-name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.gk-extra-price { font-weight: 700; color: var(--gk-accent); font-size: .9rem; }
.gk-extra-price del { color: var(--gk-muted); font-weight: 400; margin-right: .3em; }
.gk-extra-hint { font-size: .74rem; color: var(--gk-muted); }

/* Quantity stepper ------------------------------------------------------ */
.gk-stepper {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    flex: none;
    border: 1.5px solid var(--gk-line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--gk-white);
}

.gk-stepper-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--gk-accent);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gk-stepper-btn:hover:not(:disabled) { background: var(--gk-accent); color: #fff; }
.gk-stepper-btn:disabled { color: #cfc7bd; cursor: default; }

.gk-stepper-value {
    min-width: 1.6em;
    text-align: center;
    font-weight: 700;
    font-size: .9rem;
}

/* --------------------------------------------------------------------- */
/* Card & label step                                                     */
/* --------------------------------------------------------------------- */
.gk-options-body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.gk-option-title {
    margin: 0 0 .6rem;
    font-size: 1rem;
}

.gk-choices {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gk-choice {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: .5rem 1.05rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gk-ink);
    background: var(--gk-white);
    border: 1.5px solid var(--gk-line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
}
.gk-choice:hover { border-color: var(--gk-accent); transform: translateY(-1px); }
.gk-choice.is-active {
    background: var(--gk-accent);
    border-color: var(--gk-accent);
    color: #fff;
}
.gk-choice-price { font-size: .8rem; opacity: .8; font-weight: 500; }

.gk-card-text {
    width: 100%;
    max-width: 560px;
    padding: .65rem .85rem;
    font: inherit;
    color: var(--gk-ink);
    background: var(--gk-white);
    border: 1.5px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gk-card-text:focus {
    outline: none;
    border-color: var(--gk-accent);
    box-shadow: 0 0 0 3px var(--gk-accent-soft);
}

/* --------------------------------------------------------------------- */
/* Summary                                                               */
/* --------------------------------------------------------------------- */
.gk-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    background: var(--gk-cream);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow);
}

.gk-summary-main { flex: 1; min-width: 280px; }

/* Quantity row (drives the volume discount) ---------------------------- */
.gk-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding-bottom: .8rem;
    margin-bottom: .8rem;
    border-bottom: 1px solid var(--gk-line);
}

.gk-qty-label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    font-size: .95rem;
}

.gk-qty-input {
    width: 82px;
    padding: .4rem .6rem;
    font: inherit;
    font-weight: 700;
    text-align: center;
    color: var(--gk-ink);
    background: var(--gk-white);
    border: 1.5px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gk-qty-input:focus {
    outline: none;
    border-color: var(--gk-accent);
    box-shadow: 0 0 0 3px var(--gk-accent-soft);
}

.gk-tier-hint { font-size: .82rem; color: var(--gk-muted); }

.gk-tier-nudge {
    margin-top: .5rem;
    padding: .45rem .75rem;
    font-size: .82rem;
    color: var(--gk-accent);
    background: var(--gk-accent-soft);
    border-radius: var(--gk-radius-sm);
}

.gk-summary-rows { flex: 1; min-width: 250px; }

.gk-summary-row--discount .gk-summary-label,
.gk-summary-row--discount .gk-summary-value {
    color: var(--gk-green);
    font-weight: 700;
}

.gk-summary-row {
    display: flex;
    justify-content: space-between;
    padding: .22rem 0;
    font-size: .95rem;
}
.gk-summary-label { color: var(--gk-muted); }
.gk-summary-value { font-weight: 600; }

.gk-summary-row--total {
    margin-top: .5rem;
    padding-top: .7rem;
    border-top: 2px solid var(--gk-accent);
    font-size: 1.25rem;
}
.gk-summary-row--total .gk-summary-label { color: var(--gk-ink); font-weight: 700; }
.gk-summary-row--total .gk-summary-value { color: var(--gk-accent); font-weight: 800; }

/* Primary call-to-action. */
.gk-cta,
.gk-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--gk-accent);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(60, 42, 20, .25);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.gk-cta:hover,
.gk-submit:hover:not(:disabled) {
    background: var(--gk-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(60, 42, 20, .3);
}
.gk-submit { width: 100%; }
.gk-submit:disabled { opacity: .7; cursor: default; transform: none; }

/* --------------------------------------------------------------------- */
/* Form                                                                  */
/* --------------------------------------------------------------------- */
.gk-form {
    display: none;
    max-width: 580px;
    padding: 1.75rem;
    background: var(--gk-white);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow);
}
.gk-form.is-open { display: block; }

.gk-form-note { margin: -0.5rem 0 1.25rem; color: var(--gk-muted); font-size: .9rem; }

.gk-field { display: block; margin-bottom: 1.1rem; }
.gk-field-label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    font-size: .9rem;
}
.gk-field input,
.gk-field textarea {
    width: 100%;
    padding: .65rem .85rem;
    font: inherit;
    color: var(--gk-ink);
    border: 1.5px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-white);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gk-field input:focus,
.gk-field textarea:focus {
    outline: none;
    border-color: var(--gk-accent);
    box-shadow: 0 0 0 3px var(--gk-accent-soft);
}

/* Honeypot: hidden from humans, present for bots. */
.gk-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gk-form-status { margin: 0 0 1rem; font-size: .9rem; }
.gk-form-status.is-error {
    color: #b3423a;
    padding: .65rem .85rem;
    background: #fdf1f0;
    border-radius: var(--gk-radius-sm);
}
.gk-form-status.is-success {
    color: var(--gk-green);
    padding: .65rem .85rem;
    background: #f2f9f3;
    border-radius: var(--gk-radius-sm);
}

/* --------------------------------------------------------------------- */
/* Success banner (after a sent inquiry)                                 */
/* --------------------------------------------------------------------- */
.gk-success-banner {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2rem;
    padding: 1rem 1.3rem;
    color: var(--gk-green);
    background: #f2f9f3;
    border: 1px solid #cfe7d4;
    border-radius: var(--gk-radius);
    font-weight: 600;
}

/* --------------------------------------------------------------------- */
/* Flash message (toast)                                                 */
/* --------------------------------------------------------------------- */
.gk-flash {
    position: fixed;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%) translateY(20px);
    max-width: min(90%, 480px);
    padding: .8rem 1.4rem;
    color: #fff;
    background: var(--gk-ink);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    font-size: .92rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
}
.gk-flash.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------- */
/* Reduced motion                                                        */
/* --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .gk-configurator *,
    .gk-configurator *::before,
    .gk-configurator *::after {
        animation: none !important;
        transition: none !important;
    }
}
