.single-product section.related.products {
    display: none !important;
}

.j1-edit-status {
    padding: 14px 16px;
    border-left: 3px solid #71311f;
    background: #fbf3ef;
    color: #542217;
    font-size: 14px;
    line-height: 1.5;
}

.j1-edit-status a {
    color: #71311f;
    font-weight: 700;
    text-decoration: underline;
}

.j1-bordplade-form .j1-placement-depth-message {
    display: block;
    margin-top: 6px;
    color: #71311f;
    font-size: 12px;
    line-height: 1.4;
}

.j1-bordplade-form {
    --j1-brown: #71311f;
    --j1-brown-dark: #542217;
    --j1-line: #d8c9c2;
    --j1-soft: #fbf3ef;
    --j1-white: #fff;
    color: #2b2522;
}

/* Tegn almindelige radiovalg ens i alle browsere og JetFormBuilder-temaer. */
.j1-bordplade-form input[type="radio"] {
    display: inline-block !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #afbec7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    accent-color: var(--j1-brown) !important;
    vertical-align: -3px;
}

.j1-bordplade-form input[type="radio"]:checked {
    border: 5px solid var(--j1-brown) !important;
    background: #fff !important;
}

.j1-bordplade-form input[type="radio"]:focus-visible {
    outline: 2px solid rgba(113, 49, 31, .3);
    outline-offset: 2px;
}

/* JetFormBuilder skjuler inputtet og tegner den synlige radioknap på span::before. */
.j1-bordplade-form .field-type-radio-field
.jet-form-builder__field-label.for-radio
input[type="radio"]:checked + span::before {
    border-color: var(--j1-brown) !important;
    background-color: var(--j1-brown) !important;
}

.j1-bordplade-form .field-type-radio-field
.jet-form-builder__field-label.for-radio
input[type="radio"]:not(:disabled):not(:checked):hover + span::before,
.j1-bordplade-form .field-type-radio-field
.jet-form-builder__field-label.for-radio
input[type="radio"]:focus:not(:checked) + span::before {
    border-color: rgba(113, 49, 31, .55) !important;
}

.j1-bordplade-form .j1-calculator-layout {
    display: grid;
    width: 100%;
    margin: 24px 0 28px;
    border: 1px solid var(--j1-brown);
    background: rgba(255, 255, 255, .22);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1fr);
}

.j1-bordplade-form .j1-calculator-layout--product-page {
    display: block;
    margin: 0;
    background: var(--j1-soft);
    border-color: var(--j1-line);
}

.j1-bordplade-form .j1-product-page-panel__heading {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--j1-line);
}

.j1-bordplade-form .j1-product-page-panel__heading strong,
.j1-bordplade-form .j1-product-page-panel__eyebrow {
    display: block;
}

.j1-bordplade-form .j1-product-page-panel__eyebrow {
    margin-bottom: 6px;
    color: var(--j1-brown);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.j1-bordplade-form .j1-product-page-panel__heading strong {
    color: #2f2825;
    font-size: 20px;
    line-height: 1.25;
}

.j1-bordplade-form .j1-product-page-contact-panel {
    width: 100%;
    max-width: 820px;
    margin: 28px auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .38);
    border: 1px solid var(--j1-line);
}

.j1-bordplade-form--product-page .j1-product-page-contact-panel {
    max-width: none;
    margin: 0;
    background: var(--j1-soft);
}

