/* ================================================= */
/* 1. التنسيقات الأساسية لحاوية التخصيص */
/* ================================================= */
.inked-customization-wrapper { background: #fdfdfd; padding: 20px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #e5e5e5; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.inked-custom-title { margin-top: 0; font-size: 1.1em; font-weight: 600; border-bottom: 1px solid #eaeaea; padding-bottom: 10px; margin-bottom: 15px; }
.inked-form-group { margin-bottom: 15px; }
.inked-form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.inked-req-star { color: #d63638; margin-right: 4px; }
.inked-input { width: 100%; padding: 10px 12px; border: 1px solid #dcdcdc; border-radius: 5px; transition: 0.3s; box-sizing: border-box; }
.inked-input:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 1px #2271b1; }

.inked-icons-container { display: flex; flex-wrap: wrap; gap: 10px; }
.inked-icon-label { cursor: pointer; border: 2px solid transparent; border-radius: 6px; padding: 2px; transition: 0.2s; position: relative;}
.inked-icon-label input[type="radio"], .inked-icon-label input[type="checkbox"] { display: none; }
.inked-icon-label img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; display: block; }

/* ================================================= */
/* 2. تخصيص ألوان التحديد والأيقونات والتبويبات */
/* ================================================= */

/* لون الحدود والخلفية عند اختيار أيقونة أو نمط خط */
.inked-icon-label:has(input:checked),
.inked-style-label:has(input:checked) { 
    border-color: #000000 !important; /* لون الحدود (غيره للون متجرك) */
    background: #f5f5f5 !important; /* لون الخلفية (يفضل أن يكون لوناً فاتحاً جداً) */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1); 
}

/* لون التبويبات النشطة (الأقسام) عند النقر عليها */
.inked-tab-btn.active { 
    background: #000000 !important; /* لون خلفية التبويب النشط */
    color: #ffffff !important; /* لون خط التبويب النشط */
    border-color: #000000 !important; /* لون حدود التبويب النشط */
}

/* شريط الأيقونات الـ 6 السفلي التفاعلي لحذف الأيقونات */
.inked-tray-item { position: relative; width: 50px; height: 50px; border: 1px solid #ccc; border-radius: 4px; background: #fff; padding: 2px;}
.inked-tray-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.inked-tray-item .remove-icon-btn { position: absolute; top: -6px; left: -6px; background: #d63638; color: white; width: 16px; height: 16px; font-size: 10px; text-align: center; line-height: 14px; border-radius: 50%; cursor: pointer; font-weight: bold; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ================================================= */
/* 3. تخصيص ألوان رسالة الملاحظات أسفل الحقول */
/* ================================================= */
.inked-customer-note { 
    font-size: 12px; 
    font-style: italic; 
    padding: 5px 10px; 
    border-radius: 4px; 
    margin-bottom: 8px; 
    margin-top: -5px; 
    
    /* الألوان الجديدة للملاحظة */
    color: #444444; /* لون النص */
    background: #fafafa; /* لون الخلفية */
    border-right: 3px solid #000000; /* لون الخط الجانبي البارز للملاحظة */
}

.inked-color-swatch input:checked + .inked-swatch-circle { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000000; transform: scale(1.1); }

/* ================================================= */
/* 4. محرك الطبقات الحرة والتأثيرات */
/* ================================================= */
#inked-preview-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99; pointer-events: none; overflow: hidden; }
.inked-draggable-layer { position: absolute; z-index: 100; cursor: grab; pointer-events: auto !important; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.inked-draggable-layer:active { cursor: grabbing; }

.inked-text-layer { font-weight: bold; color: #333; text-shadow: 1px 1px 2px rgba(255,255,255,0.8); white-space: pre-wrap; text-align: center; font-size: 24px; padding: 10px; mix-blend-mode: multiply; }
.inked-image-layer { object-fit: contain; width: 120px; max-width: 90%; mix-blend-mode: multiply; }

/* تأثير التطريز */
.inked-embroidery-effect {
    font-weight: 900 !important;
    letter-spacing: 1px;
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.15);
    text-shadow: 
        1px 1px 1px rgba(0,0,0,0.4), 
        -1px -1px 1px rgba(255,255,255,0.3) !important;
}

/* ================================================= */
/* 5. تصميم النافذة التأكيدية وتخصيص زر الإقرار */
/* ================================================= */
.inked-lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 99999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.inked-lightbox-modal { background: #fff; width: 90%; max-width: 500px; padding: 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: inkedFadeInUp 0.3s ease; max-height: 90vh; overflow-y: auto; }
@keyframes inkedFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.inked-lightbox-modal .inked-btn { border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s; }

/* لون زر "تأكيد وإضافة للسلة" */
.inked-lightbox-modal .inked-btn.primary { 
    background: #000000; /* لون الزر */
    color: #ffffff; /* لون النص داخل الزر */
}
.inked-lightbox-modal .inked-btn.primary:hover:not(:disabled) { 
    background: #333333; /* لون الزر عند تمرير الماوس */
}
.inked-lightbox-modal .inked-btn.primary:disabled { background: #cccccc; cursor: not-allowed; }
.inked-lightbox-modal .inked-btn.secondary { background: #f0f0f1; color: #333; }


/* ================================================= */
/* 6. تنسيق حقل رفع الملفات الاحترافي */
/* ================================================= */
.inked-file-upload-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.inked-file-upload-btn {
    background: #fafafa;
    border: 2px dashed #ccc;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    color: #555;
    font-weight: 600;
    transition: 0.3s;
    display: block;
}
.inked-file-upload-btn:hover { 
    border-color: #000000; /* يمكنك تغيير اللون للون متجرك */
    background: #f5f5f5; 
    color: #000000; 
}
.inked-file-preview-info {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background: #fdfdfd; 
    border: 1px solid #eee; 
    padding: 8px 12px;
    border-radius: 4px; 
    font-size: 13px; 
    color: #333;
}
.inked-file-remove { 
    color: #d63638; 
    cursor: pointer; 
    font-weight: bold; 
    padding-left: 10px; 
    font-size: 14px; 
}
.inked-file-remove:hover { 
    color: #b32d2e; 
}

.widget_shopping_cart .variation { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.widget_shopping_cart .variation img { max-width: 40px !important; height: auto !important; display: inline-block; }
.widget_shopping_cart .variation dt { font-weight: bold; margin: 0; }
.widget_shopping_cart .variation dd { margin: 0 0 5px 0; }