/*
 * Vildmark product template.
 *
 * Palette and rhythm follow the UrbanWild design system foundations
 * (forest + wood, DM Sans), the same values tailwind.config.js extends with.
 * Kept as a standalone stylesheet rather than Tailwind utilities so it loads
 * only on products using this template, and so the template file itself stays
 * free of the inline <style> block the older variants carry.
 */

.uw-vm {
    --vm-forest-50: #f0fdf4;
    --vm-forest-100: #dcfce7;
    --vm-forest-700: #15803d;
    --vm-forest-800: #166534;
    --vm-wood-50: #faf8f5;
    --vm-wood-100: #f5f0e8;
    --vm-wood-200: #e8dfd2;
    --vm-wood-300: #d4c4ad;
    --vm-wood-700: #6f5a44;
    --vm-wood-800: #5a4838;
    --vm-wood-900: #4a3c2e;

    /* "Få tilbud" enquiry form validation: new semantic colour, not a
       duplicate of an existing token. Matches the red already used
       elsewhere on the site for form errors. */
    --vm-error-50: #fef2f2;
    --vm-error-100: #fee2e2;
    --vm-error-600: #dc2626;
    --vm-error-700: #b91c1c;

    --vm-radius: 1rem;
    --vm-radius-sm: 0.75rem;
    --vm-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);

    /* Height of the fixed mobile bar, reused as scroll padding. */
    --vm-bar-h: 5.5rem;

    /* Measured from the live #site-header by product-vildmark.js. The
       fallback matters: the header is sticky at z-50, so anything pinned to
       top:0 without this offset renders underneath it. */
    --vm-header-h: 4rem;

    color: var(--vm-wood-800);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Raw embeds pasted into product copy carry fixed pixel widths (product 2105:
   a VideoPress iframe at width="572"), which widened the phone page. */
.uw-vm iframe {
    max-width: 100%;
}

.uw-vm-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

.uw-vm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Breadcrumb ---------- */

.uw-vm-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: .8125rem;
    color: var(--vm-wood-700);
}

.uw-vm-crumbs li + li::before {
    content: '/';
    margin-right: .5rem;
    color: var(--vm-wood-300);
}

.uw-vm-crumbs a {
    color: var(--vm-wood-700);
    text-decoration: none;
}

.uw-vm-crumbs a:hover {
    color: var(--vm-forest-700);
}

/* ---------- Two column layout ---------- */

.uw-vm-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/*
 * Grid items default to min-width:auto, which sizes the column to the widest
 * intrinsic content rather than the track. The thumbnail strip is a flex row
 * of ten fixed-width buttons, so on a phone that pushed the column to ~790px
 * and scrolled the whole page sideways. Both columns must be allowed to
 * shrink below their content.
 */
.uw-vm-main,
.uw-vm-panel {
    min-width: 0;
}

@media (min-width: 1024px) {
    .uw-vm-top {
        grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr);
        gap: 3rem;
    }
}

/*
 * Large desktop. Below this the 80rem shell already reads as intentional
 * (roughly 160px of margin either side at 1440px). On a ~2000px monitor the
 * same 80rem cap leaves ~720px of dead margin combined, which is what makes
 * the page look unfinished there: the gallery, buy panel and the sections
 * below never grow to use the screen. Widening the shell fixes the top fold;
 * the text-flow and table sections get an explicit measure below so they do
 * not turn into a wall of full-width copy in the process, and the grids that
 * can usefully hold another column (included equipment, drawings) pick one
 * up instead of leaving it empty.
 */
@media (min-width: 1600px) {
    .uw-vm-shell {
        max-width: 100rem;
    }

    .uw-vm-included {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .uw-vm-drawings {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .uw-vm-spec-table,
    .uw-vm-docs {
        max-width: 56rem;
    }
}

/* ---------- Gallery ---------- */

.uw-vm-frame {
    position: relative;
    /* 4:3 on phones so the hero does not consume the entire first screen;
       square from tablet up where there is height to spare. */
    aspect-ratio: 4 / 3;
    background: var(--vm-wood-50);
    border: 1px solid var(--vm-wood-100);
    border-radius: var(--vm-radius);
    overflow: hidden;
}

.uw-vm-frame img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uw-vm-sale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 9999px;
}

.uw-vm-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 9999px;
}

