/* ============================================================
   Frontend WordPress integration overrides.
   Themes override generic span/svg/button rules and can collapse our
   inline icons to 0 width. Scoped to the shortcode wrapper.
   ============================================================ */

.asb-booking .icon {
  display: inline-flex !important;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  align-items: center;
  justify-content: center;
}
.asb-booking .icon svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}

/* Keep the supplied calendar header layout intact inside any theme. */
.asb-booking .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asb-booking .cal-nav {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asb-booking .cal-nav:hover {
  background: var(--card);
  color: var(--primary);
}

/* Theme button styles add large padding to calendar/slot buttons, which blows
   out the mobile layout. Restore the supplied compact sizing. */
.asb-booking .cal-day,
.asb-booking .cal-nav {
  padding: 0 !important;
  min-width: 0;
}
.asb-booking .slot-btn {
  padding: 10px !important;
  min-width: 0;
}
.asb-booking .datetime-layout > * {
  min-width: 0;
}
.asb-booking .calendar-days,
.asb-booking .slots-grid {
  min-width: 0;
  width: 100%;
}


/* Buttons keep the supplied design even with theme button styling. */
.asb-booking .btn {
  display: inline-flex;
  text-decoration: none;
}

/* Highlighted payment notice beside the fee on the review step. */
.asb-booking .summary-fee-row .summary-value strong {
  font-size: 1rem;
}
.asb-booking .fee-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  background: var(--warning-light);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}
.asb-booking .fee-inline .icon {
  color: var(--warning);
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
.asb-booking .fee-inline .icon svg {
  width: 14px !important;
  height: 14px !important;
}

/* Progress indicator: centred steps, connector lines between circles. */
.asb-booking .booking-progress {
  max-width: 900px;
  margin: 0 auto 32px;
}
.asb-booking .progress-steps {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.asb-booking .progress-step {
  flex: 0 0 auto;
  width: 76px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.asb-booking .progress-circle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0 auto;
}
.asb-booking .progress-line {
  flex: 1 1 20px;
  min-width: 8px;
  align-self: flex-start;
  margin: 17px 0 0;
  z-index: 0;
}
.asb-booking .progress-label {
  width: 100%;
  text-align: center;
}

.asb-booking .asb-recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
}

.asb-booking .asb-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.asb-booking .service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Confirmation actions must stay inside the card on narrow screens. */
.asb-booking .step-actions {
  flex-wrap: wrap;
}
.asb-booking .step-actions .btn {
  max-width: 100%;
  white-space: normal;
}

/* Print only the booking confirmation, never the site header/footer. */
@media print {
  body * {
    visibility: hidden !important;
  }
  .asb-booking .confirmation-card,
  .asb-booking .confirmation-card * {
    visibility: visible !important;
  }
  .asb-booking .confirmation-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .asb-booking .confirmation-card .step-actions,
  .asb-booking .confirmation-card .btn {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .asb-booking .progress-step { width: 54px; }
  .asb-booking .progress-label { font-size: 0.65rem; }
}
@media (max-width: 480px) {
  .asb-booking .progress-step { width: 50px; }
  .asb-booking .progress-circle { width: 30px; height: 30px; flex-basis: 30px; }
  .asb-booking .progress-line { margin-top: 14px; }
}

