/* =====================================================
   QUINTEFETCH CUSTOMER ORDER WEBSITE
   ===================================================== */

* {
  box-sizing: border-box;
}

:root {
  --background: #061018;
  --background-dark: #02090e;
  --card: #0b1821;
  --card-light: #10212b;
  --field: #07131b;

  --teal: #12d4d8;
  --teal-soft: rgba(18, 212, 216, 0.12);

  --border: #28424c;
  --border-light: #365963;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --muted-light: rgba(255, 255, 255, 0.38);

  --danger: #ff7777;
  --success: #58e6a9;
}


/* =====================================================
   BODY
   ===================================================== */

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top,
      #063b45 0%,
      var(--background) 38%,
      var(--background-dark) 100%
    );

  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}


/* =====================================================
   MAIN PAGE
   ===================================================== */

.page {
  width: 100%;
  min-height: 100vh;
}


/* =====================================================
   LOADING SCREEN
   ===================================================== */

#loadingPage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box {
  text-align: center;
}

.loading-logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
}

.loading-logo span {
  color: var(--teal);
}

.loading-text {
  margin-top: 16px;

  color: var(--muted);

  font-size: 14px;
}


/* =====================================================
   AUTHENTICATION
   ===================================================== */

.auth-wrap {
  min-height: 100vh;

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

  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;

  padding: 36px;

  background:
    rgba(11, 24, 33, 0.97);

  border:
    1px solid
    rgba(18, 212, 216, 0.30);

  border-radius: 24px;

  box-shadow:
    0 0 40px
      rgba(18, 212, 216, 0.08),
    0 20px 60px
      rgba(0, 0, 0, 0.45);
}

.brand {
  margin-bottom: 30px;

  text-align: center;
}

