/**
 * RSTQ Modern 1.1.6.4 — header "Available 24/7 / BOOK NOW" + contact links
 * Scoped to .limoking-logo-right-text.
 * Desktop (≥768): unchanged — box left of phone/email, absolute right of logo.
 * Mobile (≤767): compact row under centered logo (box + contacts); wraps at ~360px.
 * Parent limoking already shows .limoking-logo-right-text on mobile (static/centered);
 * only this child previously hid .rstq-header-available — now shown.
 */

.limoking-logo-right-text {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.limoking-logo-right-text .rstq-header-contacts {
  display: block;
  text-align: right;
  line-height: 1.1;
  flex-shrink: 0;
}

/* Contact anchors — match existing white text, no underline */
.limoking-logo-right-text a.rstq-header-contact {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: inherit;
  line-height: inherit;
  border: 0;
  box-shadow: none;
}
.limoking-logo-right-text a.rstq-header-contact:hover,
.limoking-logo-right-text a.rstq-header-contact:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  outline: none;
}

.rstq-header-available {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  order: -1; /* sit to the left of the phone/email stack */
  color: #ffffff;
  line-height: 1.15;
}

.rstq-header-available__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.rstq-header-available__svg {
  display: block;
  width: 28px;
  height: 28px;
}

.rstq-header-available__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rstq-header-available__label {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rstq-header-available__book {
  display: inline-block;
  color: #e6ae48 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0;
  box-shadow: none;
}

.rstq-header-available__book:hover,
.rstq-header-available__book:focus {
  color: #c9932f !important;
  text-decoration: underline !important;
}

/* -------------------------------------------------------------------------
   Mobile ≤767: show Available box + contacts in a compact row under the
   centered logo. Parent already un-floats .limoking-logo-right-text; we
   only change child rules. Hamburger (absolute right) and centered logo
   are untouched. Comfortable tap targets (≥44px). Wraps cleanly at 360px.
   ------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
  .limoking-logo-right-text {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    text-align: center;
    padding: 4px 12px 18px;
    margin-top: 0 !important;
    margin-right: 0 !important;
    position: static !important;
    float: none !important;
    top: auto !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .rstq-header-available {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: -1;
    flex: 0 0 auto;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 6px;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
  }

  .rstq-header-available__svg {
    width: 24px;
    height: 24px;
  }

  .rstq-header-available__label {
    font-size: 12px;
  }

  .rstq-header-available__book {
    font-size: 12px;
    /* enlarge hit area without changing visual size much */
    padding: 6px 0;
    min-height: 28px;
    line-height: 1.2;
  }

  /* Keep theme HTML flow (img + span inline per row). Do NOT flex-column
     the contacts wrapper — that stacks each <img> above its number. */
  .limoking-logo-right-text .rstq-header-contacts {
    display: block !important;
    text-align: left;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    line-height: 1.25;
    padding: 4px 0;
  }

  /* Tighten the theme's 12px spacer between phone and email on mobile */
  .limoking-logo-right-text .rstq-header-contacts .limoking-space {
    margin-top: 6px !important;
  }

  .limoking-logo-right-text a.rstq-header-contact {
    display: inline;
    min-height: 0;
    padding: 0;
    line-height: 1.25;
  }

  /* Slightly smaller icons; stay inline with the number/email */
  .limoking-logo-right-text .rstq-header-contacts img {
    max-height: 18px;
    width: auto;
    vertical-align: middle;
  }
}

/* Very narrow phones: stack box above contacts, both centered */
@media only screen and (max-width: 360px) {
  .limoking-logo-right-text {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .limoking-logo-right-text .rstq-header-contacts {
    text-align: center;
  }
}

/* 1.1.5.3: header logo position. Desktop: flush left with container edge. */
@media only screen and (min-width: 768px) {
  .limoking-logo-container .limoking-logo,
  .limoking-logo-container .limoking-logo .limoking-logo-inner {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .limoking-logo-container .limoking-logo img {
    margin-left: 0 !important;
  }
}
/* Mobile: logo truly centered; size unchanged; hamburger untouched. */
@media only screen and (max-width: 767px) {
  .limoking-logo-container .limoking-logo,
  .limoking-logo-container .limoking-logo .limoking-logo-inner {
    text-align: center !important;
    float: none !important;
  }
  /* Theme reserves padding-right:60px for the hamburger; mirror it on the
     left so the logo is centered on the header, not offset left. */
  .limoking-logo-container .limoking-logo {
    padding-left: 60px !important;
  }
  .limoking-logo-container .limoking-logo .limoking-logo-inner {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .limoking-logo-container .limoking-logo img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 1.1.5.4: keep the far-left logo off the screen edge on narrower desktops. */
@media (min-width: 768px) and (max-width: 1199px) {
  .limoking-logo-container .limoking-logo {
    padding-left: 15px !important;
  }
}
