/* --- MODERN & RESPONSIVE CALCULATOR STYLES (THEME INHERITED & HIGHLY COMPATIBLE) --- */

/* --- 1. Global Styles --- */
.ciuc-calculator {
    border: 1px solid #dce4e9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* --- 2. Step-by-Step Sections --- */
.ciuc-step {
    padding: 20px 25px;
    border-bottom: 1px solid #dce4e9;
}
.ciuc-step:last-of-type {
    border-bottom: none;
}
.ciuc-step-title {
    margin: 0 0 15px 0;
}
.ciuc-step-desc {
    margin: -10px 0 15px;
}

/* --- 3. Option Buttons (General) --- */
.ciuc-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ciuc-option-btn {
    flex-grow: 1;
    flex-basis: 150px;
    padding: 12px;
    border: 2px solid #dce4e9;
    background: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    text-align: center;
}
.ciuc-option-btn:hover {
    border-color: #0073e6;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ciuc-option-btn.active {
    background-color: #e6f2ff;
    border-color: #0073e6;
    box-shadow: none;
}
.ciuc-option-btn:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}
.ciuc-option-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ciuc-option-icon {
    height: 36px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6b7b;
}
.ciuc-option-btn.active .ciuc-option-icon {
    color: #0073e6;
}
.ciuc-option-icon svg {
    height: 100%;
    width: auto;
}
.ciuc-option-photo {
    height: 50px;
    width: 100%;
    max-width: 120px;
    border-radius: 6px;
    background-color: #e9e9e9;
    background-image: linear-gradient(45deg, #f7f7f7 25%, transparent 25%), linear-gradient(-45deg, #f7f7f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f7f7f7 75%), linear-gradient(-45deg, transparent 75%, #f7f7f7 75%);
    background-size: 20px 20px;
    border: 1px solid #dce4e9;
}

.ciuc-dynamic-desc {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background-color: #f7f9fb;
    border-radius: 8px;
    border: 1px solid #dce4e9;
}

/* --- 4. Input Fields --- */
.ciuc-dimension-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.ciuc-dim-input {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ciuc-dim-input input[type="number"],
.ciuc-dim-input select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dce4e9;
    background-color: #ffffff;
    transition: border-color 0.2s;
}
.ciuc-dim-input input[type="number"]:focus,
.ciuc-dim-input select:focus {
    border-color: #0073e6;
    outline: none;
}
.ciuc-dim-input input[type="number"] {
    width: 80px;
}

/* --- 5. Summary & Price Section --- */
.ciuc-summary-wrapper {
    margin: 0;
    padding: 25px;
    background: #f7f9fb;
    border-top: 1px solid #dce4e9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
#ciuc-summary {
    flex: 1 1 55%;
    min-width: 280px;
}
.ciuc-summary-title {
    margin: 0 0 10px 0;
}
#ciuc-summary-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#ciuc-summary-details li {
    padding: 4px 0;
}
#ciuc-summary-weight {
    margin-top: 10px;
}

#ciuc-price-section {
    text-align: right;
    flex: 1 1 40%;
    min-width: 220px;
}
#ciuc-error-message {
    color: #e74c3c;
    min-height: 24px;
    margin-bottom: 5px;
}
#ciuc-price-display {
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: bold;
}
#ciuc-add-to-cart-btn {
    width: 100%;
}

/* --- 6. Responsive Design --- */
@media (max-width: 768px) {
    .ciuc-step {
        padding: 20px;
    }
    .ciuc-option-btn {
        flex-basis: calc(50% - 6px);
    }
    .ciuc-summary-wrapper {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    #ciuc-price-section {
        text-align: left;
        border-bottom: 1px solid #dce4e9;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .ciuc-option-btn {
        flex-basis: 100%;
    }
    .ciuc-dimension-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}
