/* ====== تبويبات ====== */
.myship-tabs {
  list-style:none; padding:0; margin:20px 0 0;
  display:flex; justify-content:center; gap:8px;
  border-bottom:2px solid #e5e7eb;
}
.myship-tabs li {
  padding:10px 18px; cursor:pointer; font-weight:700; color:#555;
  border:2px solid transparent; border-radius:8px 8px 0 0;
  transition:all .25s ease; user-select:none;
}
.myship-tabs li:hover { background:#f0f6ff; color:#1e73be; }
.myship-tabs li.active { background:#fff; border-color:#1e73be #1e73be #fff; color:#1e73be; }

/* ====== محتوى التاب ====== */
.myship-tab-content {
  display:none; padding:20px; border:2px solid #1e73be;
  border-radius:0 12px 12px 12px; background:#fff; margin-bottom:20px;
}
.myship-tab-content.active { display:block; }

/* ====== فورم دولي ====== */
.myship-intl-options { max-width:680px; display:flex; flex-direction:column; gap:12px; }
.field, .field-inline { display:flex; flex-direction:column; gap:6px; }
.field-inline input[type="number"] { max-width:200px; }
.chk { display:flex; align-items:center; gap:8px; margin:4px 0; }

/* مجموعة البحث + المنسدلة */
.combo-block { display:flex; flex-direction:column; gap:0; max-width:680px; }
.combo-block label { font-weight:600; margin:8px 0 6px; }
.combo-block #pub-country-search {
  width:100%; padding:10px 12px; font-size:14px;
  border:1px solid #cfd8e3; border-bottom:none; border-radius:10px 10px 0 0;
  outline:none; background:#fff; box-sizing:border-box;
}
.combo-block #pub-country-search:focus { border-color:#1e73be; box-shadow:0 0 0 3px rgba(30,115,190,.12); }
.combo-block #pub-search-results {
  display:none; list-style:none; margin:0; padding:0;
  border:1px solid #cfd8e3; border-top:none; background:#fff; max-height:220px; overflow:auto;
}
.combo-block #pub-search-results.show { display:block; }
#pub-search-results li { padding:9px 12px; cursor:pointer; border-bottom:1px solid #f2f2f2; }
#pub-search-results li:last-child { border-bottom:none; }
#pub-search-results li:hover { background:#f7faff; }
#pub-search-results li.nores { color:#888; cursor:default; background:#fafafa; }
.combo-block #pub-country-select {
  width:100%; padding:10px 12px; font-size:14px; border:1px solid #cfd8e3; border-top:none;
  border-radius:0 0 10px 10px; outline:none; background:#fff; margin-top:-1px;
}
.combo-block #pub-country-select:focus { border-color:#1e73be; box-shadow:0 0 0 3px rgba(30,115,190,.12); }

