/* Basic layout */
.zz-track-page {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  direction: rtl;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.zz-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.zz-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 4px;
}

.zz-subtitle {
  font-size: 0.9rem;
  text-align: center;
  color: #666;
  margin-top: 0;
}

/* Form */
.zz-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
}

.zz-form-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.zz-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d0d0d0;
  font-size: 1rem;
}

.zz-input:focus {
  outline: none;
  border-color: #ffc400;
  box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.25);
}

/* Buttons */
.zz-button {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  background: #ffda2a;
  font-weight: 600;
  color: #000 !important;
}

/* Reset strange theme button styles */
.zz-button,
.zz-button-secondary,
.zz-button-tertiary {
  -webkit-appearance: none;
  appearance: none;
}

.zz-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.zz-button-secondary {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #ffda2a !important;
  background-color: #fffdf2 !important;
  color: #333 !important;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
}

.zz-ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.zz-ext-links .zz-button-secondary {
  margin-top: 0;
}

.zz-button-tertiary {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background-color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Messages */
.zz-message {
  font-size: 0.9rem;
  margin-top: 8px;
}

.zz-message-error {
  color: #c62828;
}

.zz-message-ok {
  color: #1b5e20;
}

.zz-message-loading {
  color: #555;
}

.zz-message-orders {
  color: #555;
}

/* Divider */
.zz-divider {
  margin: 16px 0;
  border-top: 1px dashed #e0e0e0;
}

/* Orders section */
.zz-orders-section {
  margin-top: 8px;
}

.zz-orders-text {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  color: #555;
}

.zz-orders {
  margin-top: 8px;
}

.zz-orders.zz-orders-loaded {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.zz-select {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-size: 0.9rem;
  background-color: #ffffff;
}

.zz-orders-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.zz-order-summary {
  margin-top: 8px;
  font-size: 0.85rem;
  white-space: pre-line;
  color: #555;
}

/* Login inline */
.zz-login-inline {
  margin-top: 8px;
}

.zz-login-form-wrapper {
  margin-top: 8px;
}

.zz-login-form-wrapper form {
  font-size: 0.9rem;
}

.zz-login-form-wrapper label {
  font-size: 0.85rem;
}

/* Status header */
.zz-status-header {
  font-weight: 600;
  margin-bottom: 4px;
}

.zz-status-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.zz-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e0ffe0;
  color: #1b5e20;
  margin-top: 6px;
}

.zz-empty {
  font-size: 0.9rem;
  color: #777;
  margin-top: 8px;
}

/* Timeline */
.zz-timeline {
  position: relative;
  margin-top: 16px;
  padding-right: 26px;
}

.zz-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 14px;
  width: 2px;
  bottom: 12px;
  background: #ffe86a;
}

.zz-timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.zz-timeline-item:last-child {
  margin-bottom: 0;
}

.zz-timeline-icon {
  position: absolute;
  right: -2px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffeb3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.zz-timeline-content {
  background: #fafafa;
  border-radius: 12px;
  padding: 8px 12px;
  margin-right: 32px;
}

.zz-timeline-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: pre-line; /* allow \n from carriers (pickup point details, reminders, etc.) */
}

.zz-timeline-date {
  font-size: 0.8rem;
  color: #777;
}


/* Orders table */
.zz-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.85rem;
}

.zz-orders-table th,
.zz-orders-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #eee;
  text-align: right;
  vertical-align: top;
}

.zz-orders-table th {
  font-weight: 600;
  background-color: #fafafa;
}

.zz-no-ship {
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
}


/* Wider layout tweaks */
.zz-orders-table {
  width: 100%;
}

/* Pickup info block */
.zz-pickup-info {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: #fffdf2;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #444;
}


/* Login form buttons inside our wrapper */
.zz-login-form-wrapper button,
.zz-login-form-wrapper input[type=submit] {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background-color: #ffda2a;
  color: #000;
  cursor: pointer;
}

/* Lookup section layout */
.zz-lookup-section {
  margin-top: 12px;
}

.zz-lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.zz-input-small {
  flex: 1 1 200px;
}

#zz-lookup-btn {
  white-space: nowrap;
}


/* Mobile-friendly orders table */
@media (max-width: 640px) {
  .zz-orders-table thead {
    display: none;
  }

  .zz-orders-table,
  .zz-orders-table tbody,
  .zz-orders-table tr,
  .zz-orders-table td {
    display: block;
    width: 100%;
  }

  .zz-orders-table tr {
    margin-bottom: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 8px 10px;
    background-color: #fff;
  }

  .zz-orders-table td {
    border: none;
    padding: 4px 0;
  }

  .zz-orders-table td:nth-child(1) {
    font-weight: 600;
    font-size: 0.95rem;
  }

  .zz-orders-table td:nth-child(2),
  .zz-orders-table td:nth-child(3) {
    font-size: 0.85rem;
    color: #666;
  }

  .zz-orders-table td:nth-child(4)::before {
    content: "שיטת משלוח: ";
    font-weight: 600;
  }

  .zz-orders-table td:nth-child(5)::before {
    content: "מוצרים: ";
    font-weight: 600;
  }

  .zz-orders-table td:nth-child(6) {
    margin-top: 6px;
  }
}


/* Force all plugin buttons to show text, regardless of theme overrides */
.zz-button,
.zz-button-secondary,
.zz-button-tertiary,
.zz-login-form-wrapper button,
.zz-login-form-wrapper input[type=submit],
#zz-track-btn,
#zz-lookup-btn,
#zz-login-orders-btn {
  color: #000 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
}


