
    
    /* التنسيق العام */
    .wooecom-settings-wrap {
        max-width: 1400px;
        margin: 2rem auto;
        padding: 2rem;
        background: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    }

    .main-title {
        color: #2c3e50;
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 3px solid #3498db;
    }

    .master-card {
        background: white;
        border-radius: 10px;
        padding: 2rem;
        box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    }

    /* الإعدادات العامة */
    .global-settings {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        border-bottom: 2px solid #eee;
    }

    .section-title {
        color: #3498db;
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .setting-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
    }

    .price-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .modern-input {
        padding: 0.8rem 1.2rem;
        border: 2px solid #bdc3c7;
        border-radius: 8px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        width: 200px;
    }

    .modern-input:focus {
        border-color: #3498db;
        box-shadow: 0 0 8px rgba(52,152,219,0.2);
        outline: none;
    }

    .action-btn {
        padding: 0.8rem 1.5rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        transition: transform 0.2s ease;
    }

    .action-btn.success {
        background: #27ae60;
        color: white;
    }

    .action-btn:hover {
        transform: translateY(-2px);
    }

    /* تصميم الولایات */
    .wilayas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        max-height: 70vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .wilaya-card {
        background: #fff;
        border: 2px solid #ecf0f1;
        border-radius: 10px;
        padding: 1.2rem;
        transition: all 0.3s ease;
    }

    .wilaya-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .wilaya-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .wilaya-name {
        color: #2c3e50;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }

    .price-input {
        width: 100%;
        padding: 0.8rem;
        border: 2px solid #bdc3c7;
        border-radius: 8px;
        font-size: 1.1rem;
        text-align: center;
    }

    /* التبديلات */
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #e74c3c;
        transition: .4s;
        border-radius: 34px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: #27ae60;
    }

    input:checked + .slider:before {
        transform: translateX(24px);
    }

    /* زر الحفظ الضخم */
    .save-footer {
        margin-top: 3rem;
        text-align: center;
    }

    .mega-save-btn {
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white !important;
        padding: 1.5rem 3rem;
        font-size: 1.4rem;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(52,152,219,0.3);
    }

    .mega-save-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(52,152,219,0.4);
    }

    .mega-save-btn .dashicons {
        font-size: 1.6rem;
        margin-right: 0.5rem;
    }
 /* أنماط النموذج الرئيسي */
.wooecom-order-form {
    border: 1px solid #ddd;
    padding: 30px;
    margin-top: 20px;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.wooecom-order-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.wooecom-order-form h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    animation: moveUpDown 3s infinite alternate, colorChange 5s infinite; /* تحريك النص وتلوينه */
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

@keyframes colorChange {
    0% {
        color: #ff5722; /* لون برتقالي */
    }
    25% {
        color: #4CAF50; /* لون أخضر */
    }
    50% {
        color: #2196F3; /* لون أزرق */
    }
    75% {
        color: #9C27B0; /* لون بنفسجي */
    }
    100% {
        color: #ff5722; /* لون برتقالي */
    }
}

.wooecom-order-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}
.wooecom-order-form input[type="text"],
.wooecom-order-form input[type="tel"],
.wooecom-order-form input[type="number"],
.wooecom-order-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
}

.delivery-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 6px 0 10px;
}

.delivery-type .delivery-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.delivery-type .delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-type .delivery-option span {
    font-weight: 700;
    font-size: 13px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

.delivery-type .delivery-option:has(input[type="radio"]:checked) {
    border-color: #0075be;
    background: rgba(0, 117, 190, 0.08);
    box-shadow: 0 6px 18px rgba(0, 117, 190, 0.15);
}

.delivery-type .delivery-option:has(input[type="radio"]:checked) span {
    color: #005f99;
}

.delivery-type .delivery-option:hover {
    border-color: #0075be;
}

@media (max-width: 768px) {
    .delivery-type {
        grid-template-columns: 1fr;
    }
}
.wooecom-order-form input[type="text"]:focus,
.wooecom-order-form input[type="tel"]:focus,
.wooecom-order-form input[type="number"]:focus,
.wooecom-order-form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    outline: none;
}