/* A six-column grid puts sub-40px thumbs on a 360px screen. Scroll them
   instead, so each stays a real tap target. */
.uw-vm-thumbs {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: .5rem;
    margin-top: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
}

.uw-vm-thumbs::-webkit-scrollbar {
    display: none;
}

/*
 * Client L87: slider under the thumbnail strip, so a mouse can reach the
 * thumbnails past its edge (product-vildmark.js drives it and hides it when
 * nothing overflows). Mouse/trackpad devices only; touch keeps the swipe.
 */
.uw-vm-thumbs-slider {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .uw-vm-thumbs-slider:not([hidden]) {
        display: block;
        width: 100%;
        height: 1.25rem;
        margin: .375rem 0 0;
        padding: 0;
        background: transparent;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .uw-vm-thumbs-slider::-webkit-slider-runnable-track {
        height: .375rem;
        border-radius: 999px;
        background: var(--vm-wood-100);
    }

    .uw-vm-thumbs-slider::-moz-range-track {
        height: .375rem;
        border-radius: 999px;
        background: var(--vm-wood-100);
    }

    .uw-vm-thumbs-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 3.5rem;
        height: .875rem;
        margin-top: -.25rem;
        border: 0;
        border-radius: 999px;
        background: var(--vm-forest-700);
    }

    .uw-vm-thumbs-slider::-moz-range-thumb {
        width: 3.5rem;
        height: .875rem;
        border: 0;
        border-radius: 999px;
        background: var(--vm-forest-700);
    }

    .uw-vm-thumbs-slider:hover::-webkit-slider-thumb {
        background: var(--vm-forest-800);
    }
}

.uw-vm-thumb {
    flex: 0 0 4.5rem;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--vm-radius-sm);
    background: var(--vm-wood-50);
    overflow: hidden;
    cursor: pointer;
    /* Dim the images that are not on screen so the active one reads clearly
       as "this is what you're looking at" without needing a heavier frame. */
    opacity: .72;
    transition: opacity .15s ease, border-color .15s ease;
}

.uw-vm-thumb:hover {
    opacity: 1;
    border-color: var(--vm-wood-300);
}

.uw-vm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uw-vm-thumb.is-active {
    opacity: 1;
    border-color: var(--vm-forest-700);
}

.uw-vm-thumb:focus-visible {
    outline: 2px solid var(--vm-forest-700);
    outline-offset: 2px;
}

/* ---------- Head ---------- */

.uw-vm-head {
    margin-top: 2rem;
}

.uw-vm-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--vm-forest-700);
    margin-bottom: .5rem;
}

.uw-vm-title {
    overflow-wrap: anywhere;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--vm-wood-900);
    margin: 0;
}

.uw-vm-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.25rem;
    list-style: none;
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--vm-wood-100);
    border-bottom: 1px solid var(--vm-wood-100);
}

@media (min-width: 640px) {
    .uw-vm-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.uw-vm-trust li {
    display: flex;
    flex-direction: column;
    font-size: .8125rem;
    line-height: 1.35;
}

.uw-vm-trust strong {
    color: var(--vm-wood-900);
    font-weight: 600;
}

.uw-vm-trust span {
    color: var(--vm-wood-700);
}

.uw-vm-leadtime {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--vm-wood-700);
    background: var(--vm-wood-50);
    border-left: 3px solid var(--vm-forest-700);
    border-radius: 0 var(--vm-radius-sm) var(--vm-radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 0 0 2rem;
}

/* ---------- Configurator ---------- */

.uw-vm-h2 {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--vm-wood-900);
    margin: 0 0 .5rem;
}

.uw-vm-sub {
    font-size: .9375rem;
    color: var(--vm-wood-700);
    margin: 0 0 1.5rem;
}

.uw-vm-config {
    scroll-margin-top: calc(var(--vm-header-h, 4rem) + 3.5rem);
}

/* Client L10: under "Tilpas dit produkt", bold so it is noticed. */
.uw-vm-valg-hint {
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--vm-wood-900);
    margin: 0 0 .5rem;
}

.uw-vm-valg-hint strong {
    font-weight: 700;
}

