/* ============================================================
   TBW WIDGET — Exact Dark Theme Match
   Colors: BG #1A1A1D | Filter BG #101012 | Green #0BB056
   ============================================================ */

/* ── Root Widget ── */
.tbw-widget {
  max-width: 700px;
  background: #1A1A1D;
  border-radius: 14px;
  padding: 14px 18px 18px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #e8ede9;
  border: none;
	margin-top: 30px;
  position: relative;
}

/* ── Tabs Row ── */
.tbw-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.tbw-tabs::before {
  content: "Select Type:";
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  margin-right: 6px;
}

/* SR Amount top right */
.tbw-tabs::after {
  content: attr(data-amount);
  position: absolute;
  right: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0BB056;
  letter-spacing: 0.01em;
}

.tbw-tab {
  flex: none;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #2a2a2e;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, color 0.18s;
}

.tbw-tab.is-active {
  background: #0BB056;
  color: #fff;
}

.tbw-tab:hover:not(.is-active) {
  color: #ccc;
}

/* ── Tab Icons ── */
.tbw-tab[data-tab="traveling"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-7.svg");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.tbw-tab[data-tab="traveling"]:not(.is-active)::before {
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling.svg");
}

.tbw-tab[data-tab="ziarat"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-8.svg");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.tbw-tab[data-tab="ziarat"].is-active::before {
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-8.svg");
	filter: brightness(0) invert(1);
}

/* ── Panels ── */
.tbw-panel { display: none; }
.tbw-panel.is-active { display: block; }

body.tbw-modal-open {
  overflow: hidden;
}

.tbw-thankyou-popup {
  background: rgba(0, 0, 0, 0.82);
  display: none;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 999999;
}

.tbw-thankyou-popup.is-visible {
  display: block;
}

.tbw-thankyou-dialog {
  background: #101012;
  border: 1px solid #2a2a2e;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-width: 390px;
  padding: 28px 24px 24px;
  position: fixed;
  left: 50%;
  top: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  width: min(390px, calc(100vw - 36px));
}

.tbw-thankyou-close {
  background: transparent;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 12px;
}

.tbw-thankyou-close:hover {
  color: #fff;
}

.tbw-thankyou-icon {
  align-items: center;
  background: var(--purple);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 26px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  margin-bottom: 14px;
  width: 54px;
}

.tbw-thankyou-dialog h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px;
}

.tbw-thankyou-dialog p {
  color: #c6c9cf;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── Traveling & Ziarat: horizontal field row ── */
.tbw-panel[data-panel="traveling"].is-active,
.tbw-panel[data-panel="ziarat"].is-active {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #101012;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.tbw-panel[data-panel="traveling"] .tbw-row,
.tbw-panel[data-panel="ziarat"] .tbw-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  margin: 0;
  border-right: 1px solid #2a2a2e;
  position: relative;
  min-width: 0;
}

.tbw-panel[data-panel="traveling"] .tbw-row:last-of-type,
.tbw-panel[data-panel="ziarat"] .tbw-row:last-of-type {
  border-right: none;
}

.tbw-panel[data-panel="traveling"] .tbw-row label,
.tbw-panel[data-panel="ziarat"] .tbw-row label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  opacity: 1;
  margin: 0;
}

