/* ================================================================
   OMNIBRANCH — Frontend Allergen Styles
   assets/css/allergens.css
   Apex Tech Agency — www.apextechagency.com
   ================================================================ */

/* ── Allergen Block ───────────────────────────────────────────── */
.omni-allergens {
  font-family: inherit;
  margin: 24px 0;
  padding: 20px 22px;
  background: rgba(101, 217, 197, 0.04);
  border: 1px solid rgba(101, 217, 197, 0.18);
  border-radius: 14px;
}

.omni-allergens-title {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  margin: 0 0 16px;
  letter-spacing: .01em;
}

[dir="rtl"] .omni-allergens-title {
  text-align: right;
}

/* ── Icons Grid ───────────────────────────────────────────────── */
.omni-allergens-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.omni-allergen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  transition: transform .2s cubic-bezier(0.22,1,0.36,1);
}

.omni-allergen:hover { transform: translateY(-2px); }

.omni-allergen img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  transition: filter .25s, opacity .25s, box-shadow .25s;
}

.omni-allergen-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #999;
  text-align: center;
  transition: color .2s;
}

/* ── Active State ─────────────────────────────────────────────── */
.omni-allergen--active img {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(101, 217, 197, 0.5), 0 0 12px rgba(101, 217, 197, 0.25);
}

.omni-allergen--active .omni-allergen-label {
  color: #65d9c5;
}

/* ── Inactive State ───────────────────────────────────────────── */
.omni-allergen--inactive img {
  filter: grayscale(1);
  opacity: 0.2;
}

.omni-allergen--inactive .omni-allergen-label {
  color: #ccc;
  opacity: 0.35;
}

/* ── Badge Variants (for POS/Bulk Editor) ─────────────────────── */
.omni-al-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.omni-al-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.omni-al-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  transition: filter .2s, opacity .2s;
}

.omni-al-badge--on  img { filter: none; opacity: 1; }
.omni-al-badge--off img { filter: grayscale(1); opacity: 0.15; }

/* ── Progress Bar (Thank You page) ───────────────────────────── */
.omni-progress-wrap {
  margin: 24px 0;
}

.omni-progress-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.omni-progress-track::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: rgba(101, 217, 197, 0.15);
  z-index: 0;
}

.omni-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.omni-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 3px solid #ccc;
  transition: all .3s;
}

.omni-progress-step span {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-align: center;
}

.omni-progress-step.omni-step-done .omni-step-dot {
  background: #65d9c5;
  border-color: #65d9c5;
}

.omni-progress-step.omni-step-active .omni-step-dot {
  background: #65d9c5;
  border-color: #65d9c5;
  box-shadow: 0 0 0 4px rgba(101, 217, 197, 0.25);
}

.omni-progress-step.omni-step-active span {
  color: #65d9c5;
  font-weight: 700;
}

/* ── Thank You Block ──────────────────────────────────────────── */
.omni-thankyou-block {
  margin: 24px 0;
  padding: 28px 24px;
  background: rgba(101, 217, 197, 0.04);
  border: 1px solid rgba(101, 217, 197, 0.18);
  border-radius: 16px;
}

.omni-thankyou-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.omni-thankyou-block p {
  font-size: 15px;
  color: #555;
  margin: 6px 0;
}

.omni-thankyou-call {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(101,217,197,.15);
}

.omni-thankyou-call p { margin: 0 0 8px; }

.omni-call-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(101, 217, 197, 0.12);
  border: 1px solid rgba(101, 217, 197, 0.3);
  color: #038f7e;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all .2s;
}

.omni-call-link:hover {
  background: rgba(101, 217, 197, 0.22);
  text-decoration: none;
}

/* ── Checkout: Arrival Time ───────────────────────────────────── */
.omni-arrival-wrap {
  margin: 24px 0 32px;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.omni-checkout-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
}

.omni-checkout-hint {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}

.omni-field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.omni-field-row label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.omni-select,
.omni-time-input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  width: 100%;
  max-width: 340px;
  outline: none;
  transition: border-color .2s;
}