/* Register note under login form */
.zz-register-note {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

.zz-register-link {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
}


.zz-timeline-separator {
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}


.zz-register-inline {
  margin-top: 8px;
}

.zz-register-form {
  margin-top: 10px;
}

.zz-register-form .zz-input-small {
  margin-bottom: 6px;
}

.zz-register-form .zz-button {
  margin-top: 6px;
}


/* Highlight status words inside sentences */
.zz-status-highlight {
  color: #e6a800;
  font-weight: 600;
}


/* ZigZag all-fields section */
.zz-all-fields-separator {
  margin: 12px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.zz-all-fields-title {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.zz-field-row {
  font-size: 0.9rem;
  padding: 2px 0;
}

.zz-field-key {
  font-weight: 600;
  margin-left: 4px;
}



/* Force RTL layout for the tracking widget (Hebrew) */
.zz-tracking-wrap,
#zz-result-card,
#zz-timeline,
#zz-shipment-extra,
#zz-empty,
#zz-result-title,
#zz-result-subtitle,
#zz-production-status,
#zz-result-badge {
  direction: rtl;
  text-align: right;
}

/* Production current status box */
.zz-production-status {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 0.92rem;
  color: #333;
}

/* Ensure any code/numeric fragments can still read naturally */
.zz-field-key {
  unicode-bidi: plaintext;
}
.zz-field-value {
  unicode-bidi: plaintext;
}


/* WhatsApp button */
.zz-wa-wrap {
  margin-top: 10px;
  margin-bottom: 16px;
}

.zz-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #111;
  background: #111;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.zz-wa-btn:hover {
  background: #000;
}


.zz-wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.zz-wa-text {
  line-height: 1.2;
}


/* Prevent iOS Safari auto-zoom on input focus */
#zz-tracking-input,
#zz-lookup-email,
#zz-lookup-order,
.zz-tracking-wrap input,
.zz-tracking-wrap select,
.zz-tracking-wrap textarea {
  font-size: 16px !important;
}


/* Ordered items line */
.zz-order-items {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}


/* Order items grid */
.zz-items-title {
  font-weight: 700;
  margin: 10px 0 8px;
}

.zz-items-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 560px) {
  .zz-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .zz-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.zz-item-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.zz-item-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
  flex: 0 0 auto;
}

.zz-item-img--placeholder {
  background: #f4f4f4;
}

.zz-item-body {
  min-width: 0;
}

.zz-item-name {
  font-weight: 700;
  line-height: 1.25;
}

.zz-item-sku,
.zz-item-qty {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 2px;
}


/* Small info box */
.zz-info-box {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  background: #fafafa;
  font-weight: 600;
}


/* Office pickup box */
.zz-pickup-box {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e7e7e7;
  background: #fff;
  margin-top: 10px;
}

.zz-pickup-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.zz-pickup-status {
  margin-bottom: 10px;
}

.zz-pickup-desc > div {
  margin: 6px 0;
}

.zz-pickup-phone {
  margin: 10px 0 6px;
}

.zz-pickup-phone-link {
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: underline;
}

.zz-pickup-links {
  margin: 10px 0 6px;
}

.zz-pickup-warn {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ffe2a8;
  background: #fff7e6;
  font-weight: 700;
}
.zz-pickup-hours {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e7e7e7;
}

.zz-pickup-updated{font-weight:600;opacity:.85;margin-right:6px;}


/* Order status cards (timeline-like) */
.zz-status-list-title{
  font-weight:800;
  margin: 10px 0 10px;
}

.zz-status-list{
  position: relative;
}

.zz-status-card{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f7f7;
  margin: 14px 0;
}

.zz-status-card:before{
  content:"";
  position:absolute;
  right: 26px;
  top: -14px;
  bottom: -14px;
  width: 3px;
  background: #f0d44a;
  border-radius: 2px;
  z-index: 0;
}

.zz-status-icon{
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f0d44a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.zz-status-icon-inner{
  font-weight: 900;
}

.zz-status-body{
  min-width: 0;
  text-align: right;
  z-index: 1;
}

.zz-status-text{
  font-weight: 800;
  line-height: 1.25;
  white-space: pre-line;
}

.zz-status-time{
  margin-top: 6px;
  opacity: 0.75;
  font-weight: 600;
  direction: ltr;
}

.zz-pickup-orderno{
  margin: 6px 0 10px;
  font-weight: 700;
}
.zz-pickup-warn--top{
  margin: 10px 0;
}


/* Info note for orders without ZigZag shipment number */
.zz-note{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  padding:14px 16px;
  margin-top:12px;
  background:#fff;
}
.zz-note-title{
  font-weight:700;
  margin-bottom:6px;
}
.zz-note-text{
  line-height:1.5;
  margin:4px 0;
}
.zz-note--info{
  border-color: rgba(0,0,0,0.10);
}

/* Share / copy tracking link */
.zz-share-wrap{
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.zz-copy-link-btn{
  cursor: pointer;
}

.zz-copy-link-btn--done{
  opacity: 0.9;
}


/* Prominent share link UI (frontend tracking page) */
.zz-share-block{
  margin: 12px 0 16px;
  padding: 14px 14px 12px;
  border: 2px solid rgba(255, 193, 7, .55);
  background: rgba(255, 193, 7, .10);
  border-radius: 12px;
}
.zz-share-title{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}
.zz-share-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.zz-share-url{
  direction: ltr;
  text-align: left;
  font-size: 12px;
  opacity: .85;
  word-break: break-all;
}