.brand h1 {
  margin: 0;

  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand h1 span {
  color: var(--teal);
}

.brand p {
  margin: 9px 0 0;

  color: var(--muted);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.auth-card h2 {
  margin: 0 0 8px;

  font-size: 26px;
}

.auth-subtitle {
  margin: 0 0 24px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.5;
}

.auth-label {
  display: block;

  margin: 16px 0 7px;

  font-size: 13px;
  font-weight: 800;
}

.auth-field {
  width: 100%;

  padding: 15px 16px;

  background: var(--field);
  color: white;

  border: 1px solid var(--border);
  border-radius: 14px;

  outline: none;

  font-size: 16px;
}

.auth-field:focus {
  border-color: var(--teal);

  box-shadow:
    0 0 0 3px
      rgba(18, 212, 216, 0.10);
}

.auth-message {
  min-height: 21px;

  margin-top: 18px;

  text-align: center;

  font-size: 13px;
}

.auth-message.error {
  color: var(--danger);
}

.auth-message.success {
  color: var(--success);
}

.home-link {
  display: block;

  margin-top: 24px;

  color: #78959c;

  text-decoration: none;
  text-align: center;

  font-size: 13px;
}


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

.order-header {
  height: 64px;

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

  padding: 0 22px;

  position: sticky;
  top: 0;
  z-index: 100;

  background:
    rgba(6, 16, 24, 0.97);

  border-bottom:
    1px solid
    rgba(40, 66, 76, 0.65);
}

.header-brand {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.header-brand span {
  color: var(--teal);
}

.sign-out-button {
  padding: 9px 14px;

  background: var(--card);
  color: white;

  border: 1px solid var(--border);
  border-radius: 18px;

  font-size: 11px;
  font-weight: 800;
}


/* =====================================================
   ORDER CONTAINER
   ===================================================== */

.order-container {
  width: 100%;
  max-width: 720px;

  margin: 0 auto;

  padding:
    22px
    18px
    50px;
}

.screen-title {
  margin-bottom: 25px;

  text-align: center;

  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}


/* =====================================================
   PROGRESS BAR
   ===================================================== */

.progress {
  display: flex;
  align-items: flex-start;

  margin-bottom: 32px;
}

.progress-step {
  width: 70px;

  flex-shrink: 0;

  text-align: center;
}

.progress-circle {
  width: 32px;
  height: 32px;

  margin: 0 auto;

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

  background: var(--card-light);

  border: 1px solid var(--border);
  border-radius: 50%;

  color:
    rgba(255, 255, 255, 0.50);

  font-size: 13px;
  font-weight: 900;
}

.progress-step.active
.progress-circle,
.progress-step.completed
.progress-circle {
  background: var(--teal);

  border-color: var(--teal);

  color: var(--background);

  box-shadow:
    0 0 14px
      rgba(18, 212, 216, 0.28);
}

.progress-label {
  margin-top: 8px;

  color:
    rgba(255, 255, 255, 0.30);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.progress-step.active
.progress-label,
.progress-step.completed
.progress-label {
  color: var(--teal);
}

.progress-line {
  height: 2px;

  flex: 1;

  margin-top: 15px;

  background: var(--border);
}

.progress-line.completed {
  background: var(--teal);
}


/* =====================================================
   STEP HEADING
   ===================================================== */

.step-heading {
  margin-bottom: 24px;

  text-align: center;
}

.big-icon {
  width: 82px;
  height: 82px;

  margin:
    0 auto 18px;

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

  background:
    rgba(18, 212, 216, 0.10);

  border:
    1px solid
    rgba(18, 212, 216, 0.55);

  border-radius: 50%;

  box-shadow:
    0 0 22px
      rgba(18, 212, 216, 0.12);

  color: var(--teal);

  font-size: 38px;
}

.step-heading h1 {
  margin: 0;

  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.4px;
}

.step-heading p {
  margin: 12px 0 0;

  color:
    rgba(255, 255, 255, 0.60);

  font-size: 15px;
  line-height: 1.45;
}


/* =====================================================
   CARDS
   ===================================================== */

.card {
  padding: 20px;

  background:
    linear-gradient(
      135deg,
      var(--card-light),
      var(--card)
    );

  border: 1px solid var(--border);
  border-radius: 24px;

  box-shadow:
    0 8px 18px
      rgba(0, 0, 0, 0.22);
}

.card + .card {
  margin-top: 15px;
}

.section-label {
  margin-bottom: 15px;

  display: flex;
  align-items: center;

  gap: 8px;

  color: var(--teal);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}


/* =====================================================
   FORM FIELDS
   ===================================================== */

.field-label {
  margin:
    16px 0 7px;

  color:
    rgba(255, 255, 255, 0.65);

  font-size: 13px;
  font-weight: 700;
}

.field-label:first-child {
  margin-top: 0;
}

.order-field {
  width: 100%;

  padding: 15px 16px;

  background: var(--field);
  color: white;

  border: 1px solid var(--border);
  border-radius: 16px;

  outline: none;

  font-size: 16px;

  resize: vertical;
}

.order-field:focus {
  border-color: var(--teal);

  box-shadow:
    0 0 0 2px
      rgba(18, 212, 216, 0.08);
}

.order-field::placeholder,
.auth-field::placeholder {
  color:
    rgba(255, 255, 255, 0.28);
}


/* =====================================================
   SEARCH
   ===================================================== */

.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  min-height: 56px;

  padding:
    15px
    48px;

  background: var(--field);
  color: white;

  border: 1px solid var(--border);
  border-radius: 16px;

  outline: none;

  font-size: 16px;
}

.search-input:focus {
  border-color: var(--teal);
}

.search-symbol {
  position: absolute;

  left: 17px;
  top: 17px;

  color: var(--teal);

  font-size: 20px;
}

.clear-search {
  width: 38px;
  height: 38px;

  position: absolute;

  right: 10px;
  top: 9px;

  display: none;

  background: transparent;
  color: var(--muted);

  border: none;

  font-size: 20px;
}

.search-status {
  display: none;

  margin-top: 13px;

  color: var(--teal);

  font-size: 13px;
}

.search-error {
  display: none;

  margin-top: 14px;

  padding: 13px;

  background:
    rgba(255, 82, 82, 0.10);

  color: #ff9999;

  border:
    1px solid
    rgba(255, 82, 82, 0.35);

  border-radius: 12px;

  font-size: 13px;
}


/* =====================================================
   SEARCH SUGGESTIONS
   ===================================================== */

.suggestions {
  display: none;

  margin-top: 14px;

  overflow: hidden;

  background: var(--field);

  border: 1px solid var(--border);
  border-radius: 16px;
}

.suggestion {
  width: 100%;

  padding: 14px;

  display: flex;
  align-items: center;

  gap: 12px;

  background: transparent;
  color: white;

  border: none;
  border-bottom:
    1px solid var(--border);

  text-align: left;
}

.suggestion:last-child {
  border-bottom: none;
}

.suggestion:hover {
  background:
    rgba(18, 212, 216, 0.07);
}

.suggestion-icon {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

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

  background:
    rgba(18, 212, 216, 0.12);

  color: var(--teal);

  border-radius: 13px;

  font-size: 21px;
}

.suggestion-text {
  flex: 1;
}

.suggestion-name {
  font-size: 15px;
  font-weight: 800;
}

.suggestion-address {
  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.35;
}

.suggestion-arrow {
  color: var(--teal);

  font-size: 22px;
}


/* =====================================================
   SELECTED LOCATION
   ===================================================== */

.selected-location {
  display: none;

  margin-top: 18px;

  padding: 16px;

  align-items: flex-start;

  gap: 13px;

  background:
    rgba(18, 212, 216, 0.08);

  border:
    1px solid
    rgba(18, 212, 216, 0.45);

  border-radius: 16px;
}

.selected-check {
  width: 46px;
  height: 46px;

  flex-shrink: 0;

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

  background:
    rgba(18, 212, 216, 0.15);

  color: var(--teal);

  border-radius: 50%;

  font-size: 27px;
  font-weight: 900;
}

.selected-label {
  color: var(--teal);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.selected-name {
  margin-top: 5px;

  font-size: 17px;
  font-weight: 800;
}

.selected-address {
  margin-top: 4px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.35;
}


/* =====================================================
   SUMMARY LOCATION
   ===================================================== */

.location-summary {
  margin-bottom: 15px;

  padding: 16px;

  display: flex;
  align-items: center;

  gap: 13px;

  background:
    rgba(18, 212, 216, 0.07);

  border:
    1px solid
    rgba(18, 212, 216, 0.35);

  border-radius: 18px;
}

.summary-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

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

  background:
    rgba(18, 212, 216, 0.13);

  color: var(--teal);

  border-radius: 14px;

  font-size: 23px;
}

.summary-content {
  flex: 1;
}

.summary-label {
  color: var(--teal);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.summary-name {
  margin-top: 4px;

  font-size: 16px;
  font-weight: 800;
}

.summary-address {
  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.3;
}

.summary-check {
  color: var(--teal);

  font-size: 24px;
}


/* =====================================================
   VEHICLE SELECTION
   ===================================================== */

.vehicle-heading {
  margin:
    25px 0 12px;

  color: var(--teal);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.9px;
}

.vehicle-row {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;
}

.vehicle-button {
  min-height: 118px;

  padding: 10px;

  background: var(--field);
  color: white;

  border: 1px solid var(--border);
  border-radius: 18px;

  text-align: center;

  transition:
    0.18s ease;
}

.vehicle-button:hover {
  border-color:
    rgba(18, 212, 216, 0.55);
}

.vehicle-button.selected {
  background:
    rgba(18, 212, 216, 0.12);

  border:
    2px solid var(--teal);

  box-shadow:
    0 0 14px
      rgba(18, 212, 216, 0.13);
}

.vehicle-icon {
  margin-bottom: 8px;

  font-size: 29px;
}

.vehicle-button.selected
.vehicle-icon,
.vehicle-button.selected
.vehicle-title {
  color: var(--teal);
}

.vehicle-title {
  font-size: 11px;
  font-weight: 900;
}

.vehicle-subtitle {
  margin-top: 4px;

  color: var(--muted-light);

  font-size: 9px;
}


/* =====================================================
   REVIEW ROWS
   ===================================================== */

.review-row {
  padding:
    13px 0;

  display: flex;
  justify-content: space-between;

  gap: 18px;

  border-bottom:
    1px solid
    rgba(40, 66, 76, 0.55);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  flex-shrink: 0;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;
}

.review-value {
  text-align: right;

  font-size: 13px;
  font-weight: 800;

  line-height: 1.4;
}

.review-value.teal {
  color: var(--teal);
}


/* =====================================================
   DISTANCE
   ===================================================== */

.distance-box {
  margin-top: 15px;

  padding: 17px;

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

  background:
    rgba(18, 212, 216, 0.08);

  border:
    1px solid
    rgba(18, 212, 216, 0.35);

  border-radius: 16px;
}

.distance-label {
  color: var(--muted);

  font-size: 12px;
  font-weight: 800;
}

.distance-value {
  color: var(--teal);

  font-size: 21px;
  font-weight: 900;
}


/* =====================================================
   SPECIAL DELIVERY
   ===================================================== */

.special-delivery-box {
  margin-top: 16px;

  padding: 18px;

  background:
    rgba(255, 181, 71, 0.10);

  border:
    1px solid
    rgba(255, 181, 71, 0.45);

  border-radius: 16px;
}

.special-delivery-title {
  color: #ffc266;

  font-size: 16px;
  font-weight: 900;
}

.special-delivery-text {
  margin-top: 8px;

  color:
    rgba(255, 255, 255, 0.70);

  font-size: 13px;
  line-height: 1.5;
}


/* =====================================================
   PRICE
   ===================================================== */

.price-card {
  text-align: center;
}

.price-label {
  color: var(--muted);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.price-amount {
  margin-top: 6px;

  color: var(--teal);

  font-size: 43px;
  font-weight: 900;
}

.price-note {
  margin-top: 5px;

  color: var(--muted);

  font-size: 11px;
}


/* =====================================================
   TIP
   ===================================================== */

.tip-heading {
  margin-bottom: 13px;

  font-size: 16px;
  font-weight: 900;
}

.tip-subheading {
  margin:
    -6px 0 16px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.4;
}

.tip-row {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 8px;
}

.tip-button {
  min-height: 50px;

  padding: 8px;

  background: var(--field);
  color: white;

  border: 1px solid var(--border);
  border-radius: 14px;

  font-size: 13px;
  font-weight: 900;
}

.tip-button.selected {
  background:
    rgba(18, 212, 216, 0.13);

  color: var(--teal);

  border:
    2px solid var(--teal);
}

.custom-tip-wrap {
  display: none;

  margin-top: 13px;
}

.custom-tip-wrap.visible {
  display: block;
}


/* =====================================================
   TOTALS
   ===================================================== */

.total-row {
  padding:
    10px 0;

  display: flex;
  justify-content: space-between;

  gap: 15px;

  color: var(--muted);

  font-size: 13px;
}

.total-row strong {
  color: white;
}

.total-row.grand-total {
  margin-top: 8px;

  padding-top: 16px;

  border-top:
    1px solid var(--border);

  color: white;

  font-size: 17px;
  font-weight: 900;
}

.total-row.grand-total strong {
  color: var(--teal);

  font-size: 22px;
}


/* =====================================================
   PAYMENT
   ===================================================== */

.payment-box {
  margin-top: 16px;

  padding: 16px;

  background: var(--field);

  border: 1px solid var(--border);
  border-radius: 16px;
}

#paymentElement {
  min-height: 100px;
}

.payment-message {
  display: none;

  margin-top: 14px;

  padding: 13px;

  border-radius: 12px;

  font-size: 13px;
  line-height: 1.4;
}

.payment-message.error {
  display: block;

  background:
    rgba(255, 82, 82, 0.10);

  color: #ff9999;

  border:
    1px solid
    rgba(255, 82, 82, 0.35);
}

.payment-message.success {
  display: block;

  background:
    rgba(88, 230, 169, 0.10);

  color: var(--success);

  border:
    1px solid
    rgba(88, 230, 169, 0.35);
}


/* =====================================================
   COMPLETE SCREEN
   ===================================================== */

.complete-box {
  padding:
    34px 22px;

  text-align: center;
}

.complete-icon {
  width: 92px;
  height: 92px;

  margin:
    0 auto 20px;

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

  background:
    rgba(88, 230, 169, 0.12);

  color: var(--success);

  border:
    1px solid
    rgba(88, 230, 169, 0.50);

  border-radius: 50%;

  font-size: 48px;
  font-weight: 900;
}

.complete-title {
  margin: 0;

  font-size: 28px;
  font-weight: 900;
}

.complete-text {
  max-width: 460px;

  margin:
    12px auto 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.55;
}

.order-number-display {
  margin-top: 20px;

  padding: 14px;

  background: var(--field);

  border: 1px solid var(--border);
  border-radius: 14px;

  color: var(--teal);

  font-size: 13px;
  font-weight: 900;

  word-break: break-all;
}


/* =====================================================
   BUTTONS
   ===================================================== */

.primary-button {
  width: 100%;
  min-height: 54px;

  margin-top: 23px;

  padding:
    12px 18px;

  background: var(--teal);
  color: var(--background);

  border: none;
  border-radius: 28px;

  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.07);
}

.primary-button:disabled {
  background:
    rgba(255, 255, 255, 0.08);

  color:
    rgba(255, 255, 255, 0.28);
}

.secondary-button {
  width: 100%;
  min-height: 50px;

  margin-top: 12px;

  padding:
    11px 18px;

  background: transparent;
  color: white;

  border: 1px solid #45646b;
  border-radius: 25px;

  font-size: 13px;
  font-weight: 900;
}

.secondary-button:hover {
  border-color: var(--teal);
}

.danger-button {
  width: 100%;
  min-height: 48px;

  margin-top: 12px;

  background: transparent;
  color: #ff9999;

  border:
    1px solid
    rgba(255, 119, 119, 0.40);

  border-radius: 24px;

  font-size: 12px;
  font-weight: 900;
}


/* =====================================================
   WORKING / DISABLED
   ===================================================== */

.working {
  opacity: 0.65;

  pointer-events: none;
}


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

.order-footer {
  margin-top: 20px;

  text-align: center;

  color:
    rgba(255, 255, 255, 0.54);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}


/* =====================================================
   SMALL INFORMATION TEXT
   ===================================================== */

.info-text {
  margin-top: 12px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.45;
}

.teal-text {
  color: var(--teal);
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

  .auth-wrap {
    padding: 14px;

    align-items: flex-start;
  }

  .auth-card {
    margin-top: 15px;

    padding:
      27px 20px;
  }

  .order-header {
    padding:
      0 14px;
  }

  .order-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .progress-step {
    width: 58px;
  }

  .step-heading h1 {
    font-size: 28px;
  }

  .card {
    padding: 17px;
  }

  .vehicle-row {
    gap: 7px;
  }

  .vehicle-button {
    padding:
      8px 4px;
  }

  .tip-row {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .review-row {
    flex-direction: column;

    gap: 5px;
  }

  .review-value {
    text-align: left;
  }
}


/* =====================================================
   VERY SMALL PHONES
   ===================================================== */

@media (max-width: 380px) {

  .progress-step {
    width: 50px;
  }

  .progress-label {
    font-size: 8px;
  }

  .vehicle-title {
    font-size: 10px;
  }

  .vehicle-subtitle {
    display: none;
  }
}

/* =====================================================
   QUINTEFETCH MAIN ORDER PAGE NAVIGATION
   ===================================================== */

.order-header {
  width: 100%;

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

  gap: 24px;

  padding: 14px 4%;

  background: rgba(0, 10, 15, 0.96);

  border-bottom:
    1px solid rgba(0, 229, 255, 0.20);
}


/* =====================================================
   BRAND
   ===================================================== */

.order-header .header-brand {
  flex-shrink: 0;

  color: white;

  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;

  text-decoration: none;
}

.order-header .header-brand span {
  color: #00e5ff;
}


/* =====================================================
   MAIN NAVIGATION
   ===================================================== */

.order-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  margin-left: auto;
}

.order-main-nav a {
  color: #d7faff;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.order-main-nav a:hover {
  color: #00e5ff;
}


/* =====================================================
   ORDER A DELIVERY BUTTON
   ===================================================== */

.order-main-nav .order-nav-button {
  padding: 11px 17px;

  color: #d7faff;

  background:
    rgba(0, 229, 255, 0.06);

  border:
    1px solid #00e5ff;

  border-radius: 10px;
}

.order-main-nav .order-nav-button:hover {
  color: white;

  background:
    rgba(0, 229, 255, 0.14);
}


/* =====================================================
   SIGN OUT
   ===================================================== */

.order-header .sign-out-button {
  flex-shrink: 0;

  margin-left: 0;
}


/* =====================================================
   SMALLER DESKTOP / TABLET
   ===================================================== */

@media (max-width: 1200px) {

  .order-header {
    flex-wrap: wrap;
  }

  .order-main-nav {
    order: 3;

    width: 100%;

    margin-left: 0;

    flex-wrap: wrap;

    gap: 12px 20px;
  }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

  .order-header {
    padding: 14px 18px;
  }

  .order-header .header-brand {
    font-size: 19px;
  }

  .order-main-nav {
    justify-content: flex-start;

    gap: 10px 16px;
  }

  .order-main-nav a {
    font-size: 12px;
  }

  .order-main-nav .order-nav-button {
    padding: 8px 12px;
  }
  
  /* =====================================================
   ACTIVE NAVIGATION PAGE
   ===================================================== */

.order-main-nav a.active-nav {
  padding: 11px 17px;

  color: #d7faff;

  background:
    rgba(0, 229, 255, 0.06);

  border:
    1px solid #00e5ff;

  border-radius: 10px;
}

}

/* =====================================================
   MOBILE NAVIGATION BUTTON
   ===================================================== */

.mobile-menu-button {
  display: none;

  padding: 8px 12px;

  color: #ffffff;
  background: transparent;

  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 9px;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}


/* =====================================================
   PHONE HEADER
   ===================================================== */

@media (max-width: 700px) {

  .order-header {
    position: relative;

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

    flex-wrap: wrap;

    width: 100%;

    padding: 14px 18px;

    gap: 10px;
  }


  /* BRAND */

  .order-header .header-brand {
    order: 1;

    font-size: 20px;

    margin: 0;
  }


  /* HAMBURGER */

  .mobile-menu-button {
    display: block;

    order: 2;

    margin-left: auto;
  }


  /* HIDE SIGN OUT UNTIL MENU OPENS */

  .order-header .sign-out-button {
    display: none;

    order: 4;

    width: 100%;

    margin: 4px 0 0;

    padding: 12px;
  }


  /* NAVIGATION CLOSED */

  .order-main-nav {
    display: none;

    order: 3;

    width: 100%;

    margin: 8px 0 0;

    padding: 12px 0 4px;

    flex-direction: column;
    align-items: stretch;

    gap: 6px;

    border-top:
      1px solid rgba(0, 229, 255, 0.18);
  }


  /* NAVIGATION OPEN */

  .order-main-nav.mobile-open {
    display: flex;
  }


  .order-main-nav.mobile-open +
  .sign-out-button {
    display: block;
  }


  /* MOBILE LINKS */

  .order-main-nav a {
    display: block;

    width: 100%;

    padding: 11px 12px;

    font-size: 14px;

    text-align: left;

    border-radius: 8px;
  }


  /* CURRENT PAGE */

  .order-main-nav a.active-nav {
    padding: 11px 12px;

    border: 1px solid #00e5ff;

    background:
      rgba(0, 229, 255, 0.08);
  }


  /* ORDER BUTTON SHOULDN'T HAVE DIFFERENT SIZE */

  .order-main-nav .order-nav-button {
    padding: 11px 12px;
  }

}

/* =====================================================
   FINAL MOBILE MENU OVERRIDE
   KEEP THIS AT VERY BOTTOM OF FILE
   ===================================================== */

@media screen and (max-width: 700px) {

  .order-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }


  /* MOBILE MENU BUTTON */

  .mobile-menu-button {
    display: block !important;
    order: 2 !important;
    margin-left: auto !important;
  }


  /* NAV MUST BE HIDDEN BY DEFAULT */

  .order-header .order-main-nav {
    display: none !important;

    order: 4 !important;

    width: 100% !important;

    margin: 10px 0 0 !important;

    padding: 12px 0 0 !important;

    flex-direction: column !important;
    align-items: stretch !important;

    gap: 6px !important;
  }


  /* ONLY SHOW NAV AFTER ☰ IS PRESSED */

  .order-header .order-main-nav.mobile-open {
    display: flex !important;
  }


  /* SIGN OUT STAYS IN TOP HEADER */

  .order-header .sign-out-button {
    display: block !important;

    order: 3 !important;

    width: auto !important;

    margin: 0 0 0 10px !important;
  }


  /* MENU LINKS WHEN OPEN */

  .order-header .order-main-nav a {
    display: block !important;

    width: 100% !important;

    padding: 12px 14px !important;

    text-align: left !important;
  }


  /* ACTIVE PAGE */

  .order-header .order-main-nav a.active-nav {
    border: 1px solid #00e5ff !important;

    border-radius: 9px !important;

    background:
      rgba(0, 229, 255, 0.08) !important;
  }

}

/* =====================================================
   FINAL MOBILE DROPDOWN POSITION
   ===================================================== */

@media screen and (max-width: 700px) {

  .order-header {
    position: relative !important;

    flex-wrap: nowrap !important;

    z-index: 1000 !important;
  }


  /* OPENED NAVIGATION BECOMES A DROPDOWN */

  .order-header .order-main-nav {
    position: absolute !important;

    top: 100% !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 14px 18px 18px !important;

    background: #00151c !important;

    border-top:
      1px solid rgba(0, 229, 255, 0.20) !important;

    border-bottom:
      1px solid rgba(0, 229, 255, 0.30) !important;

    box-shadow:
      0 18px 30px rgba(0, 0, 0, 0.45) !important;

    z-index: 9999 !important;
  }


  /* STILL CLOSED BY DEFAULT */

  .order-header .order-main-nav:not(.mobile-open) {
    display: none !important;
  }


  /* OPEN */

  .order-header .order-main-nav.mobile-open {
    display: flex !important;

    flex-direction: column !important;

    align-items: stretch !important;

    gap: 5px !important;
  }


  /* EACH MENU ITEM */

  .order-header .order-main-nav a {
    width: 100% !important;

    padding: 12px 14px !important;

    margin: 0 !important;

    text-align: left !important;

    line-height: 1.3 !important;
  }


  /* ACTIVE PAGE */

  .order-header .order-main-nav a.active-nav {
    padding: 12px 14px !important;

    border:
      1px solid #00e5ff !important;

    border-radius: 9px !important;
  }

}

/* =====================================================
   SPECIAL DELIVERY CARD TIP PAYMENT
   ===================================================== */

.special-tip-button {
  width: auto;
  min-width: 82px;
  min-height: 48px;

  margin:
    8px 8px 8px 0;

  padding:
    10px 18px;

  border-radius: 14px;

  font-size: 14px;
  font-weight: 900;
}


/* Selected tip */

.special-tip-button.primary-button {
  background: var(--teal);
  color: var(--background);

  border:
    2px solid var(--teal);

  box-shadow:
    0 0 14px
      rgba(18, 212, 216, 0.18);
}


/* Unselected tips */

.special-tip-button.secondary-button {
  background: var(--field);
  color: white;

  border:
    1px solid var(--border);
}


/* Custom tip field */

#special-custom-tip {
  width: 100%;
  max-width: 220px;
  min-height: 48px;

  margin-top: 8px;

  padding:
    12px 15px;

  background: var(--field);
  color: white;

  border:
    1px solid var(--border);

  border-radius: 14px;

  outline: none;

  font-size: 16px;
}


#special-custom-tip:focus {
  border-color: var(--teal);

  box-shadow:
    0 0 0 2px
      rgba(18, 212, 216, 0.10);
}