.uw-vm-valg-hint a {
    color: var(--vm-forest-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Product Add-ons 8.2.0 renders inside here under wc-pao-* class names.
   Style the group shell and its heading only: the swatch grid, its selected
   state and the option markup are the plugin's own and already on-brand, so
   reaching into them risks breaking the control rather than skinning it. */
.uw-vm-form .wc-pao-addon-container {
    min-width: 0;
    overflow-wrap: anywhere;
    background: #fff;
    border: 1px solid var(--vm-wood-100);
    border-radius: var(--vm-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.uw-vm-form .wc-pao-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.uw-vm-form .wc-pao-addon-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vm-wood-900);
    margin-bottom: .75rem;
    padding: 0;
}

.uw-vm-form .wc-pao-addon-description {
    font-size: .875rem;
    color: var(--vm-wood-700);
}

/* Checkbox and radio groups only. Image-swatch groups use anchors, not
   labels, so this never applies to them. */
.uw-vm-form .wc-pao-addon-wrap > label {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .35rem 0;
    cursor: pointer;
}

.uw-vm-form select,
.uw-vm-form input[type="text"],
.uw-vm-form input[type="number"] {
    border: 1px solid var(--vm-wood-200);
    border-radius: var(--vm-radius-sm);
    padding: .6rem .85rem;
    font: inherit;
    color: var(--vm-wood-900);
    background: #fff;
    max-width: 100%;
}

.uw-vm-form select:focus-visible,
.uw-vm-form input:focus-visible {
    outline: 2px solid var(--vm-forest-700);
    outline-offset: 1px;
}

/* With JS running the panel button drives checkout, so the in-form button is
   redundant. Without JS this rule never applies and the native button shows. */
.uw-vm-js .uw-vm-has-form .uw-vm-form .single_add_to_cart_button {
    display: none;
}

/*
 * WooCommerce renders the quantity field as the closing control of the
 * native cart form, immediately before the submit button .uw-vm-js hides
 * above. Left unstyled it reads as a stray, unlabelled box; giving it the
 * same card treatment as the add-on groups above makes it read as the
 * deliberate last step of the configurator instead. The field's own
 * WooCommerce screen-reader label and aria-label ("Vareantal") are left
 * untouched; .uw-vm-qty-caption is a purely visual label product-vildmark.js
 * inserts alongside it (aria-hidden, so it never duplicates the accessible
 * name).
 */
.uw-vm-form .quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--vm-wood-100);
    border-radius: var(--vm-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.uw-vm-qty-caption {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vm-wood-900);
}

.uw-vm-form .quantity input[type="number"] {
    width: 5rem;
    text-align: center;
}

/* ---------- Sticky buy panel ---------- */

.uw-vm-panel-inner {
    background: #fff;
    border: 1px solid var(--vm-wood-100);
    /* A branded top edge on the page's most important element, cheap enough
       not to risk anything else about it. */
    border-top: 3px solid var(--vm-forest-700);
    border-radius: var(--vm-radius);
    box-shadow: var(--vm-shadow);
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .uw-vm-panel {
        position: sticky;
        /* Below the sticky site header (z-50), not under it: at top: 1.5rem
           the panel's title and price slid behind the header on scroll. */
        top: calc(var(--vm-header-h, 4rem) + 1.5rem);
    }
}

.uw-vm-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vm-wood-900);
    margin: 0 0 1rem;
}

.uw-vm-summary {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uw-vm-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem .75rem;
    align-items: baseline;
    padding: .6rem 0;
    border-bottom: 1px solid var(--vm-wood-100);
    font-size: .875rem;
}

.uw-vm-line-addon {
    grid-template-columns: 1fr auto auto;
}

.uw-vm-line-label {
    color: var(--vm-wood-800);
}

.uw-vm-line-base .uw-vm-line-label {
    font-weight: 600;
    color: var(--vm-wood-900);
}

.uw-vm-line-price {
    font-variant-numeric: tabular-nums;
    color: var(--vm-wood-900);
    white-space: nowrap;
}

.uw-vm-line-remove {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: .75rem;
    color: var(--vm-wood-700);
    text-decoration: underline;
    cursor: pointer;
}

.uw-vm-line-remove:hover {
    color: var(--vm-forest-700);
}

.uw-vm-empty {
    font-size: .8125rem;
    color: var(--vm-wood-700);
    margin: .75rem 0 0;
}

/*
 * Totals and actions are two separate elements in the markup (the buttons
 * need their own block for the mobile single-column override further down),
 * but visually they are stitched into one tinted card: the price and the
 * two buttons are the moment of commitment, so they read as one unit set
 * apart from the plain selections list above them.
 */
