/* === HIDE DEFAULT WC === */
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart,
.variations_form,
.quantity,
.product form.cart {
    display: none !important;
}

/* === Wrapper === */
#ilyes-ec-wrapper {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 28px;
    max-width: 640px;
    margin: 30px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    font-family: "Inter", "Segoe UI", sans-serif;
    color: #333;
}

/* === Field === */
.ilyes-ec-field {
    margin-bottom: 22px;
}

.ilyes-ec-field label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: block;
}

.ilyes-ec-field input,
.ilyes-ec-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fafafa;
    font-size: 15px;
    transition: border-color 0.3s, background 0.3s;
}

.ilyes-ec-field input:focus,
.ilyes-ec-field select:focus {
    border-color: #007bff;
    background: #fff;
    outline: none;
}

/* === Swatch Attributes === */
.ilyes-ec-attribute-group {
    margin-bottom: 20px;
}

.ilyes-ec-attribute-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.ilyes-ec-swatch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between swatches */
}

.ilyes-ec-swatch {
    padding: 10px 16px;
    margin-right: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.ilyes-ec-swatch:hover {
    background: #eaf3ff;
    border-color: #007bff;
}

.ilyes-ec-swatch.selected {
    border-color: #0056b3;
    box-shadow: #000000 0px 0px 5px 0px;
}

/* === Shipping Options === */
#ilyes-ec-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ilyes-ec-shipping-option {
    display: flex;
    align-items: center;
    background: #f1f5ff;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.ilyes-ec-shipping-option:hover {
    background: #e6efff;
    border-color: #99c2ff;
}

.hided-product-name1{
    display: none; !important
}

.ilyes-ec-shipping-option input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

/* === Submit Button === */
#ilyes_ec_submit {
    background-color: #ff5100;
    color: #fff;
    padding: 16px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

@keyframes ilyes-shake-loop {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-6px); }
    100% { transform: translateX(0); }
}

#ilyes_ec_submit.attention {
    animation: ilyes-shake-loop 2s infinite;
}


/* === Message Box === */
.ilyes-ec-message {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.ilyes-ec-message.success {
    background-color: #d1f5d3;
    color: #276b2b;
    border: 1px solid #a3e4a7;
}

.ilyes-ec-message.error {
    background-color: #fbdada;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* === Order Summary === */
.ilyes-ec-order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 28px;
}

.ilyes-ec-order-summary h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.ilyes-ec-order-summary p {
    margin: 6px 0;
    font-size: 15px;
    color: #444;
}

/* === Responsive === */
@media (max-width: 500px) {
    #ilyes-ec-wrapper {
        padding: 18px;
    }

    #ilyes_ec_submit {
        font-size: 15px;
    }

    .ilyes-ec-swatch-options {
        gap: 8px;
    }

    .ilyes-ec-swatch {
        padding: 8px 12px;
        font-size: 13px;
    }
}

#ilyes-ec-wrapper {
    direction: rtl;
    text-align: right;
}

.ilyes-ec-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ilyes-ec-field input,
.ilyes-ec-field select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    text-align: right;
}

