body {
    background: #f8f9fa;
}

.card {
    border-radius: 0.5rem;
}

.table {
    font-size: 0.95rem;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.size-item,
.feature-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
}

.size-option {
    display: none;
}

.size-item {
    display: grid;
    grid-template-columns: 1fr 64px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.feature-card {
    min-height: 100%;
    padding: 0.65rem;
}

.feature-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

@media (min-width: 1200px) {
    .feature-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ajax-alert:empty {
    display: none;
}

.products-table th,
.products-table td {
    white-space: nowrap;
}

.matrix-table th,
.matrix-table td {
    text-align: center;
    vertical-align: middle;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
    text-align: left;
    white-space: nowrap;
}

.matrix-zero {
    color: #adb5bd;
}

.matrix-total {
    font-weight: 700;
    background: #f8f9fa;
}

.matrix-family-header {
    background: #eef3f8;
    font-weight: 700;
}

.matrix-table .matrix-family-start {
    border-left: 3px solid #6c757d;
}

.matrix-table .matrix-family-end {
    border-right: 3px solid #6c757d;
}

.matrix-filter-disabled {
    opacity: 0.45;
}

.feature-count {
    font-size: 0.75rem;
}

.matrix-filter-group {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #fff;
}

.product-actions {
    white-space: nowrap;
}

#editProductModal .modal-body {
    background: #f8f9fa;
}

#editProductModal .feature-card,
#editProductModal .size-item {
    background: #fff;
}

.feature-category-filter {
    min-width: 220px;
}

.size-family-filter {
    min-width: 220px;
}

.order-summary-table th,
.order-summary-table td {
    text-align: center;
    vertical-align: middle;
}

.order-summary-table th:first-child,
.order-summary-table td:first-child {
    text-align: left;
    min-width: 180px;
}

.summary-color {
    text-transform: uppercase;
    font-weight: 600;
}

.summary-total {
    background: #f8f9fa;
    font-weight: 700;
}

.summary-zero {
    color: #adb5bd;
}

.delivery-toggle {
    width: 100%;
    min-width: 2.25rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    padding: 0.2rem 0.35rem;
    cursor: pointer;
}

.delivery-toggle:hover,
.delivery-toggle:focus {
    background: #fff3cd;
    outline: 2px solid #ffc107;
    outline-offset: -2px;
}

.delivery-confirmed {
    background: #d1e7dd !important;
    color: #0f5132;
}

.color-swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    vertical-align: middle;
}

.color-swatch-lg {
    width: 38px;
    height: 38px;
    border-radius: 6px;
}

.color-swatch-empty {
    background: repeating-linear-gradient(
        45deg,
        #f8f9fa,
        #f8f9fa 4px,
        #e9ecef 4px,
        #e9ecef 8px
    );
}

.color-select-menu {
    display: none;
    max-height: 260px;
    overflow-y: auto;
}

.color-picker-widget.is-open .color-select-menu {
    display: block;
}

.color-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.color-select-option-main {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
