:root {
    --wcpc-accent: #ff6e3f;
    --wcpc-accent-soft: rgba(255,110,63,0.18);
}
.wcpc-error {
    border: 2px solid var(--wcpc-accent);
    background: #fff7f4;
}
.wcpc-dimension-error {
    border: 2px solid var(--wcpc-accent);
    background: #fff7f4;
}

/* ================================
   BASE LAYOUT
================================ */
.wcpc-configurator {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
}
.wcpc-section {
    margin-bottom: 30px;
    padding: 18px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.wcpc-section h4 {
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 16px;
    color: #111;
}
/* FORCE configurator full width inside product layout */
.single-product .wcpc-configurator {
    width: 100%;
    max-width: 100%;
}

/* If theme uses flex/grid columns */
.single-product .summary .wcpc-configurator {
    flex: 1 1 100%;
}


/* ================================
   DIMENSIONS
================================ */
.wcpc-dimension-field {
    margin-bottom: 12px;
}

.wcpc-dimension-field input {
    width: 140px;
    padding: 6px;
}

/* ================================
   OPTIONS GRID (Shared)
================================ */
.wcpc-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* Override grid strictly for image swatches so they flow naturally */
.wcpc-options-grid.layout-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Text options: 2 per row */
.wcpc-text-option {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
}

/* .wcpc-text-option-label {
    width: 100%;
} */

/* ================================
   DEFAULT OPTION (CHECKBOXES)
================================ */
.wcpc-option {
    border: 1px solid #ccc;
    padding: 8px;
    width: 130px;
    cursor: pointer;
    text-align: center;
}

.wcpc-option input {
    margin-right: 6px;
}

/* ================================
   IMAGE SWATCH OPTIONS
================================ */
.wcpc-image-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

/* Hide native radio */
.wcpc-image-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Swatch circle */
.wcpc-swatch-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #d1d5db;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Selected state */
.wcpc-image-swatch input:checked + .wcpc-swatch-circle {
    border-color: var(--wcpc-accent);
    box-shadow: 0 0 0 3px var(--wcpc-accent-soft);
}
.wcpc-image-swatch:hover .wcpc-swatch-circle {
    border-color: var(--wcpc-accent);
}


/* ================================
   GLASSOPENINGS STYLE — TEXT OPTIONS
================================ */

.wcpc-text-option {
    position: relative;
    cursor: pointer;
}

.wcpc-text-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wcpc-text-option-label {
    min-width: 260px;
    min-height: 72px;
    padding: 14px 16px;
    border: 2px solid #cfd6dd;
    border-radius: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    transition: all 0.25s ease;
}

/* price line */
.wcpc-text-option-label small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

/* Hover */
.wcpc-text-option:hover .wcpc-text-option-label {
    border-color: var(--wcpc-accent);
}


/* Selected */
.wcpc-text-option input:checked + .wcpc-text-option-label {
    border-color: var(--wcpc-accent);
    box-shadow: 0 0 0 3px var(--wcpc-accent-soft);
    background: #fff7f4;
}

.wcpc-text-option-label small {
    color: var(--wcpc-accent);
}

/* ================================
   SELECTED OPTION LABEL
================================ */
.wcpc-selected-option-label {
    margin-top: 10px;
    font-weight: 500;
}

/* ================================
   SUMMARY
================================ */
.wcpc-summary {
    font-size: 20px;
    font-weight: 700;
    padding-top: 10px;
    color: var(--wcpc-accent);
}

@media (max-width: 768px) {
    .wcpc-text-option {
        flex: 0 0 100%;
    }
	.wcpc-options-grid {
        grid-template-columns: 1fr;
    }
}
