/* Booking widget — consult-type toggle, date select, slot grid, login gate. */

/* ── Consult-type toggle ── */
.gc-ps {
  font-family: 'Inter', sans-serif;
  color: #0F2D4A;
}

.gc-ps *,
.gc-ps *::before,
.gc-ps *::after {
  box-sizing: border-box;
}

.gc-ps-consult-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

button.gc-ps-consult-toggle {
  background: #ffffff;
  border: 1px solid rgba(15, 45, 74, 0.08) !important;
  border-radius: 7px !important;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  transition: border-color .15s, background .15s;
}

button.gc-ps-consult-toggle.is-active,
button.gc-ps-consult-toggle:hover {
  border-color: #1A7A6E !important;
  background: #F0F7F6 !important;
}

.gc-ps-consult-toggle-icon {
  color: #1A7A6E;
  line-height: 0;
  display: block;
}

.gc-ps-consult-toggle-label {
  font-size: 12px;
  font-weight: 500;
  color: #0F2D4A;
  display: block;
}


button.gc-ps-booking-btn {
    width: 100%;
    background-color: #ff6b4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: not-allowed;
}
button.gc-ps-booking-btn:hover {
     background-color: #ff6b4a;
    opacity: 0.9;
}

.gc-ps-consult-toggle-price {
  font-size: 12px;
  font-weight: 700;
  color: #0F2D4A;
  display: block;
}

/* ── Discounted price: struck-through original, then an OFF/surcharge badge, then the actual price — each its own row ── */
.gc-ps-toggle-price-strike {
  font-size: 11px;
  color: #94A3B8;
  text-decoration: line-through;
  display: block;
}

.gc-ps-toggle-off-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin: 2px 0;
}

.gc-ps-toggle-off-badge.is-discount {
  color: #0F6E56;
  background: #DCF3EA;
}

.gc-ps-toggle-off-badge.is-surcharge {
  color: #B35A1D;
  background: #FDEEE3;
}

/* ── Login gate ── */
.gc-ps-login-gate {
  border-top: 1px dashed rgba(15, 45, 74, 0.08);
  padding-top: 18px;
  text-align: center;
}

.gc-ps-login-gate-text {
  font-size: 13px;
  color: #5A6E7F;
  margin: 0 0 12px;
}

.gc-ps-login-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-ps-login-gate-login {
  display: block;
  width: 100%;
  background: #FF6B4A;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.gc-ps-login-gate-register {
  font-size: 12px;
  color: #1A7A6E;
  text-decoration: underline;
}

/* ── Empty state ── */
.gc-ps-booking-empty {
  font-size: 13px;
  color: #5A6E7F;
  border-top: 1px dashed rgba(15, 45, 74, 0.08);
  padding-top: 18px;
  margin: 0;
  line-height: 1.6;
}

/* ── Date select ── */
.gc-ps-date-label {
  display: block;
  margin-bottom: 10px;
}

.gc-ps-date-select {
  width: 100%;
  border: 1px solid rgba(15, 45, 74, 0.08);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #0F2D4A;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.gc-ps-date-select:focus {
  border-color: #1A7A6E;
}

.gc-ps-slots-label {
  font-size: 11px;
  color: #5A6E7F;
  font-weight: 500;
  margin: 14px 0 8px;
}

/* ── Slot grid ── */
.gc-ps-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
  transition: opacity .15s;
}

.gc-ps-slot-grid.is-loading {
  opacity: .5;
  pointer-events: none;
}

button.gc-ps-slot {
  background: #ffffff;
  border: 0.5px solid rgba(15, 45, 74, 0.1);
  border-radius: 6px;
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  color: #0F2D4A;
  cursor: pointer;
  transition: all .15s;
}

.gc-ps-slot:hover:not(:disabled):not(.is-taken) {
  border-color: #1A7A6E;
}

.gc-ps-slot.is-taken {
  opacity: .35;
  cursor: default;
}

.gc-ps-slot.is-selected,
.gc-ps-slot:hover {
  background-color: #0F2D4A !important;
  color: #ffffff !important;
  border-color: #0F2D4A !important;
}

/* ── Confirm button ── */
.gc-ps-confirm-btn {
  cursor: pointer;
  opacity: 1;
}

button.gc-ps-confirm-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #FF6B4A;
}

/* ── Toast ── */
.gc-ps-booking-toast {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  border-radius: 6px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .2s;
}

.gc-ps-booking-toast.is-visible {
  padding: 9px 10px;
  max-height: 80px;
  opacity: 1;
}

.gc-ps-booking-toast.is-success {
  background: #F0F7F6;
  color: #0F6E56;
}

.gc-ps-booking-toast.is-error {
  background: #FDF3F1;
  color: #B3311D;
}

@media (max-width: 560px) {
  .gc-ps-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}