.iec-calculator {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.iec-calculator h2 {
    text-align: center;
    margin-bottom: 30px;
}

.iec-room {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.iec-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.iec-room-header h4 {
    margin: 0;
    color: #333;
}

.iec-remove-room {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s;
}

.iec-remove-room:hover {
    background: #cc0000;
}

.iec-room-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.iec-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}

.iec-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.iec-actions {
    margin-top: 20px;
    text-align: center;
}

.iec-calculator button.button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    transition: all 0.3s;
}

.iec-calculator button.primary {
    background-color: #0073aa;
    color: #fff;
}

.iec-calculator button.primary:hover {
    background-color: #005177;
}

.iec-calculator button.secondary {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
}

.iec-calculator button.secondary:hover {
    background-color: #ddd;
}

#iec-calculation-results {
    margin-top: 30px;
    padding: 20px;
    background: #e7f5ff;
    border: 1px solid #b3d1ff;
    border-radius: 6px;
}

#iec-results-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#iec-results-content th, #iec-results-content td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #d0e0f0;
}

.iec-room-result {
    background: #fff;
    padding: 15px;
    border: 1px solid #d0e0f0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.iec-room-result h4 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 2px solid #e7f5ff;
    padding-bottom: 5px;
}

.iec-total-result {
    background: #0073aa;
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.iec-total-result h3 {
    margin-top: 0;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.iec-total-result table {
    background: transparent;
}

.iec-total-result th, .iec-total-result td {
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff;
}

.iec-total-result tr:last-child td {
    border-bottom: none !important;
}

.iec-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iec-table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.iec-room-result .iec-table-thumb {
    border-color: #ddd;
}

.iec-cart-action {
    margin-top: 25px;
}

.dashicons {
    vertical-align: middle;
}