#special-custom-tip::placeholder {
  color:
    rgba(255, 255, 255, 0.30);
}


/* Special Delivery card screen buttons */

#special-continue-to-card-button,
#special-pay-button {
  max-width: 360px;
}


#special-card-back-button {
  max-width: 360px;
}


/* Disabled tip controls */

.special-tip-button:disabled,
#special-custom-tip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* Phone layout */

@media screen and (max-width: 600px) {

  .special-tip-button {
    min-width: 72px;

    padding:
      10px 14px;
  }


  #special-custom-tip {
    max-width: 100%;
  }


  #special-continue-to-card-button,
  #special-pay-button,
  #special-card-back-button {
    max-width: 100%;
  }

}

/* =====================================================
   SPECIAL DELIVERY PAYMENT METHOD BUTTONS
   ===================================================== */

#payment-method-area {
  text-align: left;
}


#card-payment-button,
#etransfer-payment-button {
  width: 100%;
  max-width: 360px;

  min-height: 54px;

  margin-top: 14px;

  padding:
    12px 18px;

  border-radius: 28px;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
}


/* Card — main payment option */

#card-payment-button {
  background: var(--teal);
  color: var(--background);

  border: none;
}


/* Interac e-Transfer — secondary payment option */

#etransfer-payment-button {
  display: block;

  background: transparent;
  color: white;

  border:
    1px solid #45646b;
}