.j1-bordplade-form .j1-product-page-contact-panel__body {
    padding: 26px;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .jet-form-builder-row {
    margin-bottom: 16px;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .jet-form-builder-row:last-child {
    margin-bottom: 0;
}

.j1-bordplade-form .j1-product-page-contact-panel__body label {
    display: block;
    margin-bottom: 7px;
    color: #2f2825;
    font-size: 13px;
    font-weight: 650;
}

.j1-bordplade-form .j1-product-page-contact-panel__body input:not([type="checkbox"]):not([type="radio"]),
.j1-bordplade-form .j1-product-page-contact-panel__body select,
.j1-bordplade-form .j1-product-page-contact-panel__body textarea,
.j1-bordplade-form .j1-product-page-contact-panel__body .iti {
    width: 100% !important;
    max-width: none !important;
}

.j1-bordplade-form .j1-product-page-contact-panel__body input:not([type="checkbox"]):not([type="radio"]),
.j1-bordplade-form .j1-product-page-contact-panel__body select,
.j1-bordplade-form .j1-product-page-contact-panel__body textarea {
    min-height: 52px;
    padding: 12px 15px;
    color: #2f2825;
    background: #fff;
    border: 1px solid #d8c7bf;
    border-radius: 0;
    box-shadow: none;
}

.j1-bordplade-form .j1-product-page-contact-panel__body input:focus,
.j1-bordplade-form .j1-product-page-contact-panel__body select:focus,
.j1-bordplade-form .j1-product-page-contact-panel__body textarea:focus {
    border-color: var(--j1-brown);
    outline: 2px solid rgba(126, 51, 31, .12);
    outline-offset: 0;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .iti {
    position: relative;
    display: block;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .iti input[type="tel"],
.j1-bordplade-form .j1-product-page-contact-panel__body .iti .iti__tel-input {
    padding-left: 92px !important;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .iti__flag-container,
.j1-bordplade-form .j1-product-page-contact-panel__body .iti__country-container {
    z-index: 2;
}

/* Telefonpluginets landeknap må ikke arve beregnerens store brune knapdesign. */
.j1-bordplade-form .j1-product-page-contact-panel__body button.iti__selected-country,
.j1-bordplade-form .j1-product-page-contact-panel__body .iti__selected-flag {
    width: auto !important;
    min-width: 72px !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 14px !important;
    color: #2f2825 !important;
    background: #f5e7e1 !important;
    border: 0 !important;
    border-right: 1px solid #d8c7bf !important;
    border-radius: 0 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.j1-bordplade-form .j1-product-page-contact-panel__body button.iti__selected-country:hover,
.j1-bordplade-form .j1-product-page-contact-panel__body button.iti__selected-country:focus,
.j1-bordplade-form .j1-product-page-contact-panel__body .iti__selected-flag:hover {
    color: #2f2825 !important;
    background: #eedbd3 !important;
    border-right-color: var(--j1-brown) !important;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .iti__country-list {
    z-index: 20;
    color: #2f2825;
    background: #fff;
}

.j1-bordplade-form .j1-product-page-contact-panel__body .jet-form-builder__action-button[type="submit"],
.j1-bordplade-form .j1-product-page-contact-panel__body .jet-form-builder__submit {
    width: 100%;
    margin-top: 4px;
}

.j1-bordplade-form--product-page .j1-calculator-section {
    padding: 24px;
}

.j1-bordplade-form--product-page .j1-calculator-section + .j1-calculator-section {
    border-top: 1px solid var(--j1-line);
    border-left: 0;
}

.j1-bordplade-form--product-page .j1-section-heading {
    min-height: 44px;
    margin-bottom: 18px;
}

.j1-bordplade-form--product-page .j1-section-heading__number {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
}

.j1-bordplade-form--product-page .j1-section-heading__title {
    font-size: 13px;
}

.j1-bordplade-form--product-page .j1-form-grid {
    gap: 9px;
}

.j1-bordplade-form--product-page .j1-form-card__content,
.j1-bordplade-form--product-page .j1-form-card .j1-choice-card__content {
    min-height: 138px;
    padding: 5px;
}

.j1-bordplade-form--product-page .j1-choice-card__shape {
    min-height: 92px;
    padding: 9px 8px 0;
}

.j1-bordplade-form--product-page .j1-choice-card__shape svg {
    height: 88px;
}

.j1-bordplade-form--product-page .j1-form-card .j1-choice-card__title {
    min-height: 30px;
    padding: 4px 5px 6px;
    font-size: 10px;
}

.j1-bordplade-form .j1-calculator-section {
    min-width: 0;
    padding: 30px 26px 28px;
}

.j1-bordplade-form .j1-calculator-section + .j1-calculator-section {
    border-left: 1px solid var(--j1-line);
}

.j1-bordplade-form .j1-room-gate-message {
    margin: -7px 0 18px;
    padding: 10px 12px;
    color: var(--j1-brown);
    background: rgba(255, 255, 255, .58);
    border-left: 3px solid var(--j1-brown);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.j1-bordplade-form .j1-room-gate-message.is-active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(113, 49, 31, .16);
}

.j1-bordplade-form.j1-basic-selection-incomplete .j1-post-thickness-option {
    display: none !important;
}

.j1-bordplade-form .j1-extra-edges {
    margin: 24px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.j1-bordplade-form .j1-extra-edges[hidden] {
    display: none !important;
}

.j1-bordplade-form .j1-end-panels__choices[hidden] {
    display: none !important;
}

.j1-bordplade-form .j1-end-panels__help {
    display: block;
    margin: 10px 0 14px;
    color: #796b64;
    font-size: 12px;
    line-height: 1.5;
}

.j1-bordplade-form .j1-countertop-visual__end-panel {
    fill: none;
    stroke: #71311f;
    stroke-width: 10px;
    stroke-dasharray: 4 4;
    stroke-linecap: butt;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__end-panel-label {
    fill: #71311f;
    stroke: #fff;
    stroke-width: 15px;
    paint-order: stroke fill;
    font-weight: 700;
    dominant-baseline: central;
    pointer-events: none;
}

.j1-bordplade-form .j1-extra-edges__title {
    display: block;
    margin: 0 0 10px;
}

.j1-bordplade-form .j1-extra-edges__choices {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.j1-bordplade-form .j1-extra-edges__plate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.j1-bordplade-form .j1-extra-edges__plate + .j1-extra-edges__plate {
    padding-top: 14px;
    border-top: 1px solid var(--j1-line);
}

.j1-bordplade-form .j1-extra-edges__plate-title {
    color: var(--j1-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.j1-bordplade-form .j1-extra-edges__choices label {
    position: relative !important;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
    user-select: none;
}

.j1-bordplade-form .j1-extra-edges__choices label > span,
.j1-bordplade-form .j1-extra-edges__choices label > small,
.j1-bordplade-form .j1-extra-edges__choices label > span::before,
.j1-bordplade-form .j1-extra-edges__choices label > span::after {
    pointer-events: none !important;
}

.j1-bordplade-form .j1-extra-edges__help {
    display: block;
    max-width: 210px;
    margin-left: 2px;
    color: #796b64;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

.j1-bordplade-form .j1-extra-edges__choices input[type="checkbox"] {
    display: inline-block !important;
    flex: 0 0 18px;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #afbec7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 6;
    opacity: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.j1-bordplade-form .j1-extra-edges__choices input[type="checkbox"]:checked {
    border: 5px solid var(--j1-brown) !important;
    background: #fff !important;
}

.j1-bordplade-form .j1-extra-edges__choices input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(113, 49, 31, .3);
    outline-offset: 2px;
}

.j1-bordplade-form .j1-extra-edges__calculation {
    display: block;
    margin-top: 12px;
    color: var(--j1-brown);
    font-weight: 650;
}

.j1-bordplade-form .j1-section-heading {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 15px;
    margin: 0 0 24px;
}

.j1-bordplade-form .j1-section-heading__number {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    color: var(--j1-brown);
    border: 1px solid var(--j1-brown);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.j1-bordplade-form .j1-section-heading__title {
    color: #2f2825;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.25;
    text-transform: uppercase;
}

.j1-bordplade-form .j1-calculator-section .jet-form-builder-row {
    margin-bottom: 17px;
}

.j1-bordplade-form .j1-calculator-section .jet-form-builder__field-wrap,
.j1-bordplade-form .j1-calculator-section input:not([type="radio"]):not([type="checkbox"]),
.j1-bordplade-form .j1-calculator-section select,
.j1-bordplade-form .j1-calculator-section textarea {
    width: 100% !important;
    max-width: 100% !important;
}

.j1-bordplade-form .j1-calculator-section--measure .jet-form-builder__label {
    font-size: 13px;
    font-weight: 600;
}

.j1-bordplade-form .j1-calculator-section--measure .jet-form-builder__next-page-wrap {
    margin-top: 22px;
}

.j1-bordplade-form .j1-calculator-section--measure .jet-form-builder__next-page {
    width: 100%;
}

.j1-bordplade-form .j1-quote-consent {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid rgba(126, 51, 31, 0.28);
    background: rgba(255, 255, 255, 0.42);
}

.j1-bordplade-form .j1-quote-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.45;
}

.j1-bordplade-form .j1-quote-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #7e331f;
}

.j1-bordplade-form .j1-quote-consent a {
    color: #7e331f;
    text-decoration: underline;
}

.j1-bordplade-form .j1-choice-grid {
    display: grid;
    gap: 14px;
    margin: 10px 0 24px;
}

.j1-bordplade-form .j1-material-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.j1-bordplade-form .j1-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.j1-bordplade-form .j1-choice-card {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.j1-bordplade-form .j1-choice-card > input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

.j1-bordplade-form .j1-choice-card__content {
    position: relative;
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    background: var(--j1-white);
    border: 1px solid var(--j1-line);
    border-radius: 2px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Fjerner JetFormBuilders egen radiocirkel inde i billedkortene. */
.j1-bordplade-form .j1-choice-card::before,
.j1-bordplade-form .j1-choice-card::after,
.j1-bordplade-form .j1-choice-card__content::before,
.j1-bordplade-form .j1-choice-card__content::after {
    display: none !important;
    content: none !important;
}

.j1-bordplade-form .j1-choice-card > input[type="radio"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    appearance: none !important;
    opacity: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.j1-bordplade-form .j1-choice-card:hover .j1-choice-card__content {
    border-color: var(--j1-brown);
    transform: translateY(-2px);
}

.j1-bordplade-form .j1-choice-card > input:focus-visible + .j1-choice-card__content {
    outline: 3px solid rgba(113, 49, 31, .22);
    outline-offset: 3px;
}

.j1-bordplade-form .j1-choice-card > input:checked + .j1-choice-card__content {
    border-color: var(--j1-brown);
    box-shadow: 0 0 0 1px var(--j1-brown);
}

.j1-bordplade-form .j1-choice-card__image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee7e2;
}

.j1-bordplade-form .j1-choice-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.j1-bordplade-form .j1-choice-card__title {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    color: #342a26;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .07em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.j1-bordplade-form .j1-material-grid .j1-choice-card__title {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 9px;
    letter-spacing: .035em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.j1-bordplade-form .j1-material-card--dealer-only {
    cursor: default;
}

.j1-bordplade-form .j1-material-card--dealer-only .j1-choice-card__content {
    background: #f7f3f0;
}

.j1-bordplade-form .j1-material-card--dealer-only .j1-choice-card__image img {
    opacity: .62;
}

.j1-bordplade-form .j1-material-card--dealer-only .j1-choice-card__title {
    flex-direction: column;
}

.j1-bordplade-form .j1-choice-card__note {
    display: block;
    margin-top: 5px;
    color: #756b66;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.j1-bordplade-form .j1-material-card--dealer-only:hover .j1-choice-card__content {
    border-color: var(--j1-line);
    transform: none;
}

.j1-bordplade-form .j1-choice-card__check {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--j1-white);
    background: var(--j1-brown);
    border-radius: 50%;
    font-size: 16px;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .18s ease, transform .18s ease;
}

.j1-bordplade-form .j1-choice-card > input:checked + .j1-choice-card__content .j1-choice-card__check {
    opacity: 1;
    transform: scale(1);
}

.j1-bordplade-form .j1-form-card__content,
.j1-bordplade-form .j1-form-card .j1-choice-card__content {
    min-height: 178px;
    padding: 8px;
}

.j1-bordplade-form .j1-choice-card__number {
    position: absolute;
    top: 10px;
    left: 12px;
    color: #372b27;
    font-size: 14px;
    font-weight: 700;
}

.j1-bordplade-form .j1-choice-card__shape {
    display: flex;
    min-height: 125px;
    align-items: center;
    justify-content: center;
    padding: 12px 14px 0;
}

.j1-bordplade-form .j1-choice-card__shape svg {
    width: 100%;
    max-width: 150px;
    height: 120px;
    overflow: visible;
    fill: none;
    stroke: #766761;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-choice-card__shape text {
    fill: #463a35;
    stroke: none;
    font: 600 13px sans-serif;
    text-anchor: middle;
}

.j1-bordplade-form .j1-form-card .j1-choice-card__title {
    min-height: 36px;
    padding: 5px 8px 8px;
    font-size: 12px;
}

.j1-bordplade-form .j1-form-card .j1-choice-card__check {
    top: 8px;
    right: 8px;
    left: auto;
    width: 26px;
    height: 26px;
    font-size: 14px;
}

/* WooCommerce-produkter som billedkort. Det oprindelige select bevares
   usynligt, så JetFormBuilder og den eksisterende prismotor fortsat virker. */
.j1-bordplade-form .j1-product-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    opacity: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.j1-bordplade-form .j1-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

/* Tilvalgskortene får mere plads end selve bordpladekataloget. */
.j1-bordplade-form .j1-accessory-grid,
.j1-bordplade-form .j1-drain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.j1-bordplade-form button.j1-product-card[hidden] {
    display: none !important;
}

.j1-bordplade-form .j1-product-grid__message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px;
    color: #6f625c;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--j1-line);
    font-size: 13px;
}

.j1-bordplade-form button.j1-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    flex-direction: column;
    color: #342a26 !important;
    background: var(--j1-white) !important;
    border: 1px solid var(--j1-line) !important;
    border-radius: 2px !important;
    letter-spacing: normal;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.j1-bordplade-form button.j1-product-card:hover {
    background: var(--j1-white) !important;
    border-color: var(--j1-brown) !important;
    transform: translateY(-2px);
}

.j1-bordplade-form button.j1-product-card.is-selected {
    border-color: var(--j1-brown) !important;
    box-shadow: 0 0 0 1px var(--j1-brown);
}

.j1-bordplade-form .j1-product-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee7e2;
}

.j1-bordplade-form .j1-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vaske skal vises som leverandørens produktfoto uden beskæring. */
.j1-bordplade-form .j1-accessory-picker--vaske .j1-product-card__image {
    padding: clamp(9px, 4%, 15px);
    background: #fff;
    box-sizing: border-box;
}

.j1-bordplade-form .j1-accessory-picker--vaske .j1-product-card__image img {
    object-fit: contain;
    object-position: center;
}

.j1-bordplade-form .j1-product-card__image--empty::after {
    display: grid;
    height: 100%;
    place-items: center;
    color: #8a7b74;
    content: 'Intet billede';
    font-size: 12px;
}

/* Installationstegninger skal vises helt og må ikke beskæres som produktfotos. */
.j1-bordplade-form .j1-installation-picker .j1-product-card__image {
    padding: 10px;
    background: #fff;
    box-sizing: border-box;
}

.j1-bordplade-form .j1-installation-picker .j1-product-card__image img {
    object-fit: contain;
    object-position: center;
}

.j1-bordplade-form .j1-product-card__title {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    min-height: 46px;
    align-items: center;
    padding: 8px;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
}

/* Bordpladens ACF-overflade vises som en rolig sekundær linje under navnet. */
.j1-bordplade-form .j1-calculator-section--material .j1-product-card__title {
    min-height: 0;
    align-items: flex-start;
    padding-bottom: 3px;
}

.j1-bordplade-form .j1-product-card__surface {
    display: block;
    width: 100%;
    padding: 0 8px 9px;
    box-sizing: border-box;
    color: #796b64;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
}

.j1-bordplade-form .j1-product-card__surface[hidden] {
    display: none !important;
}

.j1-bordplade-form .j1-accessory-picker {
    margin: 10px 0 18px;
}

.j1-bordplade-form .j1-accessory-picker__title {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.j1-bordplade-form .j1-brand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 12px;
}

.j1-bordplade-form .j1-brand-filter[hidden] {
    display: none !important;
}

.j1-bordplade-form button.j1-brand-filter__button {
    min-height: 36px;
    padding: 7px 12px !important;
    color: var(--j1-brown) !important;
    background: transparent !important;
    border: 1px solid var(--j1-brown) !important;
    font-size: 11px;
    letter-spacing: .02em;
}

.j1-bordplade-form button.j1-brand-filter__button:hover,
.j1-bordplade-form button.j1-brand-filter__button.is-selected {
    color: var(--j1-white) !important;
    background: var(--j1-brown) !important;
}

.j1-bordplade-form .j1-brand-heading {
    grid-column: 1 / -1;
    margin: 12px 0 1px;
    padding-bottom: 7px;
    color: #342a26;
    border-bottom: 1px solid var(--j1-line);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.j1-bordplade-form .j1-extra-plate-button {
    width: 100%;
    margin-top: 14px;
    color: var(--j1-brown) !important;
    background: transparent !important;
}

.j1-bordplade-form .j1-extra-plate-button:hover {
    color: var(--j1-white) !important;
    background: var(--j1-brown) !important;
}

.j1-bordplade-form .j1-extra-plate-button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.j1-bordplade-form .j1-countertop-visual {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .44);
    border: 1px solid var(--j1-line);
    box-sizing: border-box;
}

.j1-bordplade-form .j1-countertop-visual[hidden] {
    display: none !important;
}

@media (min-width: 901px) {
    .j1-bordplade-form:not(.j1-bordplade-form--product-page)
    .j1-calculator-section--shape .j1-countertop-visual {
        position: sticky;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
        z-index: 2;
    }
}

.j1-bordplade-form .j1-countertop-visual__heading {
    display: block;
    margin-bottom: 10px;
    color: #342a26;
    font-size: 14px;
    font-weight: 700;
}

.j1-bordplade-form .j1-countertop-visual__drawing {
    width: 100%;
}

.j1-bordplade-form .j1-countertop-visual__drawing svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 380px;
    background: #fff;
    border: 1px solid rgba(113, 49, 31, .15);
}

.j1-bordplade-form .j1-countertop-visual__plate-shape {
    stroke: #2f2825;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__plate-label {
    fill: #2f2825;
    stroke: rgba(255, 255, 255, .9);
    stroke-width: 5px;
    paint-order: stroke fill;
    font-weight: 700;
}

.j1-bordplade-form .j1-countertop-visual__plate-measure {
    fill: #2f2825;
    stroke: rgba(255, 255, 255, .94);
    stroke-width: 5px;
    paint-order: stroke fill;
    font-weight: 650;
}

.j1-bordplade-form .j1-countertop-visual__extra-edge {
    fill: none;
    stroke: #a83b2c;
    stroke-width: 7px;
    stroke-linecap: round;
    stroke-dasharray: 13 7;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__front-edge {
    fill: none;
    stroke: #71311f;
    stroke-width: 7px;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__edge-hitarea {
    fill: none;
    stroke: transparent;
    stroke-width: 22px;
    pointer-events: stroke;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__edge-hitarea:hover,
.j1-bordplade-form .j1-countertop-visual__edge-hitarea:focus-visible {
    stroke: rgba(113, 49, 31, .22);
    outline: none;
}

.j1-bordplade-form .j1-countertop-visual__click-help {
    display: block;
    margin-top: 7px;
    color: #71311f;
    font-size: 10px;
    line-height: 1.4;
}

.j1-bordplade-form .j1-countertop-visual__production-seam {
    fill: none;
    stroke: #62544d;
    stroke-width: 3px;
    stroke-dasharray: 8 6;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__edge-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #71311f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.j1-bordplade-form .j1-countertop-visual__edge-legend span {
    display: inline-block;
    width: 26px;
    border-top: 3px dashed #a83b2c;
}

.j1-bordplade-form .j1-countertop-visual__edge-legend.is-front-edge span {
    border-top-style: solid;
    border-top-color: #71311f;
    border-top-width: 4px;
}

.j1-bordplade-form .j1-countertop-visual__edge-legend.is-production-seam span {
    border-top-color: #62544d;
    border-top-width: 2px;
}

.j1-bordplade-form .j1-split-notice {
    margin: 9px 0 0;
    padding: 10px 12px;
    color: var(--j1-brown);
    background: rgba(255, 255, 255, .62);
    border-left: 3px solid var(--j1-brown);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.j1-bordplade-form .j1-countertop-visual__sink {
    fill: #242424;
    stroke: #111;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__sink-bowl {
    fill: #777;
    stroke: #ddd;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__sink-drain {
    fill: #d7d7d7;
    stroke: #333;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__tap-hole {
    fill: #fff;
    stroke: #111;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__hob {
    fill: #171717;
    stroke: #000;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__hob-zone {
    fill: none;
    stroke: #aaa;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.j1-bordplade-form .j1-countertop-visual__note {
    display: block;
    margin-top: 8px;
    color: #6f625c;
    font-size: 10px;
    line-height: 1.4;
}

.j1-bordplade-form .j1-extra-plate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid var(--j1-line);
}

.j1-bordplade-form .j1-extra-plate strong {
    grid-column: 1 / -1;
}

.j1-bordplade-form .j1-extra-plate label {
    display: grid;
    gap: 6px;
    font-size: 12px;
}

.j1-bordplade-form .j1-drain-picker {
    margin: 10px 0 18px;
}

.j1-bordplade-form .j1-drain-select {
    position: relative;
}

.j1-bordplade-form button.j1-drain-select__trigger,
.j1-bordplade-form button.j1-drain-select__option {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 7px 42px 7px 8px !important;
    color: #342a26 !important;
    background: var(--j1-white) !important;
    border: 1px solid var(--j1-line) !important;
    border-radius: 2px !important;
    letter-spacing: normal;
    text-align: left;
}

.j1-bordplade-form button.j1-drain-select__trigger::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: '';
    transform: translateY(-65%) rotate(45deg);
    transition: transform .16s ease;
}

.j1-bordplade-form .j1-drain-select.is-open button.j1-drain-select__trigger::after {
    transform: translateY(-25%) rotate(225deg);
}

.j1-bordplade-form .j1-drain-select__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
    background: var(--j1-white);
    border: 1px solid var(--j1-line);
    box-shadow: 0 12px 28px rgba(52, 42, 38, .14);
}

.j1-bordplade-form .j1-drain-select__menu[hidden] {
    display: none !important;
}

.j1-bordplade-form button.j1-drain-select__option {
    min-height: 56px;
    padding-right: 8px !important;
    border-color: transparent !important;
}

.j1-bordplade-form button.j1-drain-select__option:hover,
.j1-bordplade-form button.j1-drain-select__option:focus-visible,
.j1-bordplade-form button.j1-drain-select__option.is-selected {
    background: #f5ece8 !important;
    border-color: rgba(113, 49, 31, .18) !important;
    outline: none;
}

.j1-bordplade-form .j1-drain-select__image {
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    flex: 0 0 44px;
    background: #eee7e2;
    border: 1px solid rgba(113, 49, 31, .12);
    border-radius: 2px;
}

.j1-bordplade-form .j1-drain-select__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.j1-bordplade-form .j1-drain-select__image--standard {
    position: relative;
    background: linear-gradient(135deg, #fafafa, #a8aaab 48%, #f4f4f4 52%, #8d8f90);
    border-radius: 50%;
}

.j1-bordplade-form .j1-drain-select__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.j1-bordplade-form .j1-drain-select__text strong {
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.j1-bordplade-form .j1-drain-select__text small {
    color: var(--j1-brown);
    font-size: 10px;
    font-weight: 600;
}

.j1-bordplade-form .j1-drain-standard {
    justify-content: center;
    min-height: 90px !important;
}

.j1-bordplade-form .j1-drain-standard .j1-product-card__title {
    min-height: 0;
    text-align: center;
}

.j1-bordplade-form .j1-drain-card__title {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
}

.j1-bordplade-form .j1-drain-card__title strong,
.j1-bordplade-form .j1-drain-card__title small {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
}

.j1-bordplade-form .j1-drain-card__title strong {
    font-size: 10px;
    font-weight: 700;
}

.j1-bordplade-form .j1-drain-card__title small {
    color: #6f625c;
    font-size: 10px;
    font-weight: 400;
}

.j1-bordplade-form .j1-drain-standard .j1-drain-card__title {
    align-items: center;
}

.j1-bordplade-form .j1-accessory-card__price {
    display: block;
    margin-top: auto;
    padding: 0 8px 9px;
    color: var(--j1-brown);
    font-size: 10px;
    font-weight: 700;
}

.j1-bordplade-form .j1-sink-variant-name {
    display: block;
    min-height: 15px;
    padding: 0 8px 5px;
    color: #6f625c;
    font-size: 10px;
    line-height: 1.3;
}

.j1-bordplade-form .j1-sink-variant-name[hidden],
.j1-bordplade-form .j1-sink-swatches[hidden] {
    display: none !important;
}

.j1-bordplade-form .j1-sink-swatches {
    display: flex;
    min-height: 28px;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px 8px;
}

.j1-bordplade-form .j1-sink-swatch {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    overflow: hidden;
    background: #eee7e2;
    border: 1px solid #a9978f;
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}

.j1-bordplade-form .j1-sink-swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.j1-bordplade-form .j1-sink-swatch:hover,
.j1-bordplade-form .j1-sink-swatch:focus-visible,
.j1-bordplade-form .j1-sink-swatch.is-selected {
    outline: none;
    box-shadow: 0 0 0 2px var(--j1-white), 0 0 0 4px var(--j1-brown);
    transform: scale(1.04);
}

.j1-bordplade-form .j1-product-card__check {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--j1-white);
    background: var(--j1-brown);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .18s ease, transform .18s ease;
}

.j1-bordplade-form .j1-product-card.is-selected .j1-product-card__check {
    opacity: 1;
    transform: scale(1);
}

.j1-bordplade-form input:not([type="radio"]):not([type="checkbox"]),
.j1-bordplade-form select,
.j1-bordplade-form textarea {
    border: 1px solid var(--j1-line) !important;
    border-radius: 2px !important;
    background-color: var(--j1-white) !important;
}

/* Forhindrer iOS/Safari i at gøre valgt tekst og pil blå. */
.j1-bordplade-form select:not([multiple]) {
    padding-right: 44px !important;
    color: #342a26 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%2371311f' d='M1 1.25 7 7.25l6-6 1 1-7 7-7-7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 17px center !important;
    background-size: 14px 9px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-text-fill-color: #342a26 !important;
}

.j1-bordplade-form select option {
    color: #342a26;
    background: #fff;
}

.j1-bordplade-form button,
.j1-bordplade-form .jet-form-builder__action-button {
    min-height: 52px;
    padding: 14px 28px !important;
    color: var(--j1-white) !important;
    background: var(--j1-brown) !important;
    border: 1px solid var(--j1-brown) !important;
    border-radius: 2px !important;
    font-weight: 650;
    letter-spacing: .06em;
}

.j1-bordplade-form button:hover,
.j1-bordplade-form .jet-form-builder__action-button:hover {
    background: var(--j1-brown-dark) !important;
    border-color: var(--j1-brown-dark) !important;
}

.j1-bordplade-form button.j1-product-grid__toggle {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 9px 14px !important;
    color: var(--j1-brown) !important;
    background: transparent !important;
    border: 1px solid var(--j1-brown) !important;
    font-size: 12px;
    letter-spacing: .035em;
}

.j1-bordplade-form button.j1-product-grid__toggle:hover {
    color: var(--j1-white) !important;
    background: var(--j1-brown) !important;
}

.j1-bordplade-form .j1-calculator-section--measure .jet-form-builder__next-page-wrap {
    display: grid;
    gap: 10px;
}

.j1-bordplade-form button.j1-add-to-cart-button {
    width: 100%;
}

.j1-bordplade-form .j1-cart-message {
    margin: 0;
    color: #6f625c;
    font-size: 13px;
    line-height: 1.4;
}

.j1-bordplade-form .j1-cart-message.is-error {
    color: #a1281e;
}

.j1-cart-config {
    display: grid;
    width: 100%;
    max-width: 520px;
    gap: 0;
    margin: 8px 0 4px;
    color: #342a26;
    line-height: 1.45;
    text-align: left;
}

.j1-cart-config__section {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(113, 49, 31, .16);
}

.j1-cart-config__heading,
.j1-cart-config__lines {
    display: block;
    margin: 0;
    color: #342a26 !important;
}

.j1-cart-config__heading {
    font-size: 15px;
    font-weight: 700 !important;
    letter-spacing: .04em;
}

.j1-cart-config__lines {
    font-size: 14px;
    font-weight: 400;
}

.j1-cart-config__edit {
    justify-self: start;
    margin-top: 8px;
    padding: 8px 12px;
    color: var(--j1-brown) !important;
    border: 1px solid rgba(113, 49, 31, .48);
    background: rgba(255, 255, 255, .35);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

.j1-cart-config__edit:hover,
.j1-cart-config__edit:focus-visible {
    color: #fff !important;
    background: var(--j1-brown);
}

/* Produktnavn, produktpris og konfigurationsetiket matcher afsnitsoverskrifterne. */
.wc-block-cart-item__product .wc-block-components-product-name,
.wc-block-components-order-summary-item__description .wc-block-components-product-name,
.wc-block-cart-item__product .wc-block-components-product-price,
.wc-block-components-order-summary-item__description .wc-block-components-product-price,
.wc-block-components-product-details li:has(.j1-cart-config) .wc-block-components-product-details__name,
.variation dt.variation-Konfiguration {
    color: #342a26 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* WooCommerce Cart/Checkout Blocks skal give konfigurationen en hel linje. */
.wc-block-components-product-details li:has(.j1-cart-config) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.wc-block-components-product-details li:has(.j1-cart-config) > .wc-block-components-product-details__name {
    display: block !important;
    margin-bottom: 5px !important;
}

.wc-block-components-product-details li:has(.j1-cart-config) > .wc-block-components-product-details__value {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Klassisk WooCommerce-kurv og checkout. */
.variation dt.variation-Konfiguration {
    display: block !important;
    width: 100% !important;
    margin: 0 0 5px !important;
}

.variation dd.variation-Konfiguration {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 520px) {
    .j1-cart-config__section {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* WooCommerce-blokkurven: stabil én-kolonnevisning på telefon. */
@media (max-width: 700px) {
    .wp-block-woocommerce-cart,
    .wp-block-woocommerce-filled-cart-block,
    .wc-block-cart,
    .wc-block-components-sidebar-layout,
    .wc-block-components-sidebar-layout .wc-block-components-main,
    .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .wp-block-woocommerce-cart,
    .wp-block-woocommerce-filled-cart-block {
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
        overflow: hidden;
    }

    .wc-block-components-sidebar-layout {
        display: block !important;
    }

    .wc-block-components-sidebar-layout .wc-block-components-main,
    .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        margin-top: 24px !important;
    }

    .wc-block-cart-items,
    .wc-block-cart-items tbody {
        display: block !important;
        width: 100% !important;
    }

    .wc-block-cart-items .wc-block-cart-items__row {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: 12px !important;
        box-sizing: border-box !important;
    }

    .wc-block-cart-items__row .wc-block-cart-item__image {
        display: none !important;
    }

    .wc-block-cart-items__row .wc-block-cart-item__product {
        width: auto !important;
        min-width: 0 !important;
        grid-column: 1 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .wc-block-cart-items__row .wc-block-cart-item__total {
        width: auto !important;
        min-width: max-content !important;
        grid-column: 2 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        white-space: nowrap;
    }

    .wc-block-cart-item__product .wc-block-components-product-metadata,
    .wc-block-cart-item__product .wc-block-components-product-details,
    .wc-block-cart-item__product .wc-block-components-product-details li,
    .wc-block-cart-item__product .wc-block-components-product-details__value,
    .wc-block-cart-item__product .j1-cart-config {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .wc-block-cart-item__product .j1-cart-config__lines {
        overflow-wrap: anywhere;
    }

    .wc-block-components-totals-wrapper,
    .wc-block-components-totals-item,
    .wc-block-cart__submit-container,
    .wc-block-cart__submit-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Diskret kurvikon som JavaScript placerer i headerens eksisterende række. */
.j1-header-cart {
    position: relative;
    display: none;
    width: 38px;
    min-width: 38px;
    height: 40px;
    margin: 0 10px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #71311f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    box-sizing: border-box;
    text-decoration: none !important;
    transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.j1-header-cart.is-mounted {
    display: inline-flex;
}

.j1-header-cart-host {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

.j1-header-cart:hover,
.j1-header-cart:focus-visible {
    color: #542217 !important;
    background: transparent !important;
    opacity: .78;
    transform: translateY(-1px);
}

.j1-header-cart svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.j1-header-cart__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.j1-header-cart__count {
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    color: #fff;
    background: #71311f;
    border: 2px solid #fbf3ef;
    border-radius: 999px;
    box-sizing: border-box;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.j1-header-cart.is-empty .j1-header-cart__count {
    display: none;
}

/* Mobilgenvejen genbruger adressen fra headerens eksisterende Showroom-link. */
.j1-mobile-showroom {
    display: none;
}

/* WooCommerce-beskeder på tværs af produktside, kurv og kasse. */
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error,
.wc-block-components-notice-banner {
    color: #342a26 !important;
    background: rgba(255, 255, 255, .62) !important;
    border: 1px solid #d8c9c2 !important;
    border-left: 4px solid #71311f !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error {
    padding: 15px 18px 15px 48px !important;
}

body.woocommerce-page .woocommerce-message::before,
body.woocommerce-page .woocommerce-info::before,
body.woocommerce-page .woocommerce-error::before,
.wc-block-components-notice-banner > svg {
    color: #71311f !important;
    fill: #71311f !important;
}

body.woocommerce-page .woocommerce-message .button,
body.woocommerce-page .woocommerce-info .button,
body.woocommerce-page .woocommerce-error .button,
.wc-block-components-notice-banner .wc-block-components-button {
    color: #fff !important;
    background: #71311f !important;
    border: 1px solid #71311f !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Kurven: tydelig vej tilbage til fortsat indkøb. */
.j1-continue-shopping {
    position: relative !important;
    z-index: 100 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto 18px;
    pointer-events: auto !important;
}

.j1-continue-shopping a {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 15px;
    align-items: center;
    color: #71311f !important;
    background: transparent;
    border: 1px solid #71311f;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.j1-continue-shopping a:hover,
.j1-continue-shopping a:focus-visible {
    color: #fff !important;
    background: #71311f;
}

.j1-continue-shopping a.is-primary {
    color: #fff !important;
    background: #71311f;
}

.j1-checkout-actions {
    position: relative !important;
    z-index: 100 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto 22px;
    pointer-events: auto !important;
}

.j1-checkout-actions a {
    position: relative;
    z-index: 101;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    color: #71311f !important;
    background: transparent;
    border: 1px solid #71311f;
    font-weight: 700;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.j1-checkout-actions a.is-primary,
.j1-checkout-actions a:hover,
.j1-checkout-actions a:focus-visible {
    color: #fff !important;
    background: #71311f;
}

.j1-checkout-options {
    position: relative !important;
    z-index: 100 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin: 0 0 24px;
    box-sizing: border-box;
    pointer-events: auto !important;
}

.j1-checkout-options__group {
    padding: 20px;
    border: 1px solid #d8c9c2;
    background: rgba(255, 255, 255, .25);
}

.j1-checkout-options__group.is-recommended {
    border-color: #71311f;
    box-shadow: inset 4px 0 0 #71311f;
}

.j1-checkout-options__group h3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 5px;
    color: #71311f;
    font-size: 20px;
}

.j1-checkout-options__recommended {
    display: inline-flex;
    padding: 3px 7px;
    color: #fff;
    background: #71311f;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.j1-checkout-options__group > p {
    margin: 0 0 13px;
    font-size: 13px;
}

.j1-checkout-options__delivery-time {
    padding: 10px 12px;
    color: #342a26;
    background: rgba(113, 49, 31, .07);
    border-left: 3px solid #71311f;
}

.j1-checkout-option {
    position: relative;
    z-index: 101;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 0;
    border-top: 1px solid #dfd2cc;
    cursor: pointer;
    pointer-events: auto !important;
}

.j1-checkout-option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #71311f;
    pointer-events: auto !important;
}

.j1-checkout-option.is-selected-in-order input:disabled {
    opacity: 1;
}

/* Redigeringslinket vises som en selvstændig handling over kurv/checkout. */
.wc-block-cart-item__product .j1-cart-config__edit,
.wc-block-components-order-summary-item__description .j1-cart-config__edit {
    display: none !important;
}

.j1-checkout-option__text {
    display: grid;
    gap: 2px;
}

.j1-checkout-option__text strong {
    color: #342a26;
}

.j1-checkout-option__text small,
.j1-checkout-option__description {
    color: #6d625d;
    line-height: 1.4;
}

.j1-checkout-option__description > :first-child {
    margin-top: 4px;
}

.j1-checkout-option__description > :last-child {
    margin-bottom: 0;
}

.j1-checkout-option__description p {
    margin: 0 0 10px;
}

.j1-checkout-option__description strong {
    display: inline-block;
    margin-bottom: 2px;
    color: #342a26;
}

.j1-checkout-option__details {
    margin-top: 5px;
}

.j1-checkout-option__details summary {
    width: fit-content;
    color: #71311f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.j1-checkout-option__details[open] summary {
    margin-bottom: 8px;
}

.j1-checkout-remove-item {
    display: inline-flex !important;
    min-height: 0 !important;
    margin: 8px 0 0 !important;
    padding: 0 0 2px !important;
    color: #71311f !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
}

.j1-checkout-remove-item:hover,
.j1-checkout-remove-item:focus-visible {
    color: #342a26 !important;
    background: transparent !important;
}

.j1-alternate-billing {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d8c9c2;
}

.j1-alternate-billing__toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #342a26;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.j1-alternate-billing__toggle input {
    width: 20px;
    height: 20px;
    accent-color: #71311f;
}

.j1-alternate-billing__fields {
    display: grid;
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.j1-alternate-billing__fields[hidden] {
    display: none !important;
}

.j1-alternate-billing__field {
    display: grid;
    gap: 5px;
    color: #6e5b53;
    font-size: 12px;
}

.j1-alternate-billing__field--company,
.j1-alternate-billing__field--address_1,
.j1-alternate-billing__field--address_2 {
    grid-column: 1 / -1;
}

.j1-alternate-billing__field input {
    min-height: 46px;
    padding: 10px 12px;
    color: #342a26;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #bdaaa2;
    border-radius: 2px;
    box-shadow: none;
    font-size: 14px;
}

@media (max-width: 700px) {
    .j1-checkout-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .j1-checkout-actions a {
        justify-content: center;
    }

    .j1-checkout-options {
        grid-template-columns: 1fr;
    }

    .j1-alternate-billing__fields {
        grid-template-columns: 1fr;
    }

    .j1-alternate-billing__field--company,
    .j1-alternate-billing__field--address_1,
    .j1-alternate-billing__field--address_2 {
        grid-column: auto;
    }
}

/* WooCommerce-blokkurven – roligere linjer, tydelig total og J1-kasseknap. */
.wp-block-woocommerce-cart .wc-block-cart-items {
    border-top: 1px solid #d8c9c2 !important;
}

.wp-block-woocommerce-cart .wc-block-cart-items__row {
    border-bottom-color: #d8c9c2 !important;
}

.wp-block-woocommerce-cart .wc-block-components-sidebar {
    color: #342a26 !important;
}

.wp-block-woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-item {
    border-color: #d8c9c2 !important;
}

.wp-block-woocommerce-cart .wc-block-components-product-name,
.wp-block-woocommerce-cart .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item__value {
    color: #342a26 !important;
    opacity: 1 !important;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector {
    min-height: 42px;
    border-color: #d8c9c2 !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, .4) !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
    color: #71311f !important;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart a.wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button {
    min-height: 52px !important;
    color: #fff !important;
    background: #71311f !important;
    border: 1px solid #71311f !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button span,
.wp-block-woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
    color: #fff !important;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus-visible,
.wp-block-woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:focus-visible {
    color: #fff !important;
    background: #542217 !important;
    border-color: #542217 !important;
    box-shadow: none !important;
    outline: 2px solid rgba(113, 49, 31, .24) !important;
    outline-offset: 2px;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover span,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus span,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus-visible span {
    color: #fff !important;
}

/* WooCommerce Checkout Blocks – kompakt J1-styling og stærkere kontrast. */
.wp-block-woocommerce-checkout,
.wc-block-checkout {
    color: #342a26 !important;
}

.wc-block-checkout__main {
    padding-right: clamp(20px, 3vw, 48px) !important;
}

.wc-block-checkout__sidebar {
    color: #342a26 !important;
}

.wc-block-components-checkout-step {
    margin-bottom: 28px !important;
}

.wc-block-components-checkout-step__heading {
    margin-bottom: 12px !important;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wc-block-components-order-summary__button-text,
.wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item__label {
    color: #71311f !important;
    font-weight: 700 !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-address-form select,
.wc-block-components-select .wc-block-components-select__select {
    min-height: 46px !important;
    color: #342a26 !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid #bdaaa2 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-block-components-address-form select:focus,
.wc-block-components-select .wc-block-components-select__select:focus {
    border-color: #71311f !important;
    box-shadow: 0 0 0 1px #71311f !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-block-components-address-form label,
.wc-block-components-checkbox__label {
    color: #6e5b53 !important;
    font-size: 12px !important;
}

.wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
    border-color: #d8c9c2 !important;
}

.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__description p,
.wc-block-components-order-summary-item__description span,
.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item__individual-price,
.wc-block-components-product-details,
.wc-block-components-product-details li,
.wc-block-components-product-details__name,
.wc-block-components-product-details__value,
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item__value {
    color: #342a26 !important;
    opacity: 1 !important;
}

.wc-block-components-order-summary-item__description {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.wc-block-components-order-summary-item__description .j1-cart-config,
.wc-block-components-order-summary-item__description .j1-cart-config__heading,
.wc-block-components-order-summary-item__description .j1-cart-config__lines {
    color: #342a26 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.wc-block-components-order-summary-item__image > img {
    border: 1px solid #e0d3cd;
    border-radius: 2px;
}

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-return-to-cart-button {
    min-height: 48px !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
}

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    color: #fff !important;
    background: #71311f !important;
    border-color: #71311f !important;
}

@media (max-width: 1100px) {
    .j1-header-cart-host {
        position: relative !important;
        width: auto !important;
        margin-left: auto !important;
        flex-flow: row nowrap !important;
        gap: 0 !important;
    }

    .j1-header-cart {
        position: absolute;
        top: 50%;
        right: calc(100% + 9px);
        margin: 0;
        transform: translateY(-50%);
    }

    .j1-header-cart:hover,
    .j1-header-cart:focus-visible {
        transform: translateY(-50%);
    }
}

@media (max-width: 780px) {
    .wc-block-checkout__main {
        padding-right: 0 !important;
    }

    .wc-block-components-checkout-step {
        margin-bottom: 22px !important;
    }

    .wc-block-checkout__sidebar {
        margin-top: 24px !important;
    }
}

@media (max-width: 520px) {
    .j1-header-cart {
        width: 36px;
        min-width: 36px;
        height: 38px;
        margin: 0 6px;
    }

    .j1-header-cart__count {
        top: 0;
        right: -1px;
    }

    .j1-continue-shopping {
        width: calc(100% - 28px);
        margin-bottom: 14px;
    }

    .j1-continue-shopping a {
        width: 100%;
        justify-content: center;
    }

    .wc-block-components-text-input input,
    .wc-block-components-combobox .wc-block-components-combobox-control input,
    .wc-block-components-address-form select,
    .wc-block-components-select .wc-block-components-select__select {
        min-height: 44px !important;
    }

    /* "Ny i webshop" og øvrige produktforslag i mobilkurven. */
    body.woocommerce-cart .wc-block-product-template,
    body.woocommerce-cart .wc-block-grid__products {
        display: grid !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 14px !important;
        gap: 22px 12px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .wc-block-product-template > li,
    body.woocommerce-cart .wc-block-grid__product {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    body.woocommerce-cart .wc-block-components-product-image,
    body.woocommerce-cart .wc-block-grid__product-image {
        width: 100% !important;
        margin: 0 0 10px !important;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #fff;
    }

    body.woocommerce-cart .wc-block-components-product-image img,
    body.woocommerce-cart .wc-block-grid__product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.woocommerce-cart .wc-block-components-product-title,
    body.woocommerce-cart .wc-block-grid__product-title {
        margin: 0 0 7px !important;
        color: #71311f !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-cart .wc-block-components-product-price,
    body.woocommerce-cart .wc-block-grid__product-price {
        margin-bottom: 9px !important;
        font-size: 13px !important;
    }

    body.woocommerce-cart .wp-block-button__link,
    body.woocommerce-cart .wc-block-grid__product-add-to-cart a,
    body.woocommerce-cart .wc-block-grid__product-add-to-cart button {
        min-height: 38px !important;
        padding: 8px 11px !important;
        border-radius: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 900px) {
    .j1-mobile-showroom {
        position: fixed;
        z-index: 9997;
        top: 52%;
        right: 0;
        display: inline-flex;
        min-height: 116px;
        padding: 13px 8px;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        background: rgba(113, 49, 31, .94);
        border: 1px solid #71311f;
        border-right: 0;
        border-radius: 4px 0 0 4px;
        box-shadow: 0 5px 18px rgba(75, 42, 31, .14);
        box-sizing: border-box;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .12em;
        text-decoration: none !important;
        text-transform: uppercase;
        transform: translateY(-50%);
        writing-mode: vertical-rl;
    }

    .j1-mobile-showroom:hover,
    .j1-mobile-showroom:focus-visible {
        color: #71311f !important;
        background: #fbf3ef;
    }

    .j1-bordplade-form .j1-calculator-layout {
        grid-template-columns: 1fr;
    }

    .j1-bordplade-form .j1-calculator-section + .j1-calculator-section {
        border-top: 1px solid var(--j1-line);
        border-left: 0;
    }

    .j1-bordplade-form .j1-material-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .j1-bordplade-form .j1-calculator-section {
        padding: 24px 18px;
    }

    .j1-bordplade-form .j1-choice-grid {
        gap: 10px;
    }

    .j1-bordplade-form .j1-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .j1-bordplade-form .j1-choice-card__title {
        min-height: 48px;
        padding: 10px 6px;
        font-size: 11px;
    }

    .j1-bordplade-form .j1-material-grid .j1-choice-card__title {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 10px;
    }

    .j1-bordplade-form .j1-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .j1-bordplade-form .j1-extra-plate {
        grid-template-columns: 1fr;
    }

    .j1-bordplade-form .j1-extra-plate strong {
        grid-column: auto;
    }

    .j1-bordplade-form .j1-countertop-visual__drawing svg {
        min-height: 240px;
        max-height: 340px;
    }

    .j1-bordplade-form--product-page .j1-product-page-contact-panel__body {
        padding: 20px 18px;
    }
}

/* Dynamiske tilvalg på forsideformular 4682. */
.j1-bordplade-form .j1-extra-product-picker {
    width: 100%;
    margin: 18px 0 4px;
}

.j1-bordplade-form .j1-extra-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.j1-bordplade-form .j1-product-card-with-quantity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, .42);
    border: 1px solid var(--j1-line);
}

.j1-bordplade-form .j1-product-card-with-quantity > .j1-product-card {
    width: 100%;
    flex: 1 1 auto;
    border: 0 !important;
}

.j1-bordplade-form .j1-product-quantity {
    display: grid;
    min-height: 42px;
    align-items: center;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    border-top: 1px solid var(--j1-line);
}

.j1-bordplade-form .j1-product-quantity__button {
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--j1-brown) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.j1-bordplade-form .j1-product-quantity__button:disabled {
    opacity: .28;
}

.j1-bordplade-form .j1-product-quantity__value {
    color: #342a26;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.j1-bordplade-form .j1-product-card__description {
    display: block;
    padding: 0 10px 10px;
    color: #2f2825;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.j1-bordplade-form .j1-product-card__variant-property {
    display: block;
    margin: -5px 0 8px;
    padding: 0 8px;
    color: #796b64;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.j1-bordplade-form .j1-warranty-picker {
    width: 100%;
    margin: 18px 0 4px;
    padding: 16px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(113, 49, 31, .42);
}

.j1-bordplade-form .j1-warranty-picker > .j1-accessory-picker__title {
    display: block;
    margin: 0 0 8px;
    color: #2f2825;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
}

.j1-bordplade-form .j1-warranty-picker .j1-extra-product-grid {
    display: block;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card-with-details {
    display: grid;
    gap: 12px;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__details summary {
    width: fit-content;
    color: var(--j1-brown);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__details[open] summary {
    margin-bottom: 10px;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__details-content {
    color: #2f2825;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__details-content p {
    margin: 0 0 10px;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__details-content > :last-child {
    margin-bottom: 0;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card {
    display: grid;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0 !important;
    overflow: visible;
    color: #2f2825 !important;
    background: transparent !important;
    border: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 14px;
    text-align: left;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__image,
.j1-bordplade-form .j1-warranty-picker .j1-product-card__title {
    display: none;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__description {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal;
}

.j1-bordplade-form .j1-warranty-picker .j1-accessory-card__price {
    align-self: center;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 0;
    color: var(--j1-brown);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card__check {
    position: static;
    width: 24px;
    height: 24px;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    color: transparent;
    background: transparent;
    border: 1px solid var(--j1-brown);
    opacity: 1;
    transform: none;
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card.is-selected .j1-product-card__check {
    color: var(--j1-white);
    background: var(--j1-brown);
}

.j1-bordplade-form .j1-warranty-picker .j1-product-card:hover,
.j1-bordplade-form .j1-warranty-picker .j1-product-card.is-selected {
    color: #2f2825 !important;
    background: transparent !important;
}

.j1-bordplade-form .j1-calculated-price-row .jet-form-builder__label,
.j1-bordplade-form .j1-calculated-price-row label {
    color: #2f2825;
    font-size: 14px !important;
    font-weight: 750 !important;
}

.j1-bordplade-form .j1-calculated-price-row .j1-jetform-price-display {
    display: none !important;
}

.j1-bordplade-form .j1-calculated-price-row .j1-server-price-display {
    display: block;
    margin-top: 3px;
    color: var(--j1-brown);
    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
}

.j1-bordplade-form .j1-calculated-price-row .j1-calculator-discount {
    display: block;
    margin-top: 5px;
    color: #71311f;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.j1-bordplade-form .j1-calculated-price-row .j1-calculator-discount[hidden] {
    display: none !important;
}

.j1-bordplade-form .j1-price-error {
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    color: #71311f;
    background: rgba(255, 255, 255, .55);
    border-left: 3px solid #71311f;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .j1-bordplade-form .j1-extra-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Produktfakta – kan placeres frit med shortcoden [j1_faktaboks]. */
.j1-faktaboks {
    --j1-fact-brown: #71311f;
    --j1-fact-line: #d8c9c2;
    --j1-fact-soft: #fbf3ef;
    width: 100%;
    overflow: hidden;
    color: #2f2825;
    background: rgba(255, 255, 255, .28);
    border: 1px solid var(--j1-fact-line);
}

.j1-faktaboks__heading {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--j1-fact-line);
}

.j1-faktaboks__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--j1-fact-brown);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.j1-faktaboks__heading h3 {
    margin: 0;
    color: #2f2825;
    font-size: 20px;
    line-height: 1.25;
}

.j1-faktaboks__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.j1-faktaboks__item {
    display: flex;
    min-width: 0;
    min-height: 98px;
    align-items: flex-start;
    gap: 14px;
    padding: 21px 22px;
    border-bottom: 1px solid var(--j1-fact-line);
}

.j1-faktaboks__item:nth-child(odd) {
    border-right: 1px solid var(--j1-fact-line);
}

.j1-faktaboks__grid--count-2 .j1-faktaboks__item,
.j1-faktaboks__grid--count-3 .j1-faktaboks__item:last-child,
.j1-faktaboks__grid--count-4 .j1-faktaboks__item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.j1-faktaboks__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--j1-fact-brown);
    background: var(--j1-fact-soft);
    border: 1px solid var(--j1-fact-line);
    border-radius: 50%;
}

.j1-faktaboks__icon svg {
    width: 19px;
    height: 19px;
}

.j1-faktaboks__content,
.j1-faktaboks__label {
    display: block;
}

.j1-faktaboks__content {
    min-width: 0;
}

.j1-faktaboks__label {
    margin: 1px 0 5px;
    color: #796b64;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.j1-faktaboks__content strong {
    display: block;
    overflow-wrap: anywhere;
    color: #2f2825;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .j1-faktaboks__grid {
        grid-template-columns: 1fr;
    }

    .j1-faktaboks__item,
    .j1-faktaboks__item:nth-child(odd),
    .j1-faktaboks__grid--count-2 .j1-faktaboks__item,
    .j1-faktaboks__grid--count-3 .j1-faktaboks__item:last-child,
    .j1-faktaboks__grid--count-4 .j1-faktaboks__item:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--j1-fact-line);
    }

    .j1-faktaboks__item:last-child {
        border-bottom: 0;
    }
}
.j1-bordplade-form .j1-duplicate-measure-row {
    display: none !important;
}

.j1-bordplade-form .j1-inactive-measure-group {
    display: none !important;
}

/* JetFormBuilder kan tilsidesætte HTML-attributten hidden på formularrækker. */
.j1-bordplade-form .j1-hidden-sink-option {
    display: none !important;
}

/* Direkte salgsvarer – samme rolige J1-udtryk som bordpladesiderne. */
body.j1-direct-product {
    --j1-direct-brown: #71311f;
    --j1-direct-dark: #2f2825;
    --j1-direct-muted: #796b64;
    --j1-direct-line: #d8c9c2;
    --j1-direct-soft: #fbf3ef;
}

.j1-direct-product-page {
    width: 100%;
    padding: clamp(130px, 10vw, 170px) 28px 90px;
    box-sizing: border-box;
    color: var(--j1-direct-dark);
}

.j1-direct-product-page__inner {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.j1-direct-product__breadcrumb {
    margin: 0 0 26px;
    color: var(--j1-direct-muted);
    font-size: 13px;
}

.j1-direct-product__breadcrumb a {
    color: var(--j1-direct-muted);
    text-decoration: none;
}

.j1-direct-product__breadcrumb a:hover {
    color: var(--j1-direct-brown);
}

.j1-direct-product-page .woocommerce-notices-wrapper {
    margin-bottom: 22px;
}

.j1-direct-product-page .woocommerce-notices-wrapper:empty {
    display: none;
}

.j1-direct-product-page .woocommerce-message,
.j1-direct-product-page .woocommerce-info,
.j1-direct-product-page .woocommerce-error {
    display: flex;
    min-height: 58px;
    margin: 0 0 22px !important;
    padding: 15px 18px 15px 50px !important;
    align-items: center;
    gap: 16px;
    color: var(--j1-direct-dark) !important;
    background: rgba(255, 255, 255, .48) !important;
    border: 1px solid var(--j1-direct-line) !important;
    border-left: 4px solid var(--j1-direct-brown) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.45;
    list-style: none;
}

.j1-direct-product-page .woocommerce-message::before,
.j1-direct-product-page .woocommerce-info::before,
.j1-direct-product-page .woocommerce-error::before {
    top: 50% !important;
    left: 18px !important;
    color: var(--j1-direct-brown) !important;
    transform: translateY(-50%);
}

.j1-direct-product-page .woocommerce-message::after,
.j1-direct-product-page .woocommerce-info::after,
.j1-direct-product-page .woocommerce-error::after {
    display: none !important;
}

.j1-direct-product-page .woocommerce-message .button,
.j1-direct-product-page .woocommerce-info .button,
.j1-direct-product-page .woocommerce-error .button {
    order: 2;
    float: none !important;
    flex: 0 0 auto;
    min-height: 40px;
    margin: 0 0 0 auto !important;
    padding: 10px 17px !important;
    color: #fff !important;
    background: var(--j1-direct-brown) !important;
    border: 1px solid var(--j1-direct-brown) !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: nowrap;
}

.j1-direct-product-page .woocommerce-message .button:hover,
.j1-direct-product-page .woocommerce-info .button:hover,
.j1-direct-product-page .woocommerce-error .button:hover {
    background: #542217 !important;
    border-color: #542217 !important;
}

.j1-direct-product-page article.j1-direct-product {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    align-items: start;
    gap: 52px 64px;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
}

.j1-direct-product__visual,
.j1-direct-product__purchase,
.j1-direct-product__description {
    min-width: 0;
}

.j1-direct-product__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--j1-direct-brown);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.j1-direct-product__title {
    margin: 0 0 24px;
    color: var(--j1-direct-brown);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
}

.j1-direct-product__gallery {
    position: relative;
}

.j1-direct-product-page .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.j1-direct-product-page .woocommerce-product-gallery__wrapper,
.j1-direct-product-page .woocommerce-product-gallery__image {
    margin: 0;
}

.j1-direct-product-page .woocommerce-product-gallery__image > a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.j1-direct-product-page .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.j1-direct-product-page .flex-control-thumbs {
    display: grid;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.j1-direct-product-page .flex-control-thumbs li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.j1-direct-product-page .flex-control-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid transparent;
    opacity: .7;
    cursor: pointer;
}

.j1-direct-product-page .flex-control-thumbs img.flex-active,
.j1-direct-product-page .flex-control-thumbs img:hover {
    border-color: var(--j1-direct-brown);
    opacity: 1;
}

.j1-direct-product-page .onsale {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    z-index: 3;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 7px 11px !important;
    color: #fff;
    background: var(--j1-direct-brown);
    border-radius: 0;
    font-size: 11px;
    line-height: 1.2;
}

.j1-direct-product__purchase {
    position: sticky;
    top: 120px;
    overflow: hidden;
    background: rgba(255, 255, 255, .28);
    border: 1px solid var(--j1-direct-line);
}

.j1-direct-product__purchase-heading,
.j1-direct-product__purchase-body {
    padding: 24px 28px;
}

.j1-direct-product__purchase-heading {
    border-bottom: 1px solid var(--j1-direct-line);
}

.j1-direct-product__purchase h2,
.j1-direct-product__section-heading h2 {
    margin: 0;
    color: var(--j1-direct-dark);
    font-size: 24px;
    line-height: 1.2;
}

.j1-direct-product__price {
    margin-bottom: 20px;
    color: var(--j1-direct-brown);
    font-size: 28px;
    font-weight: 750;
    line-height: 1.2;
}

.j1-direct-product__price del {
    margin-right: 8px;
    color: var(--j1-direct-muted);
    font-size: .72em;
    font-weight: 500;
}

.j1-direct-product__price ins {
    color: inherit;
    text-decoration: none;
}

.j1-direct-product__intro {
    margin-bottom: 24px;
    color: #5f5049;
    font-size: 15px;
    line-height: 1.65;
}

.j1-direct-product__intro > :first-child,
.j1-direct-product__description-content > :first-child {
    margin-top: 0;
}

.j1-direct-product__intro > :last-child,
.j1-direct-product__description-content > :last-child {
    margin-bottom: 0;
}

.j1-direct-product__cart form.cart {
    display: grid !important;
    margin: 0 !important;
    gap: 10px;
    grid-template-columns: 84px minmax(0, 1fr);
}

.j1-direct-product__cart form.cart::before,
.j1-direct-product__cart form.cart::after {
    display: none !important;
}

.j1-direct-product__cart .quantity {
    float: none !important;
    width: 84px;
    margin: 0 !important;
}

.j1-direct-product__cart .quantity input.qty {
    width: 100%;
    min-height: 52px;
    padding: 10px;
    color: var(--j1-direct-dark);
    background: #fff;
    border: 1px solid var(--j1-direct-line);
    border-radius: 0;
    box-sizing: border-box;
}

.j1-direct-product__cart button.single_add_to_cart_button {
    float: none !important;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 13px 20px !important;
    color: #fff !important;
    background: var(--j1-direct-brown) !important;
    border: 1px solid var(--j1-direct-brown) !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
}

.j1-direct-product__cart button.single_add_to_cart_button:hover {
    background: #542217 !important;
    border-color: #542217 !important;
}

.j1-direct-product__cart .stock {
    grid-column: 1 / -1;
    margin: 0 0 6px;
    color: var(--j1-direct-muted);
    font-size: 13px;
}

.j1-direct-product__description {
    grid-column: 1 / 2;
    overflow: hidden;
    background: rgba(255, 255, 255, .28);
    border: 1px solid var(--j1-direct-line);
}

.j1-direct-product__section-heading {
    padding: 22px 26px 18px;
    border-bottom: 1px solid var(--j1-direct-line);
}

.j1-direct-product__description-content {
    padding: 26px;
    color: #5f5049;
    font-size: 16px;
    line-height: 1.75;
}

.j1-direct-product-page .woocommerce-tabs,
.j1-direct-product-page .related,
.j1-direct-product-page .upsells {
    display: none !important;
}

@media (max-width: 900px) {
    .j1-direct-product-page {
        padding: 110px 20px 64px;
    }

    .j1-direct-product-page article.j1-direct-product {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .j1-direct-product__purchase {
        position: static;
    }

    .j1-direct-product__description {
        grid-column: 1;
    }
}

@media (max-width: 520px) {
    .j1-direct-product-page {
        padding: 92px 14px 48px;
    }

    .j1-direct-product__title {
        margin-bottom: 18px;
        font-size: 34px;
    }

    .j1-direct-product__purchase-heading,
    .j1-direct-product__purchase-body,
    .j1-direct-product__section-heading,
    .j1-direct-product__description-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .j1-direct-product__cart form.cart {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .j1-direct-product__cart .quantity {
        width: 72px;
    }

    .j1-direct-product-page .woocommerce-message,
    .j1-direct-product-page .woocommerce-info,
    .j1-direct-product-page .woocommerce-error {
        display: block;
        padding: 15px 15px 15px 44px !important;
    }

    .j1-direct-product-page .woocommerce-message::before,
    .j1-direct-product-page .woocommerce-info::before,
    .j1-direct-product-page .woocommerce-error::before {
        left: 15px !important;
    }

    .j1-direct-product-page .woocommerce-message .button,
    .j1-direct-product-page .woocommerce-info .button,
    .j1-direct-product-page .woocommerce-error .button {
        display: block;
        width: 100%;
        margin: 12px 0 0 !important;
        text-align: center;
    }
}

/* Ordrebekræftelse – samme farver, kort og typografi som J1-kassen. */
/* The site's header overlays hero images by design. Transaction pages have no
   hero: on mobile let the existing header reserve its own actual height. */
@media (max-width: 1100px) {
    body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received)
    .elementor-location-header .elementor-element.elementor-element-5c8baa44 {
        --position: relative;
        position: relative !important;
        inset: auto !important;
    }
}

.woocommerce-order-received .woocommerce-order {
    --j1-order-brown: #71311f;
    --j1-order-line: #d8c9c2;
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: 0 auto;
    padding: 12px 0 36px;
    color: #342a26;
    line-height: 1.6;
}

.woocommerce-order-received .woocommerce-order *,
.woocommerce-order-received .woocommerce-order *::before,
.woocommerce-order-received .woocommerce-order *::after {
    box-sizing: border-box;
}

.woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received {
    margin: 0 0 24px;
    padding: 20px 24px;
    border-left: 4px solid var(--j1-order-brown);
    background: rgba(255, 255, 255, .45);
    color: var(--j1-order-brown);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.35;
}

.woocommerce-order-received .woocommerce-order ul.order_details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0 0 36px;
    padding: 0;
    border: 1px solid var(--j1-order-line);
    background: rgba(255, 255, 255, .3);
    list-style: none;
}

.woocommerce-order-received .woocommerce-order ul.order_details::before,
.woocommerce-order-received .woocommerce-order ul.order_details::after {
    display: none;
}

.woocommerce-order-received .woocommerce-order ul.order_details li {
    float: none;
    min-width: 0;
    margin: 0;
    padding: 18px 20px;
    border: 0;
    border-right: 1px solid var(--j1-order-line);
    color: #796b64;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.woocommerce-order-received .woocommerce-order ul.order_details li:last-child {
    border-right: 0;
}

.woocommerce-order-received .woocommerce-order ul.order_details li strong {
    display: block;
    margin-top: 5px;
    color: #342a26;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-details,
.woocommerce-order-received .woocommerce-order .woocommerce-customer-details {
    margin: 0 0 32px;
}

.woocommerce-order-received .woocommerce-order h2 {
    margin: 0 0 16px;
    color: var(--j1-order-brown);
    font-size: clamp(21px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
}

.woocommerce-order-received .woocommerce-order table.woocommerce-table--order-details {
    width: 100%;
    margin: 0;
    border: 1px solid var(--j1-order-line);
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 0;
    background: rgba(255, 255, 255, .3);
    color: #342a26;
    font-size: 15px;
    table-layout: fixed;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details td {
    padding: 18px 22px;
    border: 0;
    border-bottom: 1px solid var(--j1-order-line);
    background: transparent;
    color: #342a26;
    vertical-align: top;
    overflow-wrap: anywhere;
    text-align: left;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details thead th {
    background: rgba(113, 49, 31, .06);
    color: var(--j1-order-brown);
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details .product-total,
.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details tfoot td {
    width: 28%;
    text-align: right;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details tfoot td {
    padding-top: 14px;
    padding-bottom: 14px;
    background: rgba(255, 255, 255, .28);
    color: var(--j1-order-brown);
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details tr:last-child > * {
    border-bottom: 0;
}

.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details tbody tr:last-child > * {
    border-bottom: 1px solid var(--j1-order-line);
}

.woocommerce-order-received .woocommerce-order a {
    color: var(--j1-order-brown);
    text-underline-offset: 3px;
}

.woocommerce-order-received .woocommerce-order a:hover,
.woocommerce-order-received .woocommerce-order a:focus-visible {
    color: #542217;
    text-decoration: underline;
}

.woocommerce-order-received .woocommerce-order .product-name > a {
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-order-received .woocommerce-order .wc-item-meta {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: #65574f;
    font-size: 13px;
    line-height: 1.6;
}

.woocommerce-order-received .woocommerce-order .wc-item-meta li {
    margin: 0 0 5px;
}

.woocommerce-order-received .woocommerce-order .wc-item-meta p {
    margin: 0;
}

.woocommerce-order-received .woocommerce-order .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.woocommerce-order-received .woocommerce-order .woocommerce-columns--addresses::before,
.woocommerce-order-received .woocommerce-order .woocommerce-columns--addresses::after {
    display: none;
}

.woocommerce-order-received .woocommerce-order .woocommerce-column {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details address {
    width: 100%;
    padding: 22px 24px;
    border: 1px solid var(--j1-order-line);
    border-radius: 0;
    background: rgba(255, 255, 255, .3);
    color: #342a26;
    font-style: normal;
    overflow-wrap: anywhere;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details address p {
    margin-top: 10px;
    margin-bottom: 0;
    color: #342a26;
}

@media (max-width: 760px) {
    .woocommerce-order-received .woocommerce-order ul.order_details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce-order-received .woocommerce-order ul.order_details li {
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--j1-order-line);
    }

    .woocommerce-order-received .woocommerce-order ul.order_details li:last-child {
        border-bottom: 0;
        grid-column: 1 / -1;
    }

    .woocommerce-order-received .woocommerce-order ul.order_details li.woocommerce-order-overview__email,
    .woocommerce-order-received .woocommerce-order ul.order_details li.woocommerce-order-overview__total,
    .woocommerce-order-received .woocommerce-order ul.order_details li.woocommerce-order-overview__payment-method {
        grid-column: 1 / -1;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-columns--addresses {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .woocommerce-order-received .woocommerce-order {
        padding-top: 20px;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received {
        padding: 16px;
        overflow-wrap: anywhere;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-table--order-details th,
    .woocommerce-order-received .woocommerce-order .woocommerce-table--order-details td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .woocommerce-order-received .woocommerce-order .wc-item-meta {
        font-size: 12px;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-table--order-details .product-total,
    .woocommerce-order-received .woocommerce-order .woocommerce-table--order-details tfoot td {
        width: 34%;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-table--order-details .product-total .amount {
        white-space: nowrap;
    }
}

.j1-bordplade-form .j1-active-measure-group,
.j1-bordplade-form .j1-active-measure-group > .jet-form-builder__conditional,
.j1-bordplade-form .j1-active-measure-field-group {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.j1-bordplade-form .j1-active-measure-field-group > .jet-form-builder-row {
    display: flex !important;
    height: auto !important;
}

.j1-bordplade-form.j1-multi-plate-form .jet-form-builder-row:has([name="laengde"]),
.j1-bordplade-form.j1-multi-plate-form .jet-form-builder-row:has([name="dybde"]) {
    display: none !important;
}
.j1-product-search {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #d8c6bf;
    background: #fff;
    color: #342a26;
}
.j1-hole-count-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.j1-hole-count-label select { width: 110px; flex: 0 0 110px; }
.j1-bordplade-form button.j1-island-preset.j1-form-card,
.j1-bordplade-form button.j1-island-preset.j1-form-card:hover,
.j1-bordplade-form button.j1-island-preset.j1-form-card:focus {
    display: block; align-self: stretch; width: auto; min-height: 0;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    color: #342a26 !important; background: transparent !important;
    border-radius: 0 !important; box-shadow: none !important;
    font: inherit; letter-spacing: normal;
}
.j1-bordplade-form button.j1-island-preset[aria-pressed="true"] .j1-choice-card__content {
    border-color: var(--j1-brown); box-shadow: 0 0 0 1px var(--j1-brown);
}
.j1-bordplade-form button.j1-island-preset[aria-pressed="true"] .j1-choice-card__check { opacity: 1; transform: scale(1); }
.j1-bordplade-form button.j1-island-preset:focus-visible .j1-choice-card__content { outline: 3px solid rgba(113,49,31,.3); outline-offset: 3px; }
.j1-bordplade-form .j1-form-card--preset-underlying > input:checked + .j1-choice-card__content { border-color: var(--j1-line); box-shadow: none; }
.j1-bordplade-form .j1-form-card--preset-underlying > input:checked + .j1-choice-card__content .j1-choice-card__check { opacity: 0; }

.j1-product-card-with-info { position: relative; }
.j1-bordplade-form .j1-product-card-with-info > button.j1-product-info-button {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    display: grid; place-items: center; width: 32px; height: 32px;
    padding: 0 !important; margin: 0 !important; border: 1px solid #71311f !important;
    border-radius: 50% !important; background: #fff !important; color: #71311f !important;
    font: italic 700 20px Georgia, serif; line-height: 1; box-shadow: 0 1px 4px #0001;
}
.j1-product-info-popup {
    position: fixed; z-index: 10000; box-sizing: border-box;
    width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
    padding: 18px; overflow-y: auto; overscroll-behavior: contain;
    background: #fffaf7; color: #342a26; border: 1px solid #d8c6bf;
    border-radius: 4px; box-shadow: 0 10px 36px #342a2630;
    font-size: 15px; line-height: 1.5;
}
.j1-product-info-popup[hidden] { display: none !important; }
.j1-product-info-popup__heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 10px; color: #71311f; }
.j1-product-info-popup__heading strong { font-size: 18px; }
.j1-product-info-popup button.j1-product-info-popup__close {
    flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px;
    margin: 0; padding: 0 !important; border: 1px solid #d8c6bf !important; border-radius: 50%;
    background: transparent !important; color: #71311f !important; font: 24px/1 Arial, sans-serif;
}
.j1-product-info-popup__description p { margin: 0 0 12px; }
.j1-product-info-popup__images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.j1-product-info-popup__images img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #fff; border-radius: 2px; }
.j1-product-info-popup__images > img:only-child { grid-column: 1 / -1; max-height: min(420px, 55vh); }
@media (max-width: 480px) { .j1-product-info-popup__images { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .j1-bordplade-form .j1-product-card-with-info > button.j1-product-info-button { width: 44px; height: 44px; } }
.j1-remove-extra-plate { margin-top: 12px; color: #71311f; border: 1px solid currentColor; background: transparent; padding: 8px 12px; }
.j1-material-search { display: flex; gap: 12px; align-items: end; margin: 16px 0 24px; flex-wrap: wrap; }
.j1-material-search label { flex: 1; display: grid; gap: 12px; line-height: 1.5; margin: 0; min-width: 0; }
.j1-material-search input { box-sizing: border-box; width: 100%; display: block; margin: 0; min-height: 48px; padding: 12px; background: white; color: #342a26; border: 1px solid #d8c6bf; }
.j1-material-search input:focus-visible { outline: 2px solid #71311f; outline-offset: 2px; }
.j1-material-search > small { flex-basis: 100%; }
/* Extra plates need room at the same width, including on mobile. Keep the
   existing height limits for connected shapes without extra plates. */
.j1-bordplade-form .j1-countertop-visual__drawing svg.has-extra-plates { max-height: none; height: auto; }
.elementor-widget-woocommerce-products ul.products > li.product[hidden] { display: none !important; }
.j1-material-search-index[hidden] { display: none !important; }
.j1-quote-contact-error:not([hidden]) { display: block; width: 100%; box-sizing: border-box; margin: 0 0 16px; padding: 12px 14px; color: #71311f; background: #fff5ef; border-left: 4px solid #71311f; font-weight: 600; line-height: 1.5; }
.j1-bordplade-form .j1-processing-picker .j1-product-card__image img { object-fit: contain; background: #fff; }