.uw-vm-totals {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--vm-forest-50);
    border: 1px solid var(--vm-forest-100);
    border-radius: var(--vm-radius-sm) var(--vm-radius-sm) 0 0;
}

.uw-vm-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: .9375rem;
    color: var(--vm-wood-800);
}

.uw-vm-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vm-forest-700);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/*
 * Sale ("før og nu"): the regular price struck through before the base
 * line price, the "Samlet pris" total and the mobile bar total. Rendered
 * only when the product is on sale; [hidden] otherwise.
 */
.uw-vm-was {
    color: var(--vm-wood-700);
    font-weight: 400;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.uw-vm-was[hidden] {
    display: none;
}

.uw-vm-line-prices {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0 .5rem;
}

.uw-vm-line-prices .uw-vm-was {
    font-size: .8125rem;
}

.uw-vm-total-amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: .125rem .625rem;
}

.uw-vm-total-amounts .uw-vm-was {
    font-size: .9375rem;
}

.uw-vm-bar-amounts {
    display: flex;
    align-items: baseline;
    gap: .375rem;
}

.uw-vm-bar-amounts .uw-vm-was {
    font-size: .75rem;
}

/* ---------- Buttons ---------- */

.uw-vm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.25rem;
    border-radius: 9999px;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color .2s ease, color .2s ease;
}

.uw-vm-btn-primary {
    background: var(--vm-forest-700);
    color: #fff;
}

.uw-vm-btn-primary:hover {
    background: var(--vm-forest-800);
    color: #fff;
}

.uw-vm-btn-ghost {
    background: #fff;
    color: var(--vm-forest-700);
    border-color: var(--vm-forest-700);
}

.uw-vm-btn-ghost:hover {
    background: var(--vm-forest-50);
    color: var(--vm-forest-800);
}

.uw-vm-btn:focus-visible {
    outline: 2px solid var(--vm-forest-800);
    outline-offset: 2px;
}

.uw-vm-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.uw-vm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 0;
    padding: 1.25rem;
    background: var(--vm-forest-50);
    border: 1px solid var(--vm-forest-100);
    border-top: 0;
    border-radius: 0 0 var(--vm-radius-sm) var(--vm-radius-sm);
}

.uw-vm-note,
.uw-vm-sku {
    font-size: .8125rem;
    color: var(--vm-wood-700);
    margin: .75rem 0 0;
    text-align: center;
}

/* Quick link to the site-wide care guide PDF, under the SKU in the buy panel. */
.uw-vm-care {
    margin: .5rem 0 0;
    text-align: center;
    font-size: .8125rem;
}

.uw-vm-care a {
    display: inline-block;
    padding: .375rem 0;
    color: var(--vm-forest-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.uw-vm-help {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vm-wood-100);
    font-size: .875rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.uw-vm-help strong {
    color: var(--vm-wood-900);
}

.uw-vm-help a {
    color: var(--vm-forest-700);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- "Få tilbud" enquiry form ---------- */

/*
 * Two independent form instances share every rule below: the desktop
 * panel's inline disclosure (.uw-vm-quote-panel) and the mobile bottom
 * sheet (.uw-vm-quote-sheet). Nothing here is instance-specific;
 * product-vildmark.js tells the two apart by which element a trigger's
 * aria-controls points at.
 */

.uw-vm-quote-toggle.is-open {
    /* The exact .uw-vm-btn-ghost:hover recipe, made persistent while open. */
    background: var(--vm-forest-50);
}

.uw-vm-quote-chevron {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.uw-vm-quote-toggle.is-open .uw-vm-quote-chevron {
    transform: rotate(-135deg);
}

/* ---------- Desktop: inline disclosure ---------- */

.uw-vm-quote-panel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vm-wood-100);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}

.uw-vm-quote-panel.is-open {
    opacity: 1;
    transform: none;
}

.uw-vm-quote-form {
    display: grid;
    gap: .85rem;
}

/* ---------- Mobile: bottom sheet ---------- */

html.uw-vm-scroll-lock {
    overflow: hidden;
}

.uw-vm-quote-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    /* --vm-wood-900 as rgba, faded in via .is-open. */
    background: rgba(74, 60, 46, 0);
    transition: background-color .2s ease;
}

.uw-vm-quote-backdrop.is-open {
    background: rgba(74, 60, 46, .45);
}

.uw-vm-quote-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    max-height: min(85dvh, 620px);
    background: #fff;
    border-radius: var(--vm-radius) var(--vm-radius) 0 0;
    box-shadow: var(--vm-shadow);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .25s ease;
}