#etransfer-payment-button:hover {
  border-color: var(--teal);
}


@media screen and (max-width: 600px) {

  #card-payment-button,
  #etransfer-payment-button {
    max-width: 100%;
  }

}

/* =====================================================
   SPECIAL DELIVERY CUSTOM TIP LAYOUT
   ===================================================== */

#stripe-payment-area label[for="special-custom-tip"] {
  display: block;

  margin-top: 14px;
  margin-bottom: 6px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 800;
}


#special-custom-tip {
  display: block;
  margin-top: 0;
}
/* =====================================================
   SMART PICKUP SYSTEM
   ===================================================== */

.smart-pickup-card {
  overflow: hidden;
}

.smart-pickup-heading {
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.smart-pickup-copy {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.smart-pickup-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.smart-pickup-option {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid #36545b;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.smart-pickup-option:hover {
  border-color: var(--teal);
  background: rgba(18, 212, 216, 0.07);
  transform: translateY(-1px);
}

.smart-pickup-option.selected {
  border-color: var(--teal);
  background: rgba(18, 212, 216, 0.12);
  box-shadow: 0 0 0 1px rgba(18, 212, 216, 0.22) inset;
}

.smart-pickup-option-icon {
  flex: 0 0 auto;
  width: 42px;
  font-size: 30px;
  line-height: 1;
  text-align: center;
}

.smart-pickup-option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.smart-pickup-option-text strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.25px;
}

.smart-pickup-option-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.smart-pickup-selection {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 212, 216, 0.45);
  border-radius: 14px;
  background: rgba(18, 212, 216, 0.07);
}