.wooecom-order-form select {
    padding: 12px;
    font-size: 16px;
    appearance: none; /* لإزالة السهم الافتراضي للمتصفح */
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') no-repeat left 12px center / 8px auto; /* نقل السهم إلى اليسار */
    background-color: #fff;
    white-space: nowrap; /* ضبط النص ليكون في سطر واحد فقط */
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة نقاط القطع (...) للنص الزائد */
    padding-left: 30px; /* إضافة مساحة للسهم على اليسار */
}
.wooecom-order-form select:focus {
    white-space: normal; /* إعادة النص إلى وضعه الطبيعي عند التركيز */
    overflow: visible; /* إظهار النص الكامل عند التركيز */
    text-overflow: clip; /* إزالة النقاط الزائدة عند التركيز */
}
.wooecom-order-form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    animation: moveLeftRight 2s infinite alternate; /* تحريك الزر يمينًا ويسارًا */
    position: relative;
}

@keyframes moveLeftRight {
    0% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(10px);
    }
}

.wooecom-order-form button[type="submit"]:hover {
    background-color: #45a049;
    transform: scale(1.02);
    animation: none; /* إيقاف التحريك عند التحويم */
}

/* أنماط زر التحميل */
.wooecom-order-form button[type="submit"].loading {
    pointer-events: none; /* تعطيل النقر أثناء التحميل */
}

.wooecom-order-form button[type="submit"].loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite; /* دوران الدائرة */
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* أنماط زر Sticky */
.wooecom-sticky-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0075be !important;
    color: white !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 117, 190, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: none;
    display: none;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-family: 'Arial Arabic', sans-serif;
}
.wooecom-sticky-btn:hover {
    background: #005f99 !important;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 117, 190, 0.6);
}
@media (max-width: 768px) {
    .wooecom-sticky-btn {
        font-size: 18px;
        padding: 12px 30px;
        bottom: 20px;
    }
}
/* رسائل الأخطاء */
.error-message {
    color: red;
    font-size: 12px;
    margin: 0;
    display: none;
}
.input-error {
    border-color: red !important;
}
/* أنماط رسالة الخطأ */
#wooecom-order-error {
    color: red;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffe6e6;
    border: 1px solid red;
    border-radius: 5px;
    display: none; /* مخفي بشكل افتراضي */
}

/* أنماط قائمة الملخص */
.wooecom-order-summary {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}
.wooecom-order-summary h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}
.wooecom-order-summary p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}
.wooecom-order-summary .total-price {
    font-weight: bold;
    color: #4CAF50;
}







.wooecom-shipping-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wooecom-main-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

/* الإعدادات العامة */
.global-settings-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.global-setting {
    margin-bottom: 1.5rem;
}

.global-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #34495e;
    cursor: pointer;
}

.global-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 1rem;
}

.global-button {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
}

/* قائمة الولايات */
.wilayas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wilaya-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.2rem;
}

.wilaya-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wilaya-name {
    margin: 0;
    color: #2980b9;
    font-size: 1.1em;
}

.wilaya-price-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    color: #27ae60;
    font-weight: 600;
}

/* سويتشات التبديل */
.wilaya-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.wilaya-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #27ae60;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* زر الحفظ */
.save-container {
    text-align: center;
    margin-top: 2rem;
}

.save-container .button {
    padding: 1rem 3rem;
    font-size: 1.2em;
    border-radius: 8px;
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}

/* التجاوبية */
@media (max-width: 768px) {
    .wilayas-list {
        grid-template-columns: 1fr;
    }
}
.wilaya-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}

.free-shipping-label {
color: #27ae60;
font-size: 0.9em;
font-weight: 600;
}