.omni-select:focus,
.omni-time-input:focus {
  border-color: #65d9c5;
  box-shadow: 0 0 0 3px rgba(101, 217, 197, 0.15);
}

/* ── Branch Pill ──────────────────────────────────────────────── */
.omni-branch-display {
  margin-top: 16px;
}

.omni-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #f8fcfb;
  border: 1px solid #d1f0eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #003730;
  box-shadow: 0 4px 12px rgba(101, 217, 197, 0.1);
  transition: all 0.2s cubic-bezier(0.22,1,0.36,1);
}

.omni-branch-pill:hover {
  background: #eefaf8;
  box-shadow: 0 6px 16px rgba(101, 217, 197, 0.2);
  transform: translateY(-1px);
}

.omni-branch-icon { font-size: 16px; }

.omni-change-branch {
  font-size: 13px;
  font-weight: 600;
  color: #038f7e;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(3,143,126,0.1);
  margin-left: 8px;
  transition: all 0.2s;
}

.omni-change-branch:hover {
  background: rgba(3,143,126,0.2);
}

.omni-no-branch-notice {
  padding: 10px 14px;
  background: rgba(255, 179, 176, 0.08);
  border: 1px solid rgba(255, 179, 176, 0.3);
  border-radius: 8px;
  font-size: 14px;
  color: #c0392b;
  font-weight: 600;
}

.omni-no-branch-notice a {
  color: #e74c3c;
  font-weight: 700;
  margin-left: 8px;
}

/* ── Call Section ─────────────────────────────────────────────── */
.omni-call-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(101,217,197,.15);
}

.omni-call-hint {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
}

.omni-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(101, 217, 197, 0.12);
  border: 1px solid rgba(101, 217, 197, 0.3);
  color: #038f7e;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.omni-call-btn:hover {
  background: rgba(101, 217, 197, 0.22);
}

.omni-call-numbers {
  margin-top: 12px;
  padding: 12px;
  background: #f0faf9;
  border-radius: 10px;
  border: 1px solid rgba(101,217,197,.2);
}

.omni-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.omni-contact-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #038f7e;
  text-decoration: none;
}

.omni-contact-list li a:hover { text-decoration: underline; }

/* ── Branch Selector Modal (Frontend) ────────────────────────── */
#omni-branch-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.omni-branch-modal-inner {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: omniModalFadeIn .3s cubic-bezier(0.22,1,0.36,1);
}

@keyframes omniModalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
}

.omni-branch-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.omni-branch-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.omni-branch-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.omni-branch-modal-close:hover { color: #333; }

.omni-branch-search-wrap {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.omni-branch-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.omni-branch-search:focus { border-color: #65d9c5; box-shadow: 0 0 0 3px rgba(101,217,197,.12); }

.omni-branch-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.omni-branch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
  border: 1px solid transparent;
}

.omni-branch-item:hover {
  background: rgba(101,217,197,0.06);
  border-color: rgba(101,217,197,0.2);
}

.omni-branch-item.omni-branch-selected {
  background: rgba(101,217,197,0.1);
  border-color: rgba(101,217,197,0.35);
}

.omni-branch-item-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.omni-branch-item-info {
  flex: 1;
}

.omni-branch-item-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.omni-branch-item-area {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.omni-branch-item-hours {
  font-size: 12px;
  color: #65d9c5;
  font-weight: 600;
  white-space: nowrap;
}

.omni-branch-no-results {
  text-align: center;
  padding: 32px;
  color: #aaa;
  font-size: 14px;
}

.omni-branch-inactive {
  opacity: 0.45;
  pointer-events: none;
}

.omni-branch-inactive-tag {
  display: inline-block;
  font-size: 10px;
  background: rgba(239,68,68,.1);
  color: #ef4444;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  margin-top: 3px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .omni-allergens-icons { gap: 10px; }
  .omni-allergen img { width: 34px; height: 34px; }
  .omni-allergen-label { font-size: 9px; }
  .omni-progress-track::before { display: none; }
  .omni-progress-step span { font-size: 9px; }
}