/* ====== الأزرار + العناصر العامة ====== */
.myship-pubcalc .button.button-primary,
.myship-order-box .button.button-primary  { background:#1e73be; border-color:#1e73be; padding:10px 16px; border-radius:10px; font-weight:700; }
.myship-pubcalc .button.button-primary:hover { background:#185d98; border-color:#185d98; }
.myship-pubcalc input[type="text"], .myship-pubcalc input[type="number"], .myship-pubcalc select {
  border:1px solid #cfd8e3; border-radius:10px; padding:10px 12px; font-size:14px; background:#fff; outline:none;
}
.myship-pubcalc input[type="text"]:focus, .myship-pubcalc input[type="number"]:focus, .myship-pubcalc select:focus {
  border-color:#1e73be; box-shadow:0 0 0 3px rgba(30,115,190,.12);
}
.is-hidden { display:none !important; }

/* ====== النتائج والجداول ====== */
.myship-result { margin-top:16px; }
.myship-table { max-width:680px; margin-top:10px; border-collapse:collapse; width:100%; }
.myship-table th, .myship-table td { border:1px solid #e5e7eb; padding:10px; text-align:center; }
.myship-table thead { background:#f9fafb; font-weight:700; }
.myship-table .total { font-weight:700; background:#f0f6ff; }

/* سويتش (لو استخدمته لاحقاً) */
.switch { position:relative; display:inline-block; width:50px; height:26px; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#ccc; transition:.4s; border-radius:26px; }
.slider:before { position:absolute; content:""; height:20px; width:20px; left:3px; bottom:3px; background:#fff; transition:.4s; border-radius:50%; }
input:checked + .slider { background:#1e73be; }
input:checked + .slider:before { transform:translateX(24px); }

/* النص */
.toggle-box { display:flex; align-items:center; gap:10px; margin-top:10px; }
#box-label { font-weight:600; color:#333; }
/* ====== نافذة منبثقة للشحن ====== */
.myship-order-box .myship-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Tahoma", Arial, sans-serif;
}

.myship-order-box .myship-modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 95%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: popup-anim .3s ease;
}

@keyframes popup-anim {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ====== العنوان ====== */
.myship-order-box .myship-modal-content h2 {
  margin-top: 0;
  text-align: center;
  color: #1e73be;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ====== الحقول ====== */
.myship-order-box .myship-modal-content label {
  font-weight: 600;
  margin-top: 12px;
  display: block;
  color: #333;
}

.myship-order-box .myship-modal-content input,
.myship-order-box .myship-modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  transition: all .2s ease;
}

.myship-order-box .myship-modal-content input:focus,
.myship-order-box .myship-modal-content textarea:focus {
  border-color: #1e73be;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,115,190,0.15);
  outline: none;
}

/* ====== أزرار ====== */
.myship-order-box .myship-modal-content .myship-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.myship-order-box .myship-modal-content .button-primary {
  background: #1e73be;
  border: 2px solid #1e73be;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all .25s ease;
}

.myship-order-box .myship-modal-content .button-primary:hover {
  background: #185d98;
  border-color: #185d98;
}


/* زر الإغلاق (X) */
.myship-order-box .myship-close {
  position: absolute;
  top: 12px; right: 16px;
  cursor: pointer;
  font-size: 22px;
  color: #555;
  transition: color .2s ease;
}
.myship-order-box .myship-close:hover { color: red; }
/* ====== حقول النافذة المنبثقة ====== */
.myship-modal-content input,
.myship-modal-content textarea,
.myship-modal-content select {
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  margin-bottom:10px;
  border:1.5px solid #cfd8e3;   /* حدود أوضح */
  border-radius:8px;
  background:#fff;
  font-size:14px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* عند التركيز */
.myship-modal-content input:focus,
.myship-modal-content textarea:focus,
.myship-modal-content select:focus {
  border-color:#1e73be;
  box-shadow:0 0 0 3px rgba(30,115,190,0.15);
  outline:none;
}

/* ====== الأزرار ====== */
.myship-modal-content .button.button-primary {
  background:#1e73be;
  border-color:#1e73be;
  padding:10px 16px;
  border-radius:10px;
  font-weight:700;
  color:#fff;
  cursor:pointer;
  transition:background .25s ease;
  margin-top:10px;
}

.myship-modal-content .button.button-primary:hover {
  background:#185d98;
  border-color:#185d98;
}

/* زر الإلغاء */
.myship-modal-content .button-cancel {
  background:#ccc;
  border-color:#ccc;
  padding:10px 16px;
  border-radius:10px;
  font-weight:700;
  color:#333;
  cursor:pointer;
  transition:background .25s ease;
  margin-top:10px;
  margin-left:8px;
}

.myship-modal-content .button-cancel:hover {
  background:#999;
  border-color:#999;
  color:#fff;
}
/* ===== Fix: إجبار حدود الحقول داخل النافذة المنبثقة ===== */
.myship-order-box .myship-modal-content input[type="text"],
.myship-order-box .myship-modal-content input[type="email"],
.myship-order-box .myship-modal-content input[type="tel"],
.myship-order-box .myship-modal-content input[type="number"],
.myship-order-box .myship-modal-content textarea {
  border: 1.5px solid #cfd8e3 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: #111827 !important; /* نص غامق واضح */
}

.myship-order-box .myship-modal-content input[type="text"]:focus,
.myship-order-box .myship-modal-content input[type="email"]:focus,
.myship-order-box .myship-modal-content input[type="tel"]:focus,
.myship-order-box .myship-modal-content input[type="number"]:focus,
.myship-order-box .myship-modal-content textarea:focus {
  border-color: #1e73be !important;
  box-shadow: 0 0 0 3px rgba(30,115,190,0.15) !important;
  background: #fff !important;
}

/* لو في قالب يفرض ستايل placeholder باهت/شفاف */
.myship-order-box .myship-modal-content ::placeholder {
  color: #9CA3AF !important;
  opacity: 1 !important;
}