.uw-vm-quote-sheet.is-open {
    transform: translateY(0);
}

.uw-vm-quote-sheet-head {
    flex: none;
    padding: 1rem .875rem;
    border-bottom: 1px solid var(--vm-wood-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uw-vm-quote-sheet-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vm-wood-900);
    margin: 0;
}

.uw-vm-quote-close {
    width: 2.75rem;
    min-height: 2.75rem;
    background: none;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--vm-wood-700);
    cursor: pointer;
}

.uw-vm-quote-close:focus-visible {
    outline: 2px solid var(--vm-forest-700);
    outline-offset: 2px;
}

.uw-vm-quote-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .875rem;
}

.uw-vm-quote-sheet-foot {
    flex: none;
    padding: .875rem .875rem calc(.875rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vm-wood-100);
}

/* ---------- Recap ---------- */

.uw-vm-quote-recap {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .8125rem;
    color: var(--vm-wood-700);
    padding: .75rem 1rem;
    background: var(--vm-forest-50);
    border: 1px solid var(--vm-forest-100);
    border-radius: var(--vm-radius-sm);
    margin: 0;
}

.uw-vm-quote-recap-total strong {
    color: var(--vm-forest-700);
    font-variant-numeric: tabular-nums;
}

.uw-vm-quote-recap-list {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
}

/* ---------- Fields ---------- */

.uw-vm-quote-field {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.uw-vm-quote-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--vm-wood-800);
}

.uw-vm-quote-optional {
    font-weight: 400;
    color: var(--vm-wood-700);
}

.uw-vm-quote-input {
    width: 100%;
    border: 1px solid var(--vm-wood-200);
    border-radius: var(--vm-radius-sm);
    padding: .6rem .85rem;
    font: inherit;
    color: var(--vm-wood-900);
    background: #fff;
}

.uw-vm-quote-textarea {
    resize: vertical;
}

.uw-vm-quote-input:focus-visible {
    outline: 2px solid var(--vm-forest-700);
    outline-offset: 1px;
}

.uw-vm-quote-input[aria-invalid="true"] {
    border-color: var(--vm-error-600);
}

.uw-vm-quote-input[aria-invalid="true"]:focus-visible {
    outline-color: var(--vm-error-700);
}

.uw-vm-quote-error {
    font-size: .75rem;
    color: var(--vm-error-700);
    margin: 0;
}

.uw-vm-quote-error:empty {
    display: none;
}

.uw-vm-quote-honeypot {
    /* Same absolute-offscreen recipe as template-parts/book-form.php's
       hidden "website" field. */
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Actions, banners ---------- */

.uw-vm-quote-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.uw-vm-quote-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 9999px;
    animation: uw-vm-spin .6s linear infinite;
}

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

.uw-vm-quote-success,
.uw-vm-quote-server-error {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: var(--vm-radius-sm);
    font-size: .875rem;
}

.uw-vm-quote-success p,
.uw-vm-quote-server-error p {
    margin: 0;
}

/* display: flex above outranks the browser's own [hidden] rule, so without
   this both boxes showed as empty green and red bars before any reply. */
.uw-vm-quote-success[hidden],
.uw-vm-quote-server-error[hidden] {
    display: none;
}

.uw-vm-quote-success {
    background: var(--vm-forest-50);
    border: 1px solid var(--vm-forest-100);
    color: var(--vm-wood-900);
}

.uw-vm-quote-success-icon {
    /* Same recipe as .uw-vm-check, used for the Medfølgende udstyr list. */
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .15rem;
    border-radius: 9999px;
    background: var(--vm-forest-100);
    position: relative;
}

.uw-vm-quote-success-icon::after {
    content: '';
    position: absolute;
    left: .4rem;
    top: .2rem;
    width: .3rem;
    height: .6rem;
    border: solid var(--vm-forest-700);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.uw-vm-quote-server-error {
    background: var(--vm-error-50);
    border: 1px solid var(--vm-error-100);
    color: var(--vm-error-700);
}

/* ---------- Success state ---------- */

/*
 * The sheet's own Annuller/Send row lives in .uw-vm-quote-sheet-foot, a
 * sibling of <form> (pinned so it never scrolls behind the keyboard), so it
 * is untouched by this scoped-to-the-form rule and stays reachable:
 * product-vildmark.js relabels its Annuller to "Luk" and hides its Send
 * button directly once an enquiry is sent. The desktop panel's own actions
 * row IS inside the form, so it is hidden here along with the fields.
 */
.uw-vm-quote-form.is-done .uw-vm-quote-field,
.uw-vm-quote-form.is-done .uw-vm-quote-honeypot,
.uw-vm-quote-form.is-done .uw-vm-quote-actions {
    display: none;
}

/* ---------- Section nav ---------- */

.uw-vm-nav {
    position: sticky;
    top: var(--vm-header-h, 4rem);
    z-index: 20;
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--vm-wood-100);
    margin: 3rem 0 0;
    padding: .5rem 0;
}

.uw-vm-nav::-webkit-scrollbar {
    display: none;
}

.uw-vm-nav a {
    flex: none;
    padding: .5rem .9rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--vm-wood-700);
    text-decoration: none;
    white-space: nowrap;
}

.uw-vm-nav a:hover,
.uw-vm-nav a.is-current {
    background: var(--vm-forest-50);
    color: var(--vm-forest-700);
}

/* ---------- Content sections ---------- */

.uw-vm-sec {
    padding: 3rem 0;
    /* Header plus the section nav that sits under it, plus breathing room. */
    scroll-margin-top: calc(var(--vm-header-h, 4rem) + 3.5rem);
    border-bottom: 1px solid var(--vm-wood-100);
}

.uw-vm-cream {
    background: var(--vm-wood-50);
    border-radius: var(--vm-radius);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-bottom: 0;
    margin: 1.5rem 0;
}

/*
 * Only #uw-vm-spec and #uw-vm-dok carry .uw-vm-cream, and every .uw-vm-sec
 * except Beskrivelse is conditional, so which sections end up adjacent on a
 * given product cannot be read off the source order. When both render with
 * nothing cream-free between them (no Medfølgende udstyr, no carousel), the
 * two cards otherwise sit back to back with the shell's margin and rounding
 * between them, reading as one panel with a stray seam through it. Merge
 * them into one continuous panel instead: drop the facing corners and close
 * the gap on whichever pair actually lands next to each other.
 */
.uw-vm-cream + .uw-vm-cream {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.uw-vm-cream:has(+ .uw-vm-cream) {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.uw-vm-prose {
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vm-wood-700);
}

/* The shared vildmarksbad copy (inc/product-vildmark-shared-copy.php) is
   plain h3/p markup with none of the card and nav classes the migrated
   descriptions get from product-description.css, so it needs its own
   typography. Scoped under the modifier so a product still rendering its
   migrated description keeps that file's styling untouched. */
.uw-vm-prose-shared p {
    margin: 0 0 1.1em;
}

.uw-vm-prose-shared p:last-child {
    margin-bottom: 0;
}

.uw-vm-prose-shared .uw-vm-prose-lead {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--vm-wood-900);
    margin-bottom: 1.25rem;
}

.uw-vm-prose-shared h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vm-wood-900);
    margin: 1.75rem 0 .6rem;
}

.uw-vm-prose-shared .uw-vm-prose-closing {
    font-weight: 600;
    color: var(--vm-wood-900);
    margin-top: 1.5rem;
}

/* A bare browser table read as unfinished, especially next to the styled
   card the legacy description content already gets from product-description
   .css. Give it the same kind of quiet, considered treatment: bordered card,
   zebra rows, a muted uppercase row label. */
.uw-vm-spec-table {
    background: #fff;
    border: 1px solid var(--vm-wood-200);
    border-radius: var(--vm-radius-sm);
    overflow: hidden;
}

.uw-vm-spec-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}

.uw-vm-spec-table th,
.uw-vm-spec-table td {
    text-align: left;
    padding: .85rem 1.125rem;
    border-bottom: 1px solid var(--vm-wood-100);
    vertical-align: top;
}

.uw-vm-spec-table tr:last-child th,
.uw-vm-spec-table tr:last-child td {
    border-bottom: 0;
}

