/* ========================================
   Custom Sizing - Module Styles
   ======================================== */

/* Toggle field */
.cs-toggle-field {
    padding: 10px 0;
    margin-bottom: 5px;
}
.cs-toggle-field .control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cs-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1979c3;
    flex-shrink: 0;
}
.cs-label {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #1979c3;
    user-select: none;
}

/* Dimension inputs */
.cs-dimensions {
    padding: 8px 0 5px;
}
.cs-dim-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.cs-dim-row .cs-dim-field {
    flex: 1;
    margin-bottom: 0;
}
.cs-dimensions .cs-dim-field .label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}
.cs-dimensions .cs-dim-field .input-text {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
    transition: border-color .2s;
}
.cs-dimensions .cs-dim-field .input-text:focus {
    border-color: #1979c3;
    outline: none;
}
.cs-dim-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* Price display */
.cs-price-display {
    padding: 10px 14px;
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
    border: 1px solid #b3d7f0;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.cs-price-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.cs-price-value {
    font-weight: 700;
    font-size: 20px;
    color: #1979c3;
}
.cs-price-area {
    font-size: 12px;
    color: #888;
}

/* Error display */
.cs-error {
    padding: 8px 12px;
    background: #fdf0d5;
    border: 1px solid #f0c36d;
    border-radius: 8px;
    color: #6f4400;
    font-size: 13px;
    margin: 8px 0;
}

/* Tier table */
.cs-tiers {
    margin: 12px 0 5px;
}
.cs-tiers-title {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.cs-tiers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.cs-tiers-table thead th {
    background: #f5f7fa;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}
.cs-tiers-table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid #eee;
}
.cs-tiers-table tbody tr:last-child td {
    border-bottom: none;
}
.cs-tiers-table tbody tr.active-tier {
    background: #e8f4fd;
    font-weight: 600;
}
.cs-tiers-table tbody tr.active-tier td:first-child {
    position: relative;
}
.cs-tiers-table tbody tr.active-tier td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1979c3;
}
.cs-tiers-table tbody tr:hover {
    background: #f5f7fa;
}