.smart-pickup-selection .selected-label {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.smart-pickup-selection .selected-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

/* =====================================================
   LIVE DRIVER AVAILABILITY
   ===================================================== */

.driver-availability-card {
  position: relative;
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
}

.driver-availability-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #78909c;
}

.driver-availability-title {
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.driver-availability-eta {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.driver-availability-message {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.driver-availability-card[data-availability="ready"] {
  border-color: rgba(63, 208, 122, 0.55);
  background: rgba(63, 208, 122, 0.055);
}

.driver-availability-card[data-availability="ready"]::before {
  background: #3fd07a;
}

.driver-availability-card[data-availability="finishing"] {
  border-color: rgba(246, 210, 75, 0.55);
  background: rgba(246, 210, 75, 0.055);
}

.driver-availability-card[data-availability="finishing"]::before {
  background: #f6d24b;
}

.driver-availability-card[data-availability="busy"] {
  border-color: rgba(255, 159, 67, 0.55);
  background: rgba(255, 159, 67, 0.055);
}

.driver-availability-card[data-availability="busy"]::before {
  background: #ff9f43;
}

.driver-availability-card[data-availability="offline"] {
  border-color: rgba(150, 160, 168, 0.42);
  background: rgba(150, 160, 168, 0.045);
}

.driver-availability-card[data-availability="offline"]::before {
  background: #7d878d;
}

.driver-availability-card[data-availability="loading"] {
  border-color: rgba(18, 212, 216, 0.4);
  background: rgba(18, 212, 216, 0.04);
}

.driver-availability-card[data-availability="loading"]::before {
  background: var(--teal);
}

.driver-availability-card[data-availability="error"] {
  border-color: rgba(255, 159, 67, 0.45);
  background: rgba(255, 159, 67, 0.04);
}

.driver-availability-card[data-availability="error"]::before {
  background: #ff9f43;
}

@media screen and (max-width: 600px) {
  .smart-pickup-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .smart-pickup-option {
    min-height: 78px;
    padding: 13px;
    border-radius: 14px;
  }

  .smart-pickup-option-icon {
    width: 38px;
    font-size: 27px;
  }

  .smart-pickup-heading {
    font-size: 20px;
  }

  .driver-availability-title {
    font-size: 18px;
  }
}

/* =========================================================
   SMART PICKUP — FAST FOOD BUSINESS CARDS
   ========================================================= */

.smart-business-section {
  margin-top: 18px;
}

.smart-business-section[hidden] {
  display: none !important;
}

.smart-business-heading {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.smart-business-copy {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.smart-business-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.smart-business-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 176px;
  padding: 14px 12px 13px;
  border: 1px solid rgba(31, 232, 224, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 30, 39, 0.98), rgba(8, 15, 21, 0.98));
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.smart-business-option:hover {
  border-color: rgba(31, 232, 224, 0.78);
  box-shadow: 0 0 20px rgba(31, 232, 224, 0.12);
  transform: translateY(-1px);
}

.smart-business-option:focus-visible {
  outline: 3px solid rgba(31, 232, 224, 0.42);
  outline-offset: 2px;
}

.smart-business-option.selected {
  border-color: #1fe8e0;
  background:
    linear-gradient(180deg, rgba(17, 45, 51, 0.98), rgba(8, 22, 27, 0.98));
  box-shadow:
    0 0 0 1px rgba(31, 232, 224, 0.22),
    0 0 22px rgba(31, 232, 224, 0.16);
}

.fast-food-business-image {
  display: block;
  width: 104px;
  height: 104px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.fast-food-business-name {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.smart-business-selection {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 232, 224, 0.24);
  border-radius: 12px;
  background: rgba(31, 232, 224, 0.06);
}

.smart-business-selection[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .smart-business-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .smart-business-option {
    min-height: 154px;
    padding: 12px 8px;
  }

  .fast-food-business-image {
    width: 88px;
    height: 88px;
  }

  .fast-food-business-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .fast-food-business-image {
    width: 78px;
    height: 78px;
  }

  .smart-business-option {
    min-height: 142px;
  }
}