.uw-vm-spec-table th {
    width: 38%;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--vm-wood-700);
}

.uw-vm-spec-table td {
    font-weight: 500;
    color: var(--vm-wood-900);
}

.uw-vm-spec-table td p {
    margin: 0;
}

.uw-vm-spec-table tr:nth-child(even) {
    background: var(--vm-wood-50);
}

.uw-vm-included {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

@media (min-width: 768px) {
    .uw-vm-included {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .85rem 2rem;
    }
}

.uw-vm-included li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .9375rem;
}

.uw-vm-included strong {
    display: block;
    font-weight: 600;
    color: var(--vm-wood-900);
}

.uw-vm-included em {
    font-style: normal;
    font-size: .8125rem;
    color: var(--vm-wood-700);
}

.uw-vm-check {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .15rem;
    border-radius: 9999px;
    background: var(--vm-forest-100);
    position: relative;
}

.uw-vm-check::after {
    content: '';
    position: absolute;
    left: .4rem;
    top: .2rem;
    width: .3rem;
    height: .6rem;
    border: solid var(--vm-forest-700);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Documents ---------- */

.uw-vm-drawings {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .uw-vm-drawings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.uw-vm-drawing {
    margin: 0;
    background: #fff;
    border: 1px solid var(--vm-wood-200);
    border-radius: var(--vm-radius-sm);
    overflow: hidden;
}

.uw-vm-drawing img {
    width: 100%;
    height: auto;
    display: block;
}

.uw-vm-drawing figcaption {
    padding: .75rem 1rem;
    font-size: .8125rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.uw-vm-drawing strong {
    color: var(--vm-wood-900);
}

.uw-vm-drawing span {
    color: var(--vm-wood-700);
}

.uw-vm-docs {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.uw-vm-docs li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--vm-wood-200);
    border-radius: var(--vm-radius-sm);
    padding: .85rem 1rem;
    font-size: .9375rem;
}

.uw-vm-doc-name {
    flex: 1;
    min-width: 0;
    /* Titles come verbatim from client file names, some with no spaces
       (Urbanwild_Levering_...), which pushed the page sideways on phones. */
    overflow-wrap: anywhere;
    color: var(--vm-wood-900);
    font-weight: 500;
}

.uw-vm-doc-size {
    font-size: .8125rem;
    color: var(--vm-wood-700);
}

.uw-vm-doc-dl {
    color: var(--vm-forest-700);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- FAQ ---------- */

.uw-vm-faq {
    margin-top: 1.5rem;
    max-width: 48rem;
}

.uw-vm-faq details {
    border-bottom: 1px solid var(--vm-wood-100);
}

.uw-vm-faq summary {
    cursor: pointer;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--vm-wood-900);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.uw-vm-faq summary::-webkit-details-marker {
    display: none;
}

.uw-vm-faq summary::after {
    content: '+';
    color: var(--vm-forest-700);
    font-weight: 700;
}

.uw-vm-faq details[open] summary::after {
    /* U+2212 MINUS SIGN, not an en dash: the correct glyph for a collapse
       toggle, and the one exemption the no-dash rule allows. */
    content: '\2212';
}

.uw-vm-faq details > div {
    padding-bottom: 1rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--vm-wood-700);
}

/* ---------- CTA ---------- */

.uw-vm-cta {
    background: var(--vm-wood-900);
    color: #fff;
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.uw-vm-cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    max-width: 40rem;
    margin: 0 auto .5rem;
}

.uw-vm-cta p {
    color: rgba(255, 255, 255, .8);
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}

.uw-vm-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* ---------- Mobile price bar ---------- */

.uw-vm-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--vm-wood-200);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    /* visibility, not just transform: an off-screen bar still holds two
       buttons, and leaving them focusable inside aria-hidden puts unreachable
       controls in the tab order. */
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
}

.uw-vm-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.uw-vm-bar-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.uw-vm-bar-price span {
    font-size: .75rem;
    color: var(--vm-wood-700);
}

.uw-vm-bar-price strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--vm-forest-700);
    font-variant-numeric: tabular-nums;
}

.uw-vm-bar-actions {
    display: flex;
    gap: .5rem;
}

.uw-vm-bar .uw-vm-btn {
    padding: .7rem 1rem;
    font-size: .875rem;
}

