.csr-selector {
    border: 1px solid #d7dde6;
    border-radius: 6px;
    margin: 22px 0;
    padding: 16px;
    background: #fff;
    clear: both;
}

.csr-heading {
    margin-bottom: 12px;
}

.csr-heading h3 {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.25;
}

.csr-heading p {
    margin: 0;
    color: #4b5563;
}

.csr-type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 14px;
    font-size: 13px;
}

.csr-type-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.csr-type-item i {
    width: 28px;
    height: 14px;
    display: inline-block;
    border: 1px solid #94a3b8;
}

.csr-grid {
    display: grid;
    grid-template-columns: repeat(var(--csr-cols), minmax(54px, 1fr));
    gap: 3px;
    max-width: 820px;
    width: 100%;
    margin: 10px 0;
}

.csr-grid-cell {
    min-height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    box-sizing: border-box;
}

.csr-stand {
    background: var(--csr-stand-color, #6f8fb8) !important;
	border: 1px solid rgba(15, 23, 42, 0.38) !important;
    color: #fff !important;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    transition: box-shadow 120ms ease, transform 120ms ease, filter 120ms ease;
}

.csr-stand:hover,
.csr-stand:focus {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.22);
    outline: none;
}

.csr-stand.is-selected {
    box-shadow: 0 0 0 3px #111827 inset;
}

.csr-stand.is-unavailable,
.csr-stand:disabled {
    background: #cbd5e1 !important;
    color: #64748b;
    cursor: not-allowed;
    filter: grayscale(1);
}

.csr-grid-hallway {
    background: #fff;
}

.csr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 8px;
    color: #475569;
    font-size: 13px;
}

.csr-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.csr-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #94a3b8;
    display: inline-block;
}

.csr-swatch.available {
    background: #6f8fb8;
}

.csr-swatch.selected {
    background: #111827;
}

.csr-swatch.unavailable {
    background: #cbd5e1;
}

.csr-selection-summary {
    min-height: 22px;
    color: #1f2937;
    font-weight: 600;
}

.csr-selection-summary.is-error {
    color: #b91c1c;
}

@media (max-width: 640px) {
    .csr-selector {
        padding: 12px;
    }

    .csr-grid {
        grid-template-columns: repeat(var(--csr-cols), minmax(40px, 1fr));
        gap: 2px;
    }

    .csr-grid-cell {
        min-height: 24px;
    }

    .csr-stand {
        font-size: 10px;
    }
}
