/* =========================
   Design Tokens (Default Blue)
   ========================= */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e6e8ef;

  --brand: #1e40af;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e3a8a;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, .08);
}

/* Theme: Teal */
.theme--teal {
  --brand: #0f766e;
  --brand-500: #14b8a6;
  --brand-600: #0ea5a3;
  --brand-700: #0b6b65;
}
/* Theme: Purple */
.theme--purple {
  --brand: #6d28d9;
  --brand-500: #8b5cf6;
  --brand-600: #7c3aed;
  --brand-700: #5b21b6;
}

@font-face {
  font-family: 'Vazir';
  src: url('/wp-content/themes/twentytwentyfive/assets/fonts/vazir/Vazir-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;

}


/* ==============
   Global Base
   ============== */

html {
  overflow-y: scroll!important; 
}

body,
button,
input,
select,
textarea {
  font-family: 'Vazir', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}


body {
  overflow-y: scroll; 
  display: flex;
  flex-direction: column;
}

.wp-block-post-title{ display:none; } 

.wp-block-group.has-global-padding {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  flex:1;
}

.wp-block-site-logo {
  display: flex;
  justify-content: left;
}

/*login*/
/* sample hooks – customize in your main stylesheet */
/* === Password eye inside input === */
/* === Password eye inside input (با دو حالت روشن/خاموش) === */
.tc-pass-wrap {
  position: relative;
}
.tc-pass-wrap .tc-pass-input {
  padding-inline-end: 2.25rem;
}
.tc-pass-toggle {
  position: absolute;
  inset-inline-end: .5rem;
  inset-block: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* حالت معمولی: چشم کم‌رنگ‌تر (پسورد مخفی است) */
.tc-pass-toggle {
  opacity: 0.4;
  color: #374151; /* خاکستری تیره‌تر */
}

/* حالت hover یا وقتی کاربر خواست روش بره */
.tc-pass-toggle:hover {
  opacity: 0.7;
}

/* وقتی چشم فعال است (aria-pressed="true" → پسورد دیده می‌شود) */
.tc-pass-toggle[aria-pressed="true"] {
  opacity: 1;
  color: #111827; /* کمی تیره‌تر برای حالت روشن */
}

/* خود SVG هم از رنگ currentColor استفاده می‌کند تا با color هم‌خوان باشد */
.tc-pass-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* === Captcha smaller & distinct === */
.tc-captcha {
  margin-top: .25rem;
  margin-bottom: .5rem;
}
.tc-captcha__label {
  font-size: .85rem;
  color: #6b7280; 
  display: block;
  margin-bottom: .25rem;
}
.tc-captcha__inputs {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}
.tc-captcha .jet-form-builder__field {
  max-width: 120px;
  height: 36px;  
}

/* === Back button grey (ghost) === */
.jet-form-builder__submit.btn-ghost {
  background: #e5e7eb;
  color: #111827;
}
.jet-form-builder__submit.btn-ghost:hover {
  background: #d1d5db;
}

/* فاصله دکمه‌ها */
.tc-actions {
  display: flex;
  gap: .5rem;
}

/* متن راهنما زیر پسورد */
.tc-forgot-note {
  margin-top: .35rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.tc-title {
  margin-top: .35rem;
  font-size: 1rem;
  color: #6b7280;
}


.cust-welcome__name{ color:#1d4ed8; }



.cust-welcome{
  padding: 10px 0px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #111827;
display:flex; align-items:center; justify-content:left; gap: 0.4em;
}

@media (max-width:768px){ .cust-welcome{ text-align:center; display:flex; align-items:center; justify-content:center; gap: 0.4em; } }

/* Customer Dashboard */

.cust-dashboard { max-width: 100%; }
body { background: var(--bg); color: var(--text); }

.main_container{
  padding:20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #EDF3FF;
}

.cust-tabs__bar {
  display:flex; gap:12px; align-items:center; border-bottom:1px solid var(--line);
  padding-block: 6px;
}
.cust-tab {
  background:transparent; border:0; cursor:pointer; padding:12px 14px; font-weight:700;
  border-bottom:2px solid transparent; color:var(--muted);
}
.cust-tab.is-active { color:var(--brand-600); border-bottom-color: var(--brand-600); }
.cust-tabs__cta, .cust-tabs__cta_so { text-decoration:none; }
.cust-tabs__content { padding-top: 18px; }
.cust-panel[hidden] { display:none !important; }
.cust-tabs__cta_wrap {display:flex}
.cust-tabs__cta {color:var(--brand-700); border:1px solid #6989f1; padding:0.4rem 0.6rem; border-radius:var(--radius-sm); background:#fff; }
.cust-tabs__cta:hover { color: #fff; background: #6989f1; }
.cust-tabs__cta_so {color:var(--brand-700); border:1px solid #6989f1; padding:0.5rem 0.3rem; border-radius:var(--radius-sm); background:#d9e2ff; font-size: 0.7rem; }
.cust-tabs__cta_so:hover { color: #fff; background: #6989f1; }
.cust-tabs__bar .cta {
  margin-right: auto; 
  display: flex;
  gap: 8px;
}


/* New Address */
.map{height:500px; border-radius:12px;}
@media (max-width:768px){ .map { height:300px; } }


/* Reusable buttons */
.btn { appearance:none; border:1px solid var(--line); background:#fff; color:var(--text);
  padding:10px 14px; border-radius: var(--radius-md); font-weight:600; cursor:pointer; transition:.2s;
}
.btn:hover { background:#f8fafc; }
.btn-primary { background:var(--brand-500); border-color:var(--brand-500); color:#fff; }
.btn-primary:hover { background:var(--brand-600); border-color:var(--brand-600); }
.btn-ghost { background:#f8fafc; font-size: small;}

.cust-logout-btn {
    appearance: none;
    color: #ef4444;
  border: 1px solid #fecaca;
  padding: 5px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 300;
}
.cust-logout-btn:hover {
    background: #fff5f5;
  border-color: #fca5a5;
}

.office-address {
display:flex;
align-items:center;
}



/* ============
   Cards / Lists
   ============ */
.orders-panel { display:block; }
.orders-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:5px; }
.orders-title { margin:0; font-weight:800; font-size:1.2rem; }
.orders-add-btn { 
  display:inline-block; padding:.6rem .9rem; border:1px solid var(--line);
  border-radius: var(--radius-md); text-decoration:none; background:#fff; font-weight:700;
}
.orders-add-btn:hover { background:#f8fafc; }

.orders-list { display:flex; flex-direction:column; gap:.9rem; }
/* Single Row */
.order-row, .addr-picker__row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, background-color .2s ease;
	
}
.order-row:hover, .addr-picker__row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.order-main { min-width:0; }
.order-title { font-weight:700; margin:0 0 .25rem;}
.order-meta { display:flex; flex-wrap:wrap; gap:.5rem; color:var(--muted); margin-bottom:.25rem; font-size:var(--wp--preset--font-size--small); align-items:center; }
.order-desc {line-height:1.8!important}

/* Status Badge */
.order-status {
  padding:.18rem .6rem; border-radius:999px; background:#f3f4f6; border:1px solid #e5e7eb; font-weight:700;
}
/*
.status--pending   { background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.status--confirmed { background:#ecfeff; border-color:#a5f3fc; color:#155e75; }
.status--assigned  { background:#f5f3ff; border-color:#ddd6fe; color:#5b21b6; }
.status--picked_up { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.status--enroute { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.status--canceled  { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.status--suspended  { background:#f2d9b6; border-color:#ebc58f; color:#a6660d; }
.status--seen	 { background:#ffffa6; border-color:#eded5c; color:#7d7d00; }
.status--arrived	 { background:#aafff9; border-color:#52ccc3; color:#0e8a82; }
.status--succeeded	 { background:#afffca; border-color:#7be49f; color:#0a9a3a; }
.status--succeeded_with_contradiction	 { background:#ffa9d2; border-color:#cc4384; color:#b22568; }
*/
.status--pending   { background:#fff; border-color:#9a3412; color:#9a3412; }
.status--confirmed { background:#fff; border-color:#155e75; color:#155e75; }
.status--assigned  { background:#fff; border-color:#5b21b6; color:#5b21b6; }
.status--picked_up { background:#fff; border-color:#166534; color:#166534; }
.status--enroute { background:#fff; border-color:#1e40af; color:#1e40af; }
.status--canceled  { background:#fff; border-color:#991b1b; color:#991b1b; }
.status--suspended  { background:#fff; border-color:#a6660d; color:#a6660d; }
.status--seen	 { background:#fff; border-color:#7d7d00; color:#7d7d00; }
.status--arrived	 { background:#fff; border-color:#0e8a82; color:#0e8a82; }
.status--succeeded	 { background:#fff; border-color:#0a9a3a; color:#0a9a3a; }
.status--succeeded_with_contradiction	 { background:#fff; border-color:#b22568; color:#b22568; }

/* Actions */
.order-actions { white-space:nowrap; display:flex; flex-wrap:wrap; gap:.5rem; align-items: center; font-size:var(--wp--preset--font-size--small); }
.order-action { text-decoration:none; font-weight:700; }
.order-action--cancel {
  padding:.4rem .65rem; border-radius:var(--radius-sm); background:#fff; font-size:var(--wp--preset--font-size--small); 
}


.order-action--reject {
  color:#aeaeae!important; border:1px solid #fecaca; padding:.4rem .65rem; border-radius:var(--radius-sm); background:#fff;
}
.order-action--reject:hover { background:#dbdbdb; }

/* Empty state & flash */
.orders-empty {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:18px; text-align:center; box-shadow:var(--shadow-sm); display:flex; flex-direction:row;  justify-content: space-between; align-items: center;
}

@media (max-width: 768px) {
  /* Margin between columns */
  .orders-empty {
    flex-direction:column; gap: 15px;
	}}
.orders-flash { margin:.6rem 0; padding:.6rem .85rem; border-radius:var(--radius-sm); font-size:.92rem; }
.orders-flash--ok { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: 0.2s ease;
}

.logout-icon {
  width: 20px;
  height: 20px;
  filter: invert(28%) sepia(87%) saturate(4401%) hue-rotate(340deg) brightness(95%) contrast(93%);
  /* this filter makes the icon red */
  transition: transform 0.2s ease;
}

.logout-btn:hover .logout-icon {
  transform: scale(1.15);
  filter: invert(16%) sepia(100%) saturate(7489%) hue-rotate(5deg) brightness(98%) contrast(105%);
}


/* ===================
   Address Picker 
   =================== */
.addr-picker__list { display:flex; flex-direction:column; gap: 12px; }
.addr-picker__row { cursor:pointer; }
.addr-picker__radio { margin: 4px 0 0 0; flex: 0 0 auto; }
.addr-picker .order-title { font-weight:800; }
.addr-picker .order-desc { color: var(--muted); line-height:1.6; }
.addr-picker__row.is-checked {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent);
  background:color-mix(in srgb, var(--brand-500) 6%, #fff);
}

/* ======================
   JetFormBuilder — Forms 
   ====================== */

@media (max-width: 768px) {
  /* Margin between columns */
  .wp-block-columns.is-layout-flex {
    gap: 10px !important; 
  }
	
	 /* Margin between rows*/
  .wp-block-columns.is-layout-flow > * {
    margin-block-start: 3px !important;  
    margin-block-end: 3px !important;
  }
}

/* Form Card  */
.jet-form-builder-form, 
form.jet-form-builder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* Field Margin */
.jet-form-builder__field-wrap, 
.jfb-field-wrap { 
  margin-bottom: 12px; 
}
@media (max-width:768px){ .jet-form-builder__field-wrap, 
.jfb-field-wrap{ margin-bottom: 1px;  } }

/* Lables */
.jet-form-builder__label, 
.jet-form-builder-form label, 
form.jet-form-builder label {
  display: block; 
  font-weight: 700; 
  margin-bottom: 5px;
  color: #0b1220;
}

/* Inputs/select/textarea */
.jet-form-builder-form input[type="text"],
.jet-form-builder-form input[type="number"],
.jet-form-builder-form input[type="tel"],
.jet-form-builder-form input[type="email"],
.jet-form-builder-form input[type="url"],
.jet-form-builder-form input[type="password"],
.jet-form-builder-form select,
.jet-form-builder-form textarea,
form.jet-form-builder input[type="text"],
form.jet-form-builder input[type="number"],
form.jet-form-builder input[type="tel"],
form.jet-form-builder input[type="email"],
form.jet-form-builder input[type="url"],
form.jet-form-builder input[type="password"],
form.jet-form-builder select,
form.jet-form-builder textarea {
  width: 100%; 
  border: 1px solid var(--line); 
  border-radius: var(--radius-md); 
  padding: 10px 12px; 
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease; 
  color: var(--text);
  box-sizing: border-box;
}

.jet-form-builder-form textarea,
form.jet-form-builder textarea {
  min-height: 110px; 
  resize: vertical;
}

.jet-form-builder-form input:focus,
.jet-form-builder-form select:focus,
.jet-form-builder-form textarea:focus,
form.jet-form-builder input:focus,
form.jet-form-builder select:focus,
form.jet-form-builder textarea:focus {
  outline: none; 
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 20%, transparent);
}

/* Radio/Option Boxes */
.jet-form-builder__options, 
.jet-form-builder__choices { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.jet-form-builder__option {
  display: flex; 
  align-items: flex-start; 
  gap: 10px;
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  padding: 10px 12px; 
  background: #fff; 
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.jet-form-builder__option:hover {
  background: #f9fafb;
}

/* Selected Option */
.jet-form-builder__option input:checked + * {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 16%, transparent);
  background: color-mix(in srgb, var(--brand-500) 6%, #fff);
}

/* Form Buttons */
.jet-form-builder__submit-wrap {
  display: flex; 
  justify-content: center; 
  gap: 10px; 
  margin-top: 20px;
}

.jet-form-builder__submit,
.jet-form-builder__next-page,
.jet-form-builder__prev-page,
.jet-form-builder__submit_Login,
.jet-form-builder-repeater__new
{
  appearance: none; 
  border-radius: var(--radius-md); 
  padding: 10px 16px; 
  margin: 5px 5px;	
  font-weight: 700; 
  cursor: pointer;
  border: 1px solid;
  transition: all .2s ease;
}

.jet-form-builder__submit,
.jet-form-builder__submit_Login,
.jet-form-builder__next-page,
.jet-form-builder-repeater__new {
  border-color: var(--brand-600); 
  background: var(--brand-600); 
  color: #fff;
}

.jet-form-builder__submit:hover,
.jet-form-builder__submit_Login:hover,
.jet-form-builder__next-page:hover,
.jet-form-builder-repeater__new:hover {
  background: var(--brand-700); 
  border-color: var(--brand-700);
}

.jet-form-builder__prev-page {
  border-color: var(--line); 
  background: #f8fafc; 
  color: var(--text);
}

.jet-form-builder__prev-page:hover {
  background: #eef2f7;
}

/* Error Messages */
.jet-form-builder__field-error,
.jet-form-builder__message {
  font-size: .9rem; 
  margin-top: 6px;
}

.jet-form-builder__field-error { 
  color: var(--danger); 
}

.jet-form-builder__message--success { 
  color: var(--success); 
}



/* Add new order Button */
.orders-add-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #6b7280;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: .6rem .9rem;
  font-weight: 600;
}

.orders-add-btn:hover {
  background: #f3f4f6;
  color: #374151;
}



/* ===========
   Admin Panel
   =========== */

/* Admin Dashboard */
.admin-dashboard {margin:0 auto;}
.admin-tabs__bar { display:flex; gap:12px; border-bottom:1px solid var(--line); padding-block:6px; }
@media (max-width:768px){  .admin-tabs__bar{justify-content:center; } }
.admin-tab { background:transparent; border:0; cursor:pointer; padding:12px 14px; font-weight:700; border-bottom:2px solid transparent; color:var(--muted); }
.admin-tab.is-active { color:var(--brand-600); border-bottom-color:var(--brand-600); }
.admin-tabs__content { padding-top:18px; }
@media (max-width:768px) {.admin-tabs__content { padding-top:5px; }}
.admin-panel[hidden] { display:none !important; }

/* ==== گرادیان پس‌زمینه برای ردیف‌های سفارش در پنل مدیر ==== */
.admin-order-row {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

/* Base row look */
.admin-order-row {
  --status-color: #ccc; /* رنگ پیش‌فرض */
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-right: 6px solid var(--status-color);
  border-left: none;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.admin-order-row:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* تعیین رنگ حاشیه براساس وضعیت */
.admin-order-row:has(.status--pending)   { --status-color: #ffb84d; }  /* نارنجی ملایم */
.admin-order-row:has(.status--confirmed) { --status-color: #a5f3fc; }  /* سبز نعناعی */
.admin-order-row:has(.status--assigned)  { --status-color: #a47de9; }  /* بنفش */
.admin-order-row:has(.status--picked_up) { --status-color: #63b081; }  /* آبی آسمانی */
.admin-order-row:has(.status--delivered) { --status-color: #5fc35f; }  /* سبز پررنگ‌تر */
.admin-order-row:has(.status--canceled)  { --status-color: #ff7070; }  /* قرمز روشن */
.admin-order-row:has(.status--rejected)  { --status-color: #999999; }  /* خاکستری */
.admin-order-row:has(.status--suspended)  { --status-color: #a6660d; }  /* قهوه ای */
.admin-order-row:has(.status--seen)  { --status-color: #ffffa6; }
.admin-order-row:has(.status--enroute)  { --status-color: #7189d7; } 
.admin-order-row:has(.status--arrived)  { --status-color: #52ccc3; } 
.admin-order-row:has(.status--succeeded)  { --status-color: #7be49f; } 
.admin-order-row:has(.status--succeeded_with_contradiction)  { --status-color: #cc4384; } 




/* Admin Order Rows */
.admin-orders-list .order-row { padding:10px 12px; } /*  */
@media (max-width:100%) { .admin-orders-list .order-row { padding:20px 50px; font-size:.9rem; } }

/* Assign Modal */
.assign-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:999; }
.assign-modal_actions { display:flex; }
.assign-modal__content { background:#fff; padding:20px; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); min-width:300px; text-align:center; display: flex; flex-direction:column;}
.assign-modal select { width:100%; margin-bottom:12px; padding:8px; border:1px solid var(--line); border-radius:var(--radius-md); }
.assign-modal button { margin:0 6px; padding:8px 12px; border-radius:var(--radius-sm); flex: 1;}
.assign-modal button:first-of-type { background:var(--brand-500); color:#fff; border:0; }
.assign-modal button:last-of-type { background:#f3f4f6; color:var(--text); border:1px solid var(--line); }

/* Action buttons */
.order-actions .order-action {
  display:inline-block;
  padding:6px 12px;
  border-radius:var(--radius-sm);
  font-weight:600;
  text-decoration:none;
  margin-inline:4px;
  border:1px solid #ccc;
  cursor: pointer;
  background: #fff;
}

.order-actions .order-action:hover {
  background: #f0fdf4;
}


/* Admin Panel Colors*/
.order-action--assign {
  background:#ede9fe;          
  color:#6d28d9;               
  border-color:#ddd6fe;       
}

.order-action--assign:hover { background:#ede9ff!important; }

.order-action--confirm {
  background:#d1fae5;          
  color:#155e75;              
  border-color:#a7f3d0;       
}
.order-action--confirm:hover { background:#ecfeff!important; }
.order-action--reject {
  background:#999999;         
  color:#fff;              
  border-color:#999999;       
}
.order-action--reject:hover { background:#f3f4f6!important; }
.order-action--cancel {
  background: #fff;
  color: #ef4444;
  border: 1px solid #ff8484 !important;      
}

.order-action--cancel:hover { background: #ffe9e9!important; }

/* Admin Dashboard - modals */
.details-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:999; }
.details-modal__content { background:#fff; padding:20px; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); min-width:300px; max-width:600px; max-height:80vh; overflow:auto; }
.details-modal__content button { margin-top:12px; padding:8px 12px; background:var(--brand-500); color:#fff; border:0; border-radius:var(--radius-sm); }

/* Filter Bar */

.admin-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
 /*margin: 12px 0 18px; */
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  flex:1;
}

/* Filter Items */
.admin-filters .filter-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.05));
  flex: 1 1 auto;
  min-width: 0; 
  box-sizing: border-box;
}

/* Filter input and select */
.admin-filters input,
.admin-filters select {
  font-size: 0.85rem;
  padding: 3px 6px;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
  background: transparent;
  height: 26px;
  color: var(--text);
  width: 100%;
  font-size:small;	
}

/* Filter Select */
.admin-filters select {
  padding-right: 18px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23667' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
}

/* Filter Discard Button x */
.admin-filters .filter-clear, .jet-form-builder-repeater__remove{
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.admin-filters .filter-clear:hover, .jet-form-builder-repeater__remove:hover {
  background: #fecaca;
}


/* دکمه فقط روی موبایل */
.filters-toggle { display: none; }

@media (max-width: 768px) {
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 8px 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: small;
    margin-bottom: 8px;
  }	

  /* سفارش‌ها/اعضا: کانتینر فیلتر قبلی همونه؛ فقط display رو کنترل می‌کنیم */
  .admin-filters.collapsible {
    display: none !important;            /* بسته پیش‌فرض روی موبایل */
  }
  .admin-filters.collapsible.is-open {
    display: flex !important;            /* همون استایل قبلی برگرده */
    flex-wrap: wrap;                      /* اگر قبلاً داشتی حفظ می‌شه */
    gap: 12px;                            /* اگر قبلاً داشتی حفظ می‌شه */
  }

  /* گزارش: چون فرم هست، block کافیه */
  form.collapsible {
    display: none !important;
  }
  form.collapsible.is-open {
    display: block !important;
  }
}




/* ===== Reject Modal (aligned with site tokens) ===== */
/* Modal base */
.tc-modal[hidden] { display: none !important; }

.tc-modal {
  position: fixed !important;
  inset: 0 !important; /* top/right/bottom/left:0 */
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Backdrop */
.tc-modal__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.45) !important;
}

/* Dialog */
.tc-modal__dialog {
  position: relative !important;
  width: min(640px, 80vw) !important;
  max-height: 90vh !important;
  overflow: auto !important;
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.2) !important;
  padding: 16px 16px 12px !important;
  direction: rtl !important;
  text-align: right !important;
}

/* Header */
.tc-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-bottom: 1px solid #eee !important;
  padding-bottom: 8px !important;
  margin-bottom: 12px !important;
}
.tc-modal__title { font-weight: 700 !important; }


.tc-field{ margin-top: 8px; }
.tc-label{ display:block; font-size:14px; color:#374151; margin-bottom:8px; }
.tc-req, .jet-form-builder__required{ color:#ef4444; font-weight:600; }

.tc-input-wrap{
  position: relative;
}

.tc-input{
  width: 100%;
  height: 30px;             /* هم‌قد سِلِکت راننده */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.tc-input::placeholder{ color:#9ca3af; }

.tc-input:focus{
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.tc-input-hint{
  position: absolute;
  left: 12px;             
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #9ca3af;
  pointer-events: none;
}

/* دکمه‌ها مثل مودال تخصیص */
.tc-actions{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
.tc-btn{
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
}
.tc-btn--primary{
  background:#2563eb;
  color:#fff;
}
.tc-btn--primary:hover{ background:#1d4ed8; }
.tc-btn--ghost{
  background:#f3f4f6;
  color:#374151;
}
.tc-btn--ghost:hover{ background:#e5e7eb; }

/* نمایش دلیل زیر سفارش */
.order-reject-reason{
  margin-top: 6px;
  font-size: 13px;
  color:#6b7280;
}

/* Close button */
.tc-modal__close {
  background: transparent !important;
  border: 0 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}


/* Order Detalis Modal */

/* مودال جزئیات سفارش */
#order-details-modal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: inherit;
}

#order-details-modal.show {
  display: block;
  opacity: 1;
}

#order-details-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

#order-details-modal .modal-content {
  position: relative;
  margin: 5% auto;
  background: #fff;
  padding: 30px 25px;
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  overflow-y: auto;
  max-height: 80vh;
}

#order-details-modal .modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 26px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

#order-details-modal .modal-close:hover {
  color: #e74c3c;
}

/* جدول جزئیات سفارش */
.order-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
  direction: rtl;
}

.order-details-table th,
.order-details-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: right;
}

.order-details-table th {
  background-color: #f7f7f7;
  font-weight: bold;
  color: #333;
}

.order-details-table tr:nth-child(even) {
  background-color: #fafafa;
}

.order-details-table tr:hover {
  background-color: #f0f0f0;
}

.report-btn { margin-inline-start:auto; align-self:center; }

/*courier panel*/
.icon-btn{
  cursor:pointer; overflow:hidden;
  margin-inline-end:6px; padding:4px;
  transition:all 0.2s ease; 
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn img{
  width:100%; height:100%; object-fit:contain; pointer-events:none;
  filter:grayscale(100%);
  transition:filter 0.2s ease;
}
.icon-btn:hover img{ filter:none; }
.icon-btn:hover{ border-color:#9ca3af; }
.icon-btn:active{ transform:scale(0.96); }

/* فقط آیکون‌های خاص را توپر کن */
.icon-btn--solid svg { fill: currentColor; stroke: none; }


.order-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn img,
.icon-btn svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.icon-btn[href^="tel"] img {
  filter: none;
  background-color: transparent;
 
  filter: contrast(30%);
}


.icon-btn.js-seen img {
  filter: contrast(30%);
}

.icon-btn.js-delivered img {
  filter: contrast(30%);
}

.icon-btn.loc-menu-item.js-start-enroute img {
  filter: contrast(30%);
}

.icon-btn.js-arrived img {
  filter: contrast(30%);
}

.icon-btn.loc-menu-item.js-start-enroute:hover img {
  filter: none;
}

.icon-btn.js-arrived:hover img {
  filter: invert(65%) sepia(86%) saturate(200%) hue-rotate(90deg) brightness(103%) contrast(102%);
}

.icon-btn[href^="tel"]:hover img {
  filter: none;
  background-color: transparent;
 
  filter: invert(37%) sepia(90%) saturate(2541%) hue-rotate(182deg) brightness(96%) contrast(93%);
}


.icon-btn.js-seen:hover img {
  filter: invert(84%) sepia(86%) saturate(512%) hue-rotate(360deg) brightness(103%) contrast(102%);
}



.icon-btn.js-delivered:hover img {
  filter: invert(84%) sepia(86%) saturate(512%) hue-rotate(270deg) brightness(103%) contrast(102%)
}

@media (max-width: 768px) {
#tc-driver-dashboard .orders-list .order-row {
  flex-direction: column !important;
}
}
/* Cancel Button*/
a {
  text-decoration: none;
}

.order-action--cust-cancel, .order-action--cust-request-cancel {
  appearance: none;
  background: #fff;
  color: #ef4444;
  border: 1px solid #ff8484 !important;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 300;
}
.order-action--cust-cancel:hover, .order-action--cust-request-cancel:hover {
  background: #ffe9e9!important;
  
}

:where(.wp-block-columns) {margin-bottom:0px!important}
.jet-form-builder-repeater__row {
	background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
	padding: 10px 10px!important;
	margin: 5px 5px;
	width:inherit !important;
}

/* ===========
   Responsive
   =========== */

/* Progress Visual */

@media (max-width: 768px) {
  .jet-form-builder-progress-pages.jfb-progress-type--default.jet-form-builder-progress-pages--global {
    display: flex;
    flex-wrap: nowrap;   
    gap: 2px;        
  }

  .jet-form-builder-progress-pages.jfb-progress-type--default.jet-form-builder-progress-pages--global .jet-form-builder-progress-pages__item {
    flex: 0 0 auto;      
    white-space: nowrap; 
  }
	
	.jfb-progress-type--default .jet-form-builder-progress-pages__item {
		padding: 0 0 ;
	}
	
    .jfb-progress-type--default .jet-form-builder-progress-pages__item--label {
		font-size: .6rem;
}

	
	.main_container{
  padding:10px;

}

}


@media (max-width: 768px){

	.orders-title, .site-title { margin:0; font-weight:800; font-size:1.2rem; text-align:center }
  .order-row{ align-items: inherit; flex-direction:column; gap:0; }
.addresses-panel .order-row { display: flex; flex-direction: row!important;  align-items: center;  justify-content: space-between; }
  .orders-header{ flex-direction:row; align-items:center; gap:10px; margin-bottom:0; }
 #reports-header.orders-header{ min-height:40px }	
  .orders-add-btn{ text-align:center; }
	.order-actions {justify-content: center}
button.jet-form-builder__submit,
button.jet-form-builder__next-page,
button.jet-form-builder__prev-page {
      justify-content: center;                   
} 
	

	
	/* کانتینری که دکمه‌ها توش هست */
.jet-form-builder__next-page-wrap, .jet-form-builder__action-button-wrapper, .jet-form-builder__submit-wrap has-prev { 
  display: flex;
  align-items: center;
  gap: 10px; /* فاصله بین دکمه‌ها */
}

/* برای خود دکمه‌ها */
.jet-form-builder__submit,
.jet-form-builder__action-button .jet-form-builder__submit .submit-type-reload,
.jet-form-builder__next-page,
.jet-form-builder__prev-page,
.jet-form-builder-repeater__new{
  flex: 1;           /* همه مساوی تقسیم میشن */
  text-align: center; 
}

  .cust-tabs__bar{
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 10px;
    align-items: stretch;
  }

.cust-tabs__bar .cta {
   order: -1;
    flex: 0 0 100%;      
    margin: 6px auto 6px auto; 
    text-align: center;  
    display: flex;      
    justify-content: center; 
    align-items: center; 

}
  .cust-tabs__cta {
padding:.8rem 0.5rem;
}

	.cust-tabs__cta_so {
padding:.4rem 0.2rem;
}
	
  .cust-tab{
	padding:  10px 0;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
  
  /* فرم‌ها در موبایل کوچک */
  .jet-form-builder-form, 
  form.jet-form-builder {
    padding: 12px;
  }


/* ===========
   Admin Panel Responsive
   =========== */

/* Mobile adjustments for order rows */

 .wp-block-site-logo {
  display: flex;
  justify-content: center;
}

.wp-block-site-logo img {
  margin: 0 auto;
} 
  
	
    .wp-block-heading  {
	text-align:center;
  }
	

   .admin-orders-list .order-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: auto;
    gap: 6px 10px; 
    font-size: 0.85rem;
    padding: 8px 10px;
	margin-bottom:0;
  }
	
	.admin-orders-list .order-row .order-main {
    grid-column: 1 / span 2; 
	  }

.admin-orders-list .order-row .order-title {
  grid-column: 1 / span 2;
  text-align: center;
  font-size:var(--wp--preset--font-size--small); 
}

.admin-orders-list .order-row .order-title::after {
  content: "";
  display: block;
  width: 80%;              /* line width */
  height: 1px;             /* line thickness */
  background-color: var(--line);  /* line color */
  margin: 10px auto;       /* 10px before and after, auto centers */
}



  .admin-orders-list .order-row .order-meta {
   grid-column: 1 / span 2; 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
	}


  .admin-orders-list .order-row .order-status {
    grid-column: 2 / span 1; 
  }

  .admin-orders-list .order-row .order-actions {
    grid-column: 1 / span 2; 
    display: flex;
    justify-content: center;
	align-items: center;  
    flex-wrap: wrap;
    gap: 6px;
  
  }
 

  .order-action--assign strong {
    font-size: 0.85rem;      
    white-space: nowrap;     
    max-width: 50%;          
    display: inline-block;
    vertical-align: middle;
  }



/* Filters - mobile version (two per row using flex) */

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.admin-filters .filter-item {
  flex: 1 1 calc(50% - 12px); /* دو تا در هر ردیف با فاصله */
  min-width: calc(50% - 12px);
  box-sizing: border-box;
}

/* اگه می‌خوای آخرین فیلتر (مثلاً دکمه‌ها) تمام عرض باشه */
.admin-filters .filter-item:last-child {
  flex: 1 1 100%;
  min-width: 100%;
}

/* حالت خاص برای pickup_window که دو input کنار هم داره */
.admin-filters .filter-item[data-filter="pickup_window"] {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}
.admin-filters .filter-item[data-filter="pickup_window"] input {
  flex: 1;
  min-width: 0;
}

.admin-filters .report-btn {
  margin-inline: auto;       /* وسط افقی */
  align-self: center;        /* وسط عمودی نسبت به بقیه آیتم‌ها */
}
	
  .admin-filters .filter-item[data-filter="order_status"],
  .admin-filters .filter-item[data-filter="pickup_window"],
  .admin-filters .filter-item[data-filter="courier"]{
    flex: 1 1 calc(33.333% - 12px);
    min-width: calc(33.333% - 12px);
	}
	.tc-btn {flex:1}


	
/*Admin User*/	
.admin-user-row {flex-direction: column;}  
}

/* Grid rows for Jet-form-like fields inside modal */
.jfb-row {
  display: grid;
  gap: 12px;
}
.jfb-row--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .jfb-row--2 { grid-template-columns: 1fr 1fr; }
}

/* هماهنگی با گزینه‌های رادیویی فرم */
.jet-form-builder__option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--jfb-border, #e5e7eb);
  border-radius: 8px;
  cursor: pointer;
}
.jet-form-builder__option input[type="radio"] {
  margin-top: 2px;
}
.jet-form-builder__option.is-disabled,
.jet-form-builder__option[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

.order-star {
  color: gold;
  font-size: 16px;
  margin-left: 4px;
  vertical-align: middle;
}


/* keep for accessibility but visually hide */
.screen-reader-text,
.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.refresh-btn img {
  width: 20px;
  height: 20px;
  transition: transform 0.6s ease;
}

.refresh-btn:hover {
  transform: rotate(+10deg);
}

.refresh-btn.active img {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.panel-header {margin:5px}


/* === user pass reset === */
/* ظرف اصلی برای دکمه و منو */
.reset-pass-wrapper {
  position: relative;
  display: inline-block;
  z-index: 9999;
  font-family: inherit;
}

/* دکمه اصلی آبی */
.reset-pass-wrapper .js-reset-pass-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;

}


.reset-pass-wrapper .js-reset-pass-toggle .caret {
  font-size: 11px;
  line-height: 1;
  margin-top: 1px;
 color:gray;
}

/* باکس پاپ‌آپ اکشن‌ها */
.reset-pass-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #cfd4d9;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  padding: 8px;
  z-index: 9999;

  display: flex;               /* مهم: افقی‌ش کن */
  flex-direction: row;         /* کنار هم */
  align-items: stretch;
  gap: 8px;                    /* فاصله بین ایمیل و کپی */
  white-space: nowrap;
}

.reset-pass-menu.hidden {
  display: none;
}

/* خود دکمه‌های ایمیل و کپی */
.reset-pass-menu-item {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  color: #1d2327;
  min-width: 60px;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.15s ease;
}

.reset-pass-menu-item:hover {
  background-color: #f0f6ff;
  border-color: #99b9d6;
  color: #005a8c;
}

/* حالت دسیبل وقتی ایمیل در حال ارسال است */
.reset-pass-menu-item[disabled],
.reset-pass-menu-item[disabled]:hover {
  opacity: .5;
  cursor: default;
  background: #fff;
  border-color: #ccd0d4;
  color: #777;
}


/*Courier PAnel Buttons*/

/* کانتینر دکمه مسیر/حرکت */
.loc-menu-wrapper {
  position: relative;
  display: inline-block;
  z-index: 900; /* تا منو روی بقیه سطرها دیده بشه */
}

/* خود منوی بازشونده */
.loc-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0%;
  background: #fff;
  border: 1px solid #cfd4d9;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  padding: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  white-space: nowrap;
}

.loc-menu.hidden {
  display: none;
}

/* ظاهر آیکون‌ها داخل منو */
.loc-menu-item.icon-btn {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  padding: 6px;
  width: 25px;
  height: 25px;

  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  transition: all 0.15s ease;
}

.loc-menu-item.icon-btn:hover {
  background-color: #f0f6ff;
  border-color: #99b9d6;
  color: #005a8c;
}

.js-loc-menu-toggle.icon-btn img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: contrast(30%)!important;
	
}

.js-loc-menu-toggle.icon-btn img:hover { filter:none;
}

/* خلاصه‌ی هر آیتم پس از قفل شدن */
.so-item-summary {
  display:flex; align-items:center; gap:.5rem;
  background:#f5f5f5; border:1px solid #e5e7eb; border-radius:8px;
  padding:.5rem .75rem; margin:.5rem 0;
  font: 13px/1.6 Tahoma, Arial, sans-serif;
}
.so-item-summary .title { font-weight:600; }
.so-item-summary .meta  { color:#6b7280; }
.so-item-summary button {
  margin-inline-start:auto;
  display:inline-flex; align-items:center; gap:.25rem;
  border:1px solid #d1d5db; background:#fff; border-radius:6px; padding:.25rem .5rem; cursor:pointer;
}
.so-item-summary .remove { color:#b91c1c; border-color:#fecaca; }
.so-hide { display:none !important; }
.order-row--stuff{
  background:#dae1ff; 
}

.order-row.is-stuff { background:#dae1ff; }
/* Container of chips: inline, wrapping */
.tc-package-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

/* Single chip */
.tc-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px 4px 14px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
}

/* Remove icon (X) */
.tc-chip-remove {
    margin-left: 6px;
    margin-right: 2px;
    font-size: 14px;
    opacity: 0.6;
}

/* Hover/active effect */
.tc-chip:hover {
    border-color: #ff5a5f;
    background: #ffecec;
}

.tc-chip:hover .tc-chip-remove {
    opacity: 1;
}


.tc-package-error {
    color: #e02424;
    font-size: 12px;
    margin-top: 4px;
}
/* دکمه عنوان "حضوری" */
.tc-inperson-toggle-wrap {
    margin-top: 4px;
    margin-bottom: 2px;
}

.tc-inperson-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
    color: #111;
}

.tc-inperson-arrow {
    font-size: 10px;
    opacity: 0.7;
}

/* وقتی باز است، فلش برعکس شود */
.tc-inperson-toggle.tc-inperson-open .tc-inperson-arrow {
    transform: rotate(180deg);
}


/* ================================
   GLOBAL HEADER + FOOTER WRAPPER
   (full width but transparent)
================================ */

.tc-global-header,
.tc-global-footer {
  width: 100%;
  background: transparent;
}


/* ================================
   INNER BOX (header + footer)
   – centered
   – blue background
   – rounded corners
   – border
================================ */

.tc-global-inner, .tc-global-inner-footer {
  width: 90%;
  max-width: 1300px;
  margin: 16px auto;
  padding: 16px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;


  background: #5b7cf8;          /* slightly darker blue */
  border-radius: 16px;          /* rounded corners */
  border: 1px solid #c5d2f3;    /* light subtle border */
}

.tc-global-header .tc-brand-title,
.tc-global-header .tc-brand-sub,
.tc-global-header .tc-brand-note {
  color: #ffffff;
}
.tc-global-footer {
  color: #ffffff;

}

/* ================================
   HEADER — RIGHT SIDE
================================ */

.tc-header-right {
  text-align: right;
}

.tc-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.tc-brand-sub {
  font-size: 0.9rem;
  margin-top: 4px;
}

.tc-brand-note {
  font-size: 0.8rem;
  margin-top: 2px;
  opacity: 0.8;
}


/* ================================
   HEADER — LEFT SIDE
================================ */

.tc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;

}

.tc-support-label {
  margin-left: 4px;
 color:#fff;
}

.tc-support-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  color: #1e3a8a;
  border: 1px solid #d0d9ef;
}

.tc-support-link:hover {
  background: #eef2ff;
}


/* ================================
   FOOTER SPACING
================================ */

.tc-global-footer {
  margin-top: 60px;
}


/* ================================
   FOOTER — CONTENT AREAS
================================ */

.tc-footer-left,
.tc-footer-right {
  flex: 1;

}

.tc-footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tc-footer-right ul {
   columns: 2;
  list-style: disc;
  padding-right: 18px;
  margin: 0;
}

.tc-footer-right li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* ===========================
   GLOBAL HEADER + FOOTER
   =========================== */

.tc-global-header {
  width: 100%;
  padding: 18px 0;

}

.tc-global-footer {
	width: 100%;
 /* margin-top: 40px;*/
}

/* content centered */
.tc-global-inner, .tc-global-inner-footer {
  display:flex;
  max-width: 1300px;
  margin: 0 auto;
 
}

/* ===========================
   HEADER TEXT
   =========================== */

.tc-brand-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.tc-brand-sub {
  font-size: 0.95rem;
  margin-top: 4px;
}

.tc-brand-note {
  font-size: 0.85rem;
  margin-top: 2px;
  opacity: 0.8;
}

/* support buttons centered */
.tc-header-left {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tc-support-link {
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.tc-support-link:hover {
  background: #eef3ff;
}

/* ===========================
   FOOTER
   =========================== */

.tc-footer-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 10px;
}

.tc-footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tc-footer-right ul {
  list-style: disc;
  padding-right: 18px;
  margin: 0;
}

.tc-footer-right li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.tc-footer-hours {
  display: flex;
  flex-direction: row;
  gap: 24px;          /* فاصله جزئی بین دو ستون */
  justify-content: flex-start;
  align-items: flex-start;
}

.tc-hours-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;  /* راست‌چین */
  direction: rtl;
}

.tc-hours-col div {
  font-size: 0.9rem;
  color: #ffffff;
}




/* ===========================
   RESPONSIVE (MOBILE)
   =========================== */

@media (max-width: 600px) {
	.tc-global-header, .tc-global-footer {padding:0}
	.tc-global-inner-footer {
		flex-direction: column;
		
	}
	.tc-global-inner-footer, .tc-global-inner {
	align-items: inherit; 
    gap: 0px; 
    border-radius: 0px;
    border: 0px solid #c5d2f3;
	}
  .tc-footer-columns {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .tc-footer-right ul {
    padding-right: 0;
    list-style-position: inside;
  }

  .tc-header-left {
    flex-wrap: wrap;
  }
.tc-global-inner {border-width:0px}
}

.tc-slot-note {font-size:0.7rem; line-height:1.2rem}
.tc-slot-note-user {color:orange}
.tc-slot-note-cap {color:red}


/* Make table inherit JetFormBuilder look */
.tc-stuff-jet .tc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tc-stuff-jet .tc-table th,
.tc-stuff-jet .tc-table td {
  vertical-align: middle;
}

/* Align Jet fields inside table cells */
.tc-stuff-jet .tc-table .jet-form-builder__field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Buttons spacing */
.tc-stuff-jet .jet-form-builder__action-button,
.tc-stuff-jet .jet-form-builder__submit {
  margin-top: 10px;
}

/* Remove icon feels like Jet buttons */
.tc-stuff-jet .tc-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  cursor: pointer;
}

.tc-auto-confirm-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 4px;  
}

.tc-auto-confirm-icon svg {
  width: 14px;
  height: 14px;
}