/* The bar only exists on narrow viewports; the sticky panel covers desktop.
   The enquiry sheet and its backdrop are mobile-only for the same reason:
   their own trigger lives inside the bar, so they can never open above this
   width, but hiding them explicitly costs nothing and matches the pattern. */
@media (min-width: 1024px) {
    .uw-vm-bar {
        display: none;
    }

    .uw-vm-quote-sheet,
    .uw-vm-quote-backdrop {
        display: none;
    }
}

/* Square hero and a wider gallery once there is height to spend. */
@media (min-width: 640px) {
    .uw-vm-frame {
        aspect-ratio: 1 / 1;
    }

    .uw-vm-thumb {
        flex-basis: 5.5rem;
    }
}

@media (max-width: 1023px) {
    .uw-vm-shell {
        padding-bottom: var(--vm-bar-h);
    }

    /* The panel is no longer a sidebar down here, it is the closing block of
       the page, so it loses the card inset and runs to the edges. */
    .uw-vm-panel-inner {
        padding: 1.25rem 1rem;
    }

    .uw-vm-actions {
        grid-template-columns: 1fr;
        gap: .625rem;
    }
}

@media (max-width: 767px) {
    .uw-vm-shell {
        padding-left: .875rem;
        padding-right: .875rem;
        padding-top: 1rem;
    }

    /* Vertical rhythm tuned for desktop wastes a third of a phone screen. */
    .uw-vm-sec {
        padding: 2rem 0;
    }

    .uw-vm-cream {
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 1rem 0;
    }

    .uw-vm-head {
        margin-top: 1.25rem;
    }

    .uw-vm-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .uw-vm-h2 {
        font-size: 1.25rem;
    }

    .uw-vm-trust {
        gap: .625rem 1rem;
        margin: 1.25rem 0;
        padding: 1rem 0;
    }

    .uw-vm-trust li {
        font-size: .75rem;
    }

    .uw-vm-leadtime {
        font-size: .875rem;
        padding: .875rem 1rem;
        margin-bottom: 1.5rem;
    }

    /* Add-on groups: the desktop card padding is most of the width on a
       phone, leaving the options themselves squeezed. */
    .uw-vm-form .wc-pao-addon-container {
        padding: 1rem .875rem;
        border-radius: var(--vm-radius-sm);
    }

    .uw-vm-form .wc-pao-addon-name {
        font-size: .9375rem;
    }

    /* Comfortable hit targets for option rows. */
    .uw-vm-form .wc-pao-addon-wrap > label {
        padding: .5rem 0;
        min-height: 2.75rem;
        align-items: center;
    }

    .uw-vm-form .quantity {
        padding: .875rem 1rem;
    }

    .uw-vm-line {
        font-size: .8125rem;
    }

    .uw-vm-summary .uw-vm-line-label {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .uw-vm-docs li {
        flex-wrap: wrap;
        gap: .375rem .75rem;
    }

    .uw-vm-doc-name {
        flex: 1 0 100%;
    }

    .uw-vm-nav {
        margin-top: 2rem;
        /* Edge-to-edge scroll strip, so the first and last chip are reachable
           without the shell padding clipping them. */
        margin-left: -.875rem;
        margin-right: -.875rem;
        padding-left: .875rem;
        padding-right: .875rem;
    }

    .uw-vm-cta {
        padding: 2rem 1.25rem;
        border-radius: var(--vm-radius);
        margin-top: 2rem;
    }
}

/* Narrow phones: the bar has to hold a price and two actions at 360px. */
@media (max-width: 430px) {
    .uw-vm-bar {
        gap: .625rem;
        padding: .625rem .875rem calc(.625rem + env(safe-area-inset-bottom));
    }

    .uw-vm-bar-price strong {
        font-size: 1rem;
    }

    .uw-vm-bar-price span {
        font-size: .6875rem;
    }

    .uw-vm-bar-actions {
        gap: .375rem;
    }

    .uw-vm-bar .uw-vm-btn {
        padding: .625rem .75rem;
        font-size: .8125rem;
        min-height: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uw-vm-bar {
        transition: none;
    }

    .uw-vm-quote-panel,
    .uw-vm-quote-backdrop,
    .uw-vm-quote-sheet,
    .uw-vm-quote-chevron {
        transition: none;
    }

    .uw-vm-quote-spinner {
        animation: none;
    }
}
