.seat-configurator-widget {
    margin-top: 24px;
}

.seat-configurator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 28px;
    align-items: start;
}

.seat-configurator__canvas-wrap {
    position: relative;
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #e4e7ec;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.seat-configurator__canvas {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    margin-top: -6px;
}


.seat-configurator__error {
    position: absolute;
    inset: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #b42318;
    font-weight: 600;
    text-align: center;
    padding: 16px;
    border-radius: 4px;
}

.seat-configurator__controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 4px;
    border: 1px solid #e4e7ec;
    background: #fff;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.seat-configurator__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seat-configurator__label {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.seat-configurator__palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seat-configurator__swatch {
    width: 64px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid transparent;
    background: var(--swatch-color);
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.seat-configurator__swatch:hover {
    transform: translateY(-1px);
}

.seat-configurator__swatch.is-active {
    border-color: #a81700;
    box-shadow: none;
}

.seat-configurator__debug {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.seat-configurator__reset {
    align-self: flex-start;
    font-size: 14px;
}

@media (max-width: 991px) {
    .seat-configurator {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .seat-configurator__controls {
        order: -1;
        padding: 14px;
    }

    .seat-configurator__palette {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .seat-configurator__swatch {
        flex: 0 0 56px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .seat-configurator__controls {
        border-radius: 4px;
    }

    .seat-configurator__canvas-wrap {
        border-radius: 4px;
        padding: 12px;
    }
}
