/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 .sinalite-product-options {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.sinalite-option {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.calculate-price {
    display: none;
}

.price-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    order: 2;
}

.calculated-price {
    font-size: 2em;
    font-weight: bold;
    color: #dc3545;
    text-align: center;
    margin-top: 20px;
}

/* Ensure proper ordering */
.sinalite-product-options {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.option-group {
    margin-bottom: 15px;
}

.custom-product-price {
    width: 100%;
    font-size: 30px;
    font-weight: bold;
    color: #ff1c6a;
    text-align: right;
    padding-bottom: 20px;
    margin-top: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    #shipping_method .woocommerce-Price-amount {
        float: none;
        display: block;
        margin-left: 25px;
    }
}

.custom-product-price {
    width: 100%;
    font-size: 30px;
    font-weight: bold;
    color: #ff1c6a;
    text-align: right;
    padding-bottom: 20px;
}
p.price.owcpv_change_price {
    display: none;
}
button.single_add_to_cart_button.button.alt {
    width: 100%;
}

/* Loader overlay styles */
.sinalite-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sinalite-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff1c6a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add styles for error state */
.sinalite-option.error {
    border: 2px solid #ff0000;
    background-color: #fff2f2;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

/* Add error message styles */
.option-group .error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    padding: 5px;
    background-color: #fff2f2;
    border-radius: 3px;
}

/* Style for disabled options */
.sinalite-option option[disabled] {
    background-color: #ffebeb;
    color: #999;
}

.sinalite-option.error:focus {
    border-color: #ff0000;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
}

.sinalite-shipping-calculator {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.calculator-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    border-radius: 4px 4px 0 0;
}

.calculator-header h4 {
    margin: 0;
    font-size: 16px;
}

.toggle-calculator {
    width: 20px;
    height: 20px;
    position: relative;
}

.toggle-calculator::before,
.toggle-calculator::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease;
}

.toggle-calculator::before {
    width: 2px;
    height: 12px;
    top: 4px;
    left: 9px;
}

.toggle-calculator::after {
    width: 12px;
    height: 2px;
    top: 9px;
    left: 4px;
}

.calculator-header.active .toggle-calculator::before {
    transform: rotate(90deg);
}

.calculator-content {
    padding: 20px;
    position: relative;
}

/* Loader styles */
.calculator-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.calculator-loader {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: calc-spin 1s linear infinite;
}

@keyframes calc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Existing styles... */
.shipping-calculator-form .form-row {
    margin-bottom: 15px;
}

.shipping-calculator-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.shipping-calculator-form select,
.shipping-calculator-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shipping-calculator-form button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.shipping-calculator-form button:hover {
    background-color: #444;
}

.shipping-rates-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.shipping-rates-list li {
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-rates-list li:hover {
    background-color: #f9f9f9;
}

.shipping-calculator-error {
    color: #dc3545;
    padding: 10px;
    margin-top: 10px;
    background-color: #fff2f2;
    border-radius: 4px;
    display: none;
}

.sinalite-shipping-calculator {
    width: 100%;
}

.shipping-estimate-note {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shipping-estimate-note .note-icon {
    font-size: 20px;
    margin-right: 10px;
}

.shipping-estimate-note .note-text {
    color: #2c3338;
    font-size: 15px;
    font-weight: 500;
}


.options_error {
    display: none;
    background: #ff1c6a;
    padding: 15px;
    color: #ffffff;
    border-radius: 12px;
}

label.active {
    color: #ff0068 !important;
}
div#order_review {
    padding-inline: 10px;
}
label span.woocommerce-Price-amount.amount {
    font-weight: bold;
}
.options_error {
    width: 100%;
    text-align: center;
}

/* For browsers that don't support emoji */
@supports not (font-family: 'Segoe UI Emoji') {
    .shipping-estimate-note .note-icon::before {
        content: 'ℹ️';
    }
}