/* منع ظهور الأسهم في حقول الأرقام */
/*
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type="number"] {
-moz-appearance: textfield;
}
*/
.wooecom-main-title {
    color: #2c3e50;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.global-setting {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.global-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #34495e;
    cursor: pointer;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
}

.global-label input {
    opacity: 0;
    position: absolute;
}

.global-label input:checked ~ .checkmark {
    background-color: #27ae60;
}

.global-label input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* تنسيق عام للعنصر */
.free-shipping-toggle {
background: #f8f9fa;
padding: 1.5rem;
border-radius: 8px;
margin-bottom: 2rem;
border: 1px solid #e0e0e0;
}

.global-label {
display: flex;
align-items: center;
gap: 1rem;
cursor: pointer;
}

.custom-checkbox {
display: inline-block;
width: 24px;
height: 24px;
border: 2px solid #3498db;
border-radius: 6px;
position: relative;
transition: all 0.3s;
}

.custom-checkbox::after {
content: "✓";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
opacity: 0;
transition: opacity 0.3s;
}

input[type="checkbox"]:checked + .custom-checkbox {
background: #3498db;
border-color: #3498db;
}

input[type="checkbox"]:checked + .custom-checkbox::after {
opacity: 1;
}

.label-text {
font-size: 1.1rem;
font-weight: 600;
color: #2c3e50;
}

.description {
margin-top: 0.5rem;
margin-left: 2.5rem;
color: #7f8c8d;
font-size: 0.9rem;
}

/* إخفاء الـ checkbox الافتراضي */
input[type="checkbox"] {
position: absolute;
opacity: 0;
height: 0;
width: 0;
}
.global-price-header {
margin-bottom: 1.5rem;
border-left: 4px solid #3498db;
padding-left: 1rem;
}

.global-price-header h3 {
font-size: 1.2rem;
margin-bottom: 0.3rem;
}

.notice-text {
font-size: 0.85rem;
line-height: 1.4;
}

/* تنسيق مربع التطبيق */
.price-application-box {
display: flex;
flex-direction: column;
gap: 0.8rem;
max-width: 500px;
margin-top: 1rem;
}

/* تنسيق إشعار الحفظ */
.save-notice {
background: #fff3cd;
color: #856404;
padding: 1rem;
border-radius: 6px;
margin-bottom: 1.5rem;
text-align: center;
border: 1px solid #ffeeba;
font-size: 0.95rem;
}
.gradient-button {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white !important;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 8px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
position: relative;
overflow: hidden;
}

.gradient-button::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background: rgba(255, 255, 255, 0.15);
transform: translate(-50%, -50%) rotate(45deg);
transition: all 0.5s ease;
opacity: 0;
}

.gradient-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.gradient-button:hover::after {
opacity: 1;
width: 100%;
height: 100%;
}

.gradient-button:active {
transform: translateY(0);
box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}
.extended-input {
width: 100%;
padding: 0.8rem 1.2rem;
font-size: 1.1rem;
border: 2px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 1rem;
}

.extended-input:focus {
border-color: #3498db;
box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

/* تنسيق الزر المضغوط */
.compact-btn {
padding: 0.7rem 1.2rem !important;
font-size: 0.95rem !important;
width: 100%;
}


@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

@keyframes colorChange {
    0% {
        color: #ff5722; /* لون برتقالي */
    }
    25% {
        color: #4CAF50; /* لون أخضر */
    }
    50% {
        color: #2196F3; /* لون أزرق */
    }
    75% {
        color: #9C27B0; /* لون بنفسجي */
    }
    100% {
        color: #ff5722; /* لون برتقالي */
    }
}

.wooecom-order-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}
.wooecom-order-form input[type="text"],
.wooecom-order-form input[type="number"],
.wooecom-order-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wooecom-order-form input[type="text"]:focus,
.wooecom-order-form input[type="number"]:focus,
.wooecom-order-form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    outline: none;
}
.wooecom-order-form select {
    padding: 12px;
    font-size: 16px;
    appearance: none; /* لإزالة السهم الافتراضي للمتصفح */
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') no-repeat left 12px center / 8px auto; /* نقل السهم إلى اليسار */
    background-color: #fff;
    white-space: nowrap; /* ضبط النص ليكون في سطر واحد فقط */
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة نقاط القطع (...) للنص الزائد */
    padding-left: 30px; /* إضافة مساحة للسهم على اليسار */
}
.wooecom-order-form select:focus {
    white-space: normal; /* إعادة النص إلى وضعه الطبيعي عند التركيز */
    overflow: visible; /* إظهار النص الكامل عند التركيز */
    text-overflow: clip; /* إزالة النقاط الزائدة عند التركيز */
}
.wooecom-order-form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    animation: moveLeftRight 2s infinite alternate; /* تحريك الزر يمينًا ويسارًا */
    position: relative;
}

