:root {
	--site_border-radius: 12px;
}

#volant-section.hidden {
    display: none;
}

/* */
.config-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.config-option img {
    cursor: pointer;
    box-shadow: unset !important;
    width: 90px;
    border-radius: var(--site_border-radius);
}

.config-option span.radio-label,
.config-option .checkbox-label {
    width: 90px;
    word-break: break-all;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: var(--site_border-radius);
    padding: 10px;
}

.lightbox-close {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    margin: 0 auto;
}

.isabella-configurator-fields .config-step {
    margin-bottom: 30px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.color-option input[type="radio"] {
    display: none;
}

.color-option .color-swatch {
    width: 90px;
    height: 90px;
    border-radius: var(--site_border-radius);
    border: 2px solid transparent;
    transition: border-color 0.2s;
    margin-bottom: 5px;
}

.color-option input:checked + .color-swatch {
    border-color: var(--ast-global-color-0);
}

.color-option .color-label {
    font-size: 0.9em;
}

/** tabs **/
.fabric-tabs{
    margin-top:20px;
}

.tab-labels {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 15px;
    border: unset;
    border-bottom: none;
    background: #fff;
    cursor: pointer;
    text-transform: capitalize;
    font-weight: 400;
    color: var(--n-tabs-title-color);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active, .volant-radio-images, .radio-options, .checkbox-options, .color-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.volant-image img {
    width: 150px !important;
}

/* */
.dimensions-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.dimension-field {
    flex: 1 1 200px; /* each field takes at least 200px, then stretches */
}

.width-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.width-helper {
    font-size: 0.9em;
    margin-top: 5px;
}

.width-helper .min-max-link {
    color: var(--ast-global-color-0, #007cba); /* use your theme color or fallback */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.width-helper .min-max-link:hover {
    text-decoration: none;
}

/*  */
.width-helper.invalid .helper-text,
.width-helper.invalid .min-max-link {
    color: red;
}

.width-helper .warning-message {
    display: block;
    margin-top: 5px;
}

/* */
.radio-group {
    margin-bottom: 20px;
}

.radio-group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* */
.radio-option:hover .radio-control {
    border-color: #888;
}

/* Conditional field */
.crank-length-field {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #eee;
}

/* */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    margin-right: 12px;
    transition: background-color 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--ast-global-color-0, #007cba);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 1rem;
}

/* Tooltip container */
.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ccc;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    cursor: help;
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: normal;
    z-index: 100;
    pointer-events: none;
}

/* Optional: arrow */
.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Sensor checkboxes */
.sensor-group {
    margin-top: 20px;
}

.group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}


.checkbox-label {
    font-size: 0.95rem;
}

/** **/
/* Number fields */
.number-field {
    margin: 15px 0;
}

.number-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.number-field input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Rafter field (conditional) */
.rafter-field {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 3px solid #eee;
}

/*** Configurator Summary ***/
.config-summary-table table tr:nth-child(odd) {
    background: #eaeaea;
}

.config-summary-table table th, .config-summary-table table td {
    padding: 10px;
    vertical-align: middle;
    text-align: left;
    border: unset;
    font-weight: 400;
}