/* Measurement-Based Pricing Calculator - Frontend Styles */
.wpc_calc_half_ln{
    width: 50%;
}

.wpc_calc_three_ln{
    width: 60%;
}

.wpc_calc_input{
    width: 100%;
    box-shadow: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.wpc_calc_input:focus{
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wpc_calc_input_fields{
    width: 170px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
}

.wpc_calc_weight_unit_input{
    min-width: 170px !important;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
}

.wpc_align_center{
    text-align: center;
}

.text_capitalize{
    text-transform: capitalize;
}

.wpc_calc_input_field{
    width: 100%;
    box-shadow: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.wpc_calc_input_field:focus{
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.red{
    color: #e74c3c;
    font-weight: 600;
}

.wpc_calc_area_message_tr{
    border-top: 2px solid #667eea;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 15px 0;
}

.wpc_calc_price_detail{
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wpc_calc_sp_tb{
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wpc_calc_sp_div{
    width: 100%;
    overflow-y: auto;
    margin-bottom: 25px;
    border-radius: 8px;
}

.wpc_calc_sp_tb th{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
}

.wpc_calc_sp_tb td{
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.wpc_calc_sp_tb tr:hover{
    background-color: #f8f9fa;
}

.wpc_calc_sp_tb tr:last-child td{
    border-bottom: none;
}

/* Button styling */
.wpc_calc_calculate_btn,
.wpc_calc_add_to_cart_btn{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpc_calc_calculate_btn:hover,
.wpc_calc_add_to_cart_btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.wpc_calc_calculate_btn:active,
.wpc_calc_add_to_cart_btn:active{
    transform: translateY(0);
}

/* Label styling */
.wpc_calc_label{
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* Result display */
.wpc_calc_result{
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.wpc_calc_result_title{
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.wpc_calc_result_price{
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin: 10px 0;
}

/* Measurement input section */
.wpc_calc_measurement_section{
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.wpc_calc_section_title{
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Info messages */
.wpc_calc_info{
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #1565c0;
    font-size: 14px;
}

.wpc_calc_warning{
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

.wpc_calc_error{
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #721c24;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wpc_calc_input_fields,
    .wpc_calc_weight_unit_input{
        width: 100%;
        min-width: 100% !important;
    }
    
    .wpc_calc_half_ln,
    .wpc_calc_three_ln{
        width: 100%;
    }
    
    .wpc_calc_calculate_btn,
    .wpc_calc_add_to_cart_btn{
        width: 100%;
        padding: 15px;
    }
}

/* Loading state */
.wpc_calc_loading{
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wpc_calc_loading::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wpc_calc_spin 0.8s linear infinite;
}

@keyframes wpc_calc_spin{
    to { transform: rotate(360deg); }
}