/* ── Field Selects ── */
.tbw-panel[data-panel="traveling"] .tbw-row select,
.tbw-panel[data-panel="ziarat"] .tbw-row select {
  background: transparent;
  border: none;
  color: #d0d0d0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.tbw-panel[data-panel="traveling"] .tbw-row select option,
.tbw-panel[data-panel="ziarat"] .tbw-row select option {
  background: #1A1A1D;
  color: #d0d0d0;
}

/* ── Field Icons — pin after FROM & TO ── */
.tbw-panel[data-panel="traveling"] .tbw-row:nth-child(1)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-4.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.tbw-panel[data-panel="traveling"] .tbw-row:nth-child(2)::after {
	content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-5.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
/* ── Car icon after SELECT VEHICLE ── */
.tbw-panel[data-panel="traveling"] .tbw-row:nth-child(3)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-6.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ── Ziarat: city pin icon ── */
.tbw-panel[data-panel="ziarat"] .tbw-row:nth-child(1)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-4.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ── Ziarat: car icon ── */
.tbw-panel[data-panel="ziarat"] .tbw-row:nth-child(2)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-6.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

/* â”€â”€ Ziarat: car icon â”€â”€ */
.tbw-panel[data-panel="ziarat"] .tbw-row:nth-child(3)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  background-image: url("https://goharam.com/wp-content/uploads/2026/05/Travelling-6.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ── Total Amount — full width row at bottom of panel ── */
.tbw-panel[data-panel="traveling"] .tbw-total,
.tbw-panel[data-panel="ziarat"] .tbw-total {
  flex: 0 0 100%;
  border-radius: 0 0 12px 12px;
  border: none;
  border-top: 1px solid #2a2a2e;
  background: #101012;
  margin: 0;
  padding: 14px 16px;
  display: block;
}

.tbw-total-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 4px;
}

.tbw-total-value {
  font-size: 24px;
  font-weight: 600;
  color: #0BB056;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tbw-total.is-loading .tbw-total-value::after {
  animation: tbw-price-spin 0.75s linear infinite;
  border: 2px solid rgba(11, 176, 86, 0.22);
  border-top-color: #0BB056;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 15px;
  margin-left: 2px;
  width: 15px;
}

.tbw-total.is-loading .tbw-amount {
  min-width: 0;
}

.tbw-total-value span:last-child {
  font-size: 24px;
  font-weight: 600;
  color: #0BB056;
}

.tbw-small.tbw-breakdown {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
  display: block;
}

.tbw-car-note {
  font-size: 12px;
  color: #888;
  padding: 6px 10px;
  border-left: 3px solid #0BB056;
  background: transparent;
  margin-top: 8px;
  display: none;
}

/* ── Inquire Now / Next Button ── */
.tbw-checkout-common {
  margin-top: 12px !important;
  display: none;
  justify-content: flex-end;
}

.tbw-checkout-common[style*="block"],
.tbw-checkout-common[style*="flex"] {
  display: flex !important;
}

.tbw-open-checkout {
  background: transparent !important;
  color: #0BB056 !important;
  border: 1.5px solid #0BB056 !important;
  border-radius: 8px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  width: auto !important;
  margin-top: 0 !important;
  animation: none !important;
  transition: background 0.18s, color 0.18s !important;
  letter-spacing: 0.02em;
}

.tbw-open-checkout:hover {
  background: #0BB056 !important;
  color: #fff !important;
  animation: none !important;
}

/* ── Checkout Panel ── */
.tbw-panel[data-panel="checkout"].is-active {
  display: block;
  background: #101012;
  border-radius: 12px;
  padding: 16px;
  margin-top: 4px;
}

.tbw-checkout-section h4 {
  color: #ccc;
  font-size: 15px;
  margin: 0 0 12px;
}

.tbw-panel[data-panel="checkout"] .tbw-row {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tbw-panel[data-panel="checkout"] .tbw-row label {
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 1;
}

.tbw-panel[data-panel="checkout"] .tbw-row input,
.tbw-panel[data-panel="checkout"] .tbw-row textarea,
.tbw-panel[data-panel="checkout"] .tbw-row select {
  background: #fff;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  color: #000;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
	height: 40px;
}

.tbw-panel[data-panel="checkout"] .tbw-row input::placeholder,
.tbw-panel[data-panel="checkout"] .tbw-row textarea::placeholder {
  color: #444;
}

.tbw-panel[data-panel="checkout"] .tbw-row input:focus,
.tbw-panel[data-panel="checkout"] .tbw-row textarea:focus,
.tbw-panel[data-panel="checkout"] .tbw-row select:focus {
  border-color: #0BB056;
}

/* ── Action Buttons ── */
.tbw-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.tbw-book {
  background: #0BB056;
  color: #fff;
}

.tbw-book.is-loading { opacity: .7; cursor: wait; }

.tbw-wa {
  background: #25D366;
  color: #fff;
}

.tbw-action-buttons { margin-top: 4px; }

/* ── Messages ── */
.tbw-msg { margin-top: 10px; font-size: 13px; }
.tbw-msg.is-error { color: #f4a261; }
.tbw-msg.is-ok    { color: #0BB056; }

/* ── Modal ── */
span.tbw-modal-close {
  font-size: 40px;
  float: right;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  background: #0BB056;
  border-radius: 50px 0 0 50px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  color: #fff;
}

#tbw-checkout-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.82);
  z-index: 9999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
}

.tbw-modal-content {
  background: #1A1A1D;
  color: #d0d0d0;
  padding: 25px;
  border-radius: 14px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  border: 1px solid #2a2a2e;
}

/* ── Pulse animation ── */
@keyframes pulse-animation {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(11,176,86,0.6); }
  70%  { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(11,176,86,0);  }
  100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(11,176,86,0);  }
}

@keyframes tbw-price-spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .tbw-widget { max-width: 100%; }

  .tbw-panel[data-panel="traveling"].is-active,
  .tbw-panel[data-panel="ziarat"].is-active {
    flex-direction: column;
  }

  .tbw-panel[data-panel="traveling"] .tbw-row,
  .tbw-panel[data-panel="ziarat"] .tbw-row {
    border-right: none;
    border-bottom: 1px solid #2a2a2e;
  }

  .tbw-panel[data-panel="traveling"] .tbw-row:last-of-type,
  .tbw-panel[data-panel="ziarat"] .tbw-row:last-of-type {
    border-bottom: none;
  }

  .tbw-open-checkout {
    width: 100% !important;
  }

  .tbw-checkout-common {
    justify-content: stretch;
  }
}

.tbw-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between; /* KEY */
}

/* group buttons properly */
.tbw-tabs .left {
  display: flex;
  gap: 8px;
}

/* keep total aligned right */
.tbw-tabs .right {
  margin-left: auto; /* backup alignment */
  display: flex;
  align-items: center;
}
.tbw-checkout-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tbw-checkout-section .tbw-btn-column {
  align-self: end;
}

.tbw-checkout-section .tbw-btn-column .tbw-book {
  height: 40px;
  max-width: 100%;
}

.tbw-checkout-section .tbw-row:nth-last-child(2) {
  grid-column: span 1;
}

.tbw-action-buttons {
  grid-column: span 3;
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.tbw-action-buttons .tbw-btn {
  flex: 1;
}
@media (max-width: 520px) {
  .tbw-checkout-section {
    grid-template-columns: 1fr;
  }

  .tbw-row,
  .tbw-action-buttons {
    grid-column: span 1 !important;
  }

  .tbw-action-buttons {
    flex-direction: column;
  }
}
.tbw-summary-row{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.tbw-summary-row span{
  white-space:nowrap;
}

@media (max-width:767px){
  .tbw-summary-row{
    gap:10px 16px;
  }
}