@keyframes moveLeftRight {
    0% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(10px);
    }
}

.wooecom-order-form button[type="submit"]:hover {
    background-color: #45a049;
    transform: scale(1.02);
    animation: none; /* إيقاف التحريك عند التحويم */
}

/* أنماط زر التحميل */
.wooecom-order-form button[type="submit"].loading {
    pointer-events: none; /* تعطيل النقر أثناء التحميل */
}

.wooecom-order-form button[type="submit"].loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite; /* دوران الدائرة */
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* أنماط زر Sticky */
.wooecom-sticky-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0075be !important;
    color: white !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 117, 190, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: none;
    display: none;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-family: 'Arial Arabic', sans-serif;
}
.wooecom-sticky-btn:hover {
    background: #005f99 !important;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 117, 190, 0.6);
}
@media (max-width: 768px) {
    .wooecom-sticky-btn {
        font-size: 18px;
        padding: 12px 30px;
        bottom: 20px;
    }
}
/* رسائل الأخطاء */
.error-message {
    color: red;
    font-size: 12px;
    margin: 0;
    display: none;
}
.input-error {
    border-color: red !important;
}
/* أنماط رسالة الخطأ */
#wooecom-order-error {
    color: red;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffe6e6;
    border: 1px solid red;
    border-radius: 5px;
    display: none; /* مخفي بشكل افتراضي */
}

/* أنماط قائمة الملخص */
.wooecom-order-summary {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}
.wooecom-order-summary h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}
.wooecom-order-summary p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}
.wooecom-order-summary .total-price {
    font-weight: bold;
    color: #4CAF50;
}
.wooecom-order-summary {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.summary-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.summary-content {
    padding: 15px;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.summary-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    border-top: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #27ae60;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}
.summary-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    color:rgb(0, 0, 0);
    display: flex;
    justify-content: space-between; /* توزيع العناصر بالتساوي */
    align-items: center; /* محاذاة رأسية */
}

.summary-total span {
    display: inline-block;
}

.summary-total #total-price {
    color: #2c3e50; /* لون مختلف للسعر */
    font-size: 1.2em; /* حجم أكبر قليلاً */
}

/* في ملف wooecom-direct-order.css */
.custom-quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    margin: 0; /* إزالة الهامش الإضافي */
    height: 44px;
    width: 100%; /* تأخذ العرض الكامل */
    max-width: 150px; /* عرض مناسب */
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin: 0; /* إزالة الهامش الإضافي */
    font-family: Arial, sans-serif; /* إضافة خط افتراضي */
}

.quantity-btn:hover {
    background: #007bff;
    color: white;
}

#quantity {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: bold;
    background: white;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0; /* إزالة الهامش الإضافي */
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* إضافة هذه الأنماط */
.custom-quantity.input-error {
    border-color: #dc3545 !important;
    animation: shake 0.5s;
}
label[for="quantity"] {
    display: block;
    margin-bottom: 8px; /* نفس المسافة بين النصوص الأخرى */
    
    color: #555;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.related.products{
    display: none !important;
    }



