.hcl-wrapper { margin-bottom: 25px; }

/* Length section */
.hcl-length-section { margin-bottom: 20px; }
.hcl-section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 2px;
}
.hcl-section-desc {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 10px;
}
.hcl-length-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hcl-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #C5A352;
    background: #fff;
    color: #C5A352;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.hcl-btn:hover {
    background: #C5A352;
    color: #fff;
}
.hcl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.hcl-btn:disabled:hover {
    background: #fff;
    color: #C5A352;
}
.hcl-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
input.hcl-length-input {
    width: 85px !important;
    max-width: 85px !important;
    min-width: 0 !important;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    text-align: center;
    padding: 0 24px 0 4px;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.hcl-length-input::-webkit-outer-spin-button,
.hcl-length-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hcl-length-input:focus { outline: none; border-color: #C5A352; }
.hcl-unit {
    position: absolute;
    right: 6px;
    font-size: 0.85em;
    color: #888;
    pointer-events: none;
}
.hcl-length-hint {
    font-size: 0.8em;
    color: #999;
    font-style: italic;
    margin: 6px 0 0;
}
.hcl-price-per-meter-inline {
    font-weight: 400;
    font-size: 0.9em;
    text-transform: none;
    letter-spacing: normal;
    color: #666;
}
.hcl-price-per-meter-value {
    font-weight: 600;
    color: #333;
}

/* Checkboxes */
.hcl-checkbox-item { margin-bottom: 0; }
.hcl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 0.95em;
}
.hcl-checkbox-input { margin: 0; }
.hcl-price-add { color: #333; font-weight: 500; }

/* Universal triggered group indent */
.hcl-triggered-group { padding-left: 28px; }

/* Triggered checkboxes */
.hcl-checkbox-triggered { margin: 4px 0 8px; }

/* Dropdowns */
.hcl-dropdown-wrap { margin-bottom: 15px; }
.hcl-dropdown-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hcl-required { color: #dc2626; }
.hcl-dropdown-select {
    width: auto;
    max-width: 100%;
    padding: 8px 2.5em 8px 10px;
    font-size: 0.95em;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 6px;
}
.hcl-dropdown-select:focus { outline: none; border-color: #C5A352; }

/* Triggered dropdowns */
.hcl-dropdown-triggered { margin: 4px 0 8px; }

/* Textfields */
.hcl-textfield-wrap { margin-bottom: 15px; }
.hcl-textfield-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hcl-textfield-input-wrap {
    position: relative;
}
textarea.hcl-textfield-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 10px;
    font-size: 0.95em;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    height: 5em;
    min-height: 5em;
}
.hcl-textfield-triggered { margin: 10px 0 15px; }
.hcl-textfield-input:focus { outline: none; border-color: #C5A352; }
.hcl-char-counter {
    display: block;
    font-size: 0.8em;
    color: #999;
    text-align: right;
    max-width: 300px;
    margin-top: 2px;
}
.hcl-validation-error { border-color: #dc2626 !important; }
.hcl-validation-msg { color: #dc2626; font-size: 0.85em; margin: 0 0 8px; }

/* Triggered length section */
.hcl-length-triggered { margin: 10px 0 15px; }

/* Switch distance section */
.hcl-switch-distance-section { margin-bottom: 20px; }
.hcl-switch-distance-triggered { margin: 10px 0 15px; }

/* Price summary */
.hcl-price-summary {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}
.hcl-summary-price { color: #C5A352; }
.hcl-summary-length {
    font-size: 0.85em;
    font-weight: 400;
    color: #666;
    margin-left: 8px;
}

/* Hide linked attribute rows */
tr.hcl-attr-linked-hidden { display: none !important; }

/* Hide original WooCommerce variation description (moved into swatch placeholder) */
.woocommerce-variation-description { display: none !important; }

/* Attribute swatch placeholders */
.hcl-attribute-swatch-placeholder { margin: 15px 0; }
.hcl-attribute-swatch-placeholder .hcl-validation-error { outline: 2px solid #dc2626; border-radius: 4px; }

/* Selected color swatch — restyle CommerceKit's ::before */
.hcl-attribute-swatch-placeholder .cgkit-attribute-swatch.cgkit-color > button.cgkit-swatch-selected:before {
    border: 3px solid #a8882e !important;
    border-color: #a8882e !important;
    border-width: 3px !important;
}
/* Selected image swatch — outline with gap */
.hcl-attribute-swatch-placeholder .cgkit-image > button.cgkit-swatch-selected:before {
    border-color: transparent !important;
}
.hcl-attribute-swatch-placeholder .cgkit-image > button.cgkit-swatch-selected {
    outline: 4px solid #a8882e !important;
    outline-offset: 2px;
}
/* Selected button swatch */
.hcl-attribute-swatch-placeholder .cgkit-button > button.cgkit-swatch-selected {
    outline: 4px solid #a8882e !important;
    outline-offset: 2px;
}

/* Variation description between tooltip and swatch header */
.hcl-attribute-swatch-placeholder .hcl-variation-desc {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.5;
}

/* Cloned swatch header */
.hcl-swatch-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Swatch image tooltip bubble (desktop + mobile) */
.hcl-swatch-tooltip {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    margin-bottom: 0;
    padding: 0 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease, margin-bottom 0.35s ease;
    cursor: pointer;
    max-width: 320px !important;
}
.hcl-swatch-tooltip--visible {
    opacity: 1;
    max-height: 2000px;
    padding: 8px;
    margin-bottom: 12px;
}
.hcl-swatch-tooltip--overflow {
    overflow: visible;
}
.hcl-swatch-tooltip__img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    border-radius: 4px;
    z-index: 2;
}
.hcl-swatch-tooltip__img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
}
/* Expand icon — desktop only */
.hcl-swatch-tooltip__expand {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    color: #fff;
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}
.hcl-swatch-tooltip__img-wrap:hover .hcl-swatch-tooltip__expand {
    opacity: 1;
    transform: scale(1.15);
}
.hcl-swatch-tooltip__arrow {
    position: absolute;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    transform: rotate(45deg);
    z-index: 1;
    /* left is set dynamically via JS */
}
@media (max-width: 767px) {
    .hcl-swatch-tooltip {
        max-width: 100% !important;
    }
}

/* Desktop lightbox */
body.hcl-lightbox-open {
    overflow: hidden;
}
.hcl-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.hcl-lightbox--visible {
    opacity: 1;
}
.hcl-lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.hcl-lightbox__content {
    position: relative;
    max-width: 80vw;
    max-height: 85vh;
    cursor: default;
}
.hcl-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}
/* Lightbox navigation arrows — inside the image area */
.hcl-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.2s ease, background 0.2s ease;
    padding: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hcl-lightbox__nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}
.hcl-lightbox__nav svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.hcl-lightbox__nav--prev {
    left: 12px;
}
.hcl-lightbox__nav--next {
    right: 12px;
}
/* Lightbox attribute value label */
.hcl-lightbox__label-wrap {
    text-align: center;
    margin-top: 14px;
}
.hcl-lightbox__label {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Text displays */
.hcl-text-display { margin-bottom: 15px; }
.hcl-text-display-content { font-size: 0.95em; color: #333; line-height: 1.5; }

/* Flex wrapper: swatches + dimensies naast elkaar */
.hcl-swatch-dims-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dimensie weergave rechts naast de swatches */
.hcl-dimensions-display {
    flex-shrink: 0;
}
.hcl-dims-table {
    border-collapse: collapse;
    border-spacing: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    line-height: 1 !important;
}
.hcl-dims-table td {
    padding: 0 16px 0 0 !important;
    border: none !important;
    background: none !important;
    vertical-align: top;
    line-height: 1 !important;
}
.hcl-dims-table td:last-child {
    padding-right: 0 !important;
}
.hcl-dims-labels td {
    font-size: 0.72em;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding-bottom: 2px !important;
}
.hcl-dims-values td {
    font-size: 0.875em;
    color: #444;
}
.hcl-text-display-triggered { margin: 10px 0 15px; }

/* Kortingsbadge onder swatch */
.hcl-discount-badge {
    display: block;
    text-align: center;
    margin-top: 8px;
    line-height: 1;
}
.hcl-discount-badge span {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    background: #c5a352;
    border-radius: 20px;
    padding: 3px 7px;
    line-height: 1.3;
}

/* Verwijder CommerceKit zwarte knop-selectie in onze placeholders — gouden lijn volstaat */
.hcl-attribute-swatch-placeholder .cgkit-button .cgkit-swatch.cgkit-swatch-selected,
.hcl-attribute-swatch-placeholder .cgkit-button .cgkit-swatch.cgkit-swatch-selected:hover {
    background-color: transparent !important;
    color: inherit !important;
}

/* Button swatches: perfect hoekig + zelfde li-margin als image swatches (8px i.p.v. 5px) */
.hcl-attribute-swatch-placeholder .cgkit-button button.cgkit-swatch {
    border-radius: 0 !important;
}
.hcl-attribute-swatch-placeholder li.cgkit-button {
    margin: 0 8px 8px 0 !important;
}
