/* assets/css/order-form.css */

/* -------------------------------------------------
   COLORS
   Dark:  #212E3B
   Blue:  #0299AA
   Background of page is already sand (#F5F4EE),
   so inside the widget we keep everything pure white.
-------------------------------------------------- */

/* -------------------------
   Booking form wrapper
-------------------------- */

.bclean-booking-wrapper {
  max-width: 980px;
  margin: 40px auto;
  padding: 28px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  font-family: inherit;
  position: relative;
}

/* Optional headings inside wrapper */
.bclean-booking-wrapper h2,
.bclean-booking-wrapper h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #212E3B;
}

/* -------------------------
   Form layout
-------------------------- */

#bclean-booking-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
}

#bclean-booking-form .bclean-form-col {
  flex: 1 1 0;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#bclean-booking-form .bclean-form-col-full {
  flex: 1 1 100%;
  min-width: 100%;
  width: 100%;
}

.bclean-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  z-index: 5;
}

.bclean-login-overlay-btn {
  text-decoration: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0299AA;
  border: 1px solid #0299AA;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}

.bclean-login-overlay-btn:hover {
  background: #027A88;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(2, 122, 136, 0.35);
}

.bclean-login-overlay-btn:visited,
.bclean-login-overlay-btn:focus,
.bclean-login-overlay-btn:focus-visible,
.bclean-login-overlay-btn:active {
  color: #ffffff !important;
}

.bclean-login-overlay-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

#bclean-booking-form .bclean-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

#bclean-booking-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 4px;
  color: #212E3B;
}

.bclean-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.bclean-inline-check input {
  width: 16px;
  height: 16px;
}

.bclean-advanced-fields {
  display: none;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bclean-advanced-fields.is-visible {
  display: grid;
}

#bclean-booking-form select,
#bclean-booking-form input[type="text"],
#bclean-booking-form input[type="number"] {
  border-radius: 10px;
  border: 1px solid #d3d8e2;
  padding: 11px 13px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  background: #ffffff;
}

#bclean-booking-form select:focus,
#bclean-booking-form input[type="text"]:focus,
#bclean-booking-form input[type="number"]:focus {
  border-color: #0299AA;
  box-shadow: 0 0 0 2px rgba(2, 153, 170, 0.25);
}

/* Single column on small screens */
@media (max-width: 640px) {
  #bclean-booking-form {
    flex-direction: column;
  }

  .bclean-advanced-fields {
    grid-template-columns: 1fr;
  }
}

/* Search button */
#bclean-booking-submit {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  background: #0299AA;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  margin-top: 0;
}

#bclean-booking-submit:hover {
  background: #027A88;
  box-shadow: 0 5px 14px rgba(2, 122, 136, 0.35);
}

#bclean-booking-submit:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* Remove ugly browser outline from buttons inside widget */
.bclean-booking-wrapper button:focus,
.bclean-booking-wrapper button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* -------------------------
   Provider result list / message
-------------------------- */

#bclean-booking-results {
  margin-top: 20px;
}

/* Loading state: dim + block interactions */
.bclean-is-loading #bclean-booking-form {
  opacity: 0.6;
}

.bclean-is-loading .flatpickr-calendar {
  pointer-events: none;
}

.bclean-is-loading #bclean-booking-submit {
  cursor: not-allowed;
}

/* Loading state */
.bclean-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(2, 153, 170, 0.08);
  color: #1d2b36;
  font-weight: 600;
  font-size: 0.95rem;
}

.bclean-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(2, 153, 170, 0.2);
  border-top-color: #0299AA;
  animation: bclean-spin 0.8s linear infinite;
}

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

/* Error / empty state text */
#bclean-booking-results > p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(2, 153, 170, 0.04);
  color: #212E3B;
  font-size: 0.9rem;
}

/* UL that holds providers – grid, so list is not super tall */
.bclean-provider-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

/* Single provider card – compact white card */
.bclean-provider {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

/* Left block: title + meta */
.bclean-provider-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.bclean-provider-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8eef1 0%, #b8dbe0 100%);
  color: #1e3a46;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(2, 153, 170, 0.12);
}

.bclean-provider-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bclean-provider-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bclean-provider-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.bclean-provider-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0;
  color: #212E3B;
}

.bclean-provider-price,
.bclean-provider-duration {
  font-size: 0.86rem;
  color: #4b5563;
}

/* Buttons block */
.bclean-provider-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bclean-provider-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bclean-provider-page-label {
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 500;
}

.bclean-provider-page-btn[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.bclean-provider-page-btn:hover,
.bclean-provider-page-btn:focus,
.bclean-provider-page-btn:focus-visible {
  border-color: #0299AA !important;
  background: rgba(2, 153, 170, 0.07) !important;
  color: #0299AA !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .bclean-provider {
    padding: 12px 14px;
    align-items: stretch;
    text-align: left;
  }

  .bclean-provider-main {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .bclean-provider-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .bclean-provider-copy {
    align-items: flex-start;
  }

  .bclean-provider-actions {
    justify-content: flex-start;
  }
}

/* If we hide extra providers for "show more" */
.bclean-provider-hidden {
  display: none;
}

/* -------------------------
   Buttons (results + modal)
-------------------------- */

.bclean-btn {
  border-radius: 999px;
  padding: 7px 18px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.1;
  background: #ffffff;
  color: #212E3B;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
}

/* Outline (Peržiūrėti tiekėją) */
.bclean-btn-outline {
  border-color: #0299AA;
  color: #0299AA;
}

.bclean-btn-outline:hover {
  background: rgba(2, 153, 170, 0.07);
}

/* Primary (Užsakyti šį laiką + primary actions) */
.bclean-btn-primary,
.bclean-book-btn {
  border-color: #0299AA;
  background: #0299AA;
  color: #ffffff;
}

.bclean-btn-primary:hover,
.bclean-book-btn:hover {
  background: #027A88;
  box-shadow: 0 4px 12px rgba(2, 122, 136, 0.4);
}

/* "Show more providers" button */
.bclean-provider-more {
  display: block;
  margin: 8px auto 0;
}

/* -------------------------
   Order modal
-------------------------- */

/* Overlay behind the modal */
#bclean-order-overlay {
  position: fixed;
  inset: 0;
  padding: 32px 16px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* When modal is open, lock page scroll */
body.bclean-modal-open {
  overflow: hidden;
}

/* Modal itself */
#bclean-order-modal {
  width: min(620px, 100%);
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 26px;
  position: relative;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  max-height: 90vh;
  overflow: auto;
}

#bclean-order-modal .bclean-order-modal-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: #212E3B;
}

#bclean-order-summary {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #424b57;
}

/* Close X button */
#bclean-order-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Fields in modal */
#bclean-order-form > div {
  margin-bottom: 14px;
}

#bclean-order-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #212E3B;
}

#bclean-order-form input[type="text"],
#bclean-order-form input[type="tel"],
#bclean-order-form input[type="email"],
#bclean-order-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d3d8e2;
  padding: 9px 11px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  background: #ffffff;
}

#bclean-order-form input:focus,
#bclean-order-form textarea:focus {
  border-color: #0299AA;
  box-shadow: 0 0 0 2px rgba(2, 153, 170, 0.25);
}

/* Buttons row (the div that holds Atšaukti + Patvirtinti) */
#bclean-order-form > div:last-of-type {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Cancel + submit */
#bclean-order-cancel,
#bclean-order-submit {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid #d0d5dd;
  background: #f3f4f6;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

#bclean-order-cancel:hover {
  background: #e5e7eb;
}

/* Primary submit */
#bclean-order-submit {
  border-color: #0299AA;
  background: #0299AA;
  color: #ffffff;
}

#bclean-order-submit:hover {
  background: #027A88;
}

/* Message area under the buttons */
#bclean-order-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

#bclean-order-message.bclean-success {
  color: #15803d;
}

#bclean-order-message.bclean-error {
  color: #b91c1c;
}

/* =================================================
   Button fine-tuning so everything matches brand
   ================================================= */

/* Main booking button on each card */
.bclean-provider-actions .bclean-book-btn {
  border-color: #0299AA;
  background: #0299AA;
  color: #ffffff;
  padding: 7px 20px;
  border-radius: 20px;
}

.bclean-provider-actions .bclean-book-btn:hover {
  background: #027A88;
  box-shadow: 0 4px 12px rgba(2, 122, 136, 0.4);
}

/* "Rodyti daugiau tiekėjų" – neutral, not screaming */
.bclean-provider-more {
  border-radius: 999px !important;
  border: 1px solid #d3d8e2 !important;
  background: #ffffff !important;
  color: #212E3B !important;
  font-weight: 500 !important;
  padding: 8px 22px !important;
  margin-top: 10px !important;
}

.bclean-provider-more:hover {
  background: #f3f4f6 !important;
  border-color: #cbd2e1 !important;
}

/* Compact price + duration row */
.bclean-provider-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bclean-provider-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4b5563;
}

.bclean-provider-price,
.bclean-provider-duration {
  display: inline-block;
}

.bclean-provider-dot {
  font-size: 0.8rem;
  color: #9ca3af;
}

/*--------------------------
  Login warning
---------------------------*/

/* Login warning above form – hidden by default */
.bclean-login-warning {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(2, 153, 170, 0.06);
  border: 1px solid rgba(2, 153, 170, 0.3);
  font-size: 0.9rem;
  color: #212E3B;
}

/* Made visible by JS when user clicks "Užsakyti" while logged out */
.bclean-login-warning.is-visible {
  display: block;
}

/* Pulse effect to draw attention */
.bclean-login-warning.is-pulsing {
  animation: bclean-login-pulse 0.45s ease-in-out 0s 2 alternate;
}

@keyframes bclean-login-pulse {
  from {
    background: rgba(2, 153, 170, 0.06);
  }
  to {
    background: rgba(248, 113, 113, 0.12);
  }
}

.bclean-login-warning a,
.bclean-login-link {
  font-weight: 600;
  text-decoration: underline;
}

/* ============================
   Custom select replacement
   ============================ */

/* Hide native select but keep it in the form & for SRs */
.bclean-native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Wrapper that sits where the select used to be */
.bclean-select {
  position: relative;
  display: block;
  width: 100% !important;
  box-sizing: border-box;
}

/* Strong override for custom select trigger so theme button styles don't leak in */
.bclean-select-trigger {
  width: 100% !important;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #d3d8e2;
  padding: 11px 13px;
  font-size: 0.95rem;
  background: #ffffff !important;
  color: #212E3B !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none !important;
}

/* Also catch plain :focus (some browsers use that, not focus-visible) */
.bclean-select-trigger:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(2, 153, 170, 0.25) !important;
  border-color: #0299AA !important;
}

.bclean-select-trigger:hover,
.bclean-select.is-open .bclean-select-trigger,
.bclean-select-trigger:focus-visible {
  outline: none !important;
  border-color: #0299AA !important;
  box-shadow: 0 0 0 2px rgba(2, 153, 170, 0.25);
  background: #ffffff !important;
}

.bclean-select-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bclean-select-arrow {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #0299AA;
}

/* Dropdown panel */
.bclean-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #d3d8e2;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 10000;
  padding: 4px 0;
  display: none;
}

/* Show when wrapper has .is-open */
.bclean-select.is-open .bclean-select-dropdown {
  display: block;
}

/* Options */
.bclean-select-option {
  padding: 8px 13px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bclean-select-option:hover {
  background: rgba(2, 153, 170, 0.05);
}

.bclean-select-option.is-selected {
  background: rgba(2, 153, 170, 0.08);
}

/* Slightly smaller dropdown on tiny phones */
@media (max-width: 640px) {
  .bclean-select-dropdown {
    max-height: 200px;
  }
}

/* ============================
   Inline date & time pickers
   ============================ */

/* Inline calendar inside "Data" field */
.bclean-provider-booking-form .bclean-field-date .flatpickr-calendar.inline {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
}

/* Inline time picker under "Pradžios laikas" */
.bclean-provider-booking-form .bclean-field-time .flatpickr-calendar.inline {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
}

/* Make sure both calendars don't overflow on mobile */
.bclean-provider-booking-form .bclean-field-date .flatpickr-calendar,
.bclean-provider-booking-form .bclean-field-time .flatpickr-calendar {
  max-width: 100%;
}

/* Remove ugly outlines from flatpickr controls */
.bclean-booking-wrapper .flatpickr-calendar *:focus,
.bclean-booking-wrapper .flatpickr-calendar *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Tidy header arrows (no borders) */
.bclean-booking-wrapper .flatpickr-months .flatpickr-prev-month,
.bclean-booking-wrapper .flatpickr-months .flatpickr-next-month {
  border: 0 !important;
  box-shadow: none !important;
}

/* Style time inputs nicely */
.bclean-booking-wrapper .flatpickr-time .numInputWrapper input {
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  padding: 6px 4px;
}

.bclean-booking-wrapper .flatpickr-time .numInputWrapper input:focus {
  border-color: #0299AA;
  box-shadow: 0 0 0 2px rgba(2, 153, 170, 0.25);
}

/* Hide the tiny borders on up/down arrows */
.bclean-booking-wrapper .flatpickr-time .numInputWrapper span {
  border: 0 !important;
}

/* ============================
   Hide date/time text inputs
   (keep them for JS + form)
   ============================ */

/* Date input */
.bclean-provider-booking-form .bclean-field-date #bclean-date,
/* Time input */
.bclean-provider-booking-form .bclean-field-time #bclean-time {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

/* Make inline pickers feel like equal blocks */
.bclean-provider-booking-form .bclean-field-date .flatpickr-calendar.inline,
.bclean-provider-booking-form .bclean-field-time .flatpickr-calendar.inline {
  width: 100%;
}

/* Align the two fields nicely at the top inside the grid */
.bclean-provider-booking-form .bclean-field-date,
.bclean-provider-booking-form .bclean-field-time {
  align-self: start;
}

/* ============================
   Flatpickr hard layout fixes
   (theme CSS leak protection)
   ============================ */

.bclean-booking-wrapper .flatpickr-calendar,
.bclean-booking-wrapper .flatpickr-calendar * {
  box-sizing: border-box !important;
}

/* Make the calendar fill the column nicely */
.bclean-booking-wrapper .flatpickr-calendar.inline {
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix weekday row spacing/alignment */
.bclean-booking-wrapper .flatpickr-weekdays {
  width: 100% !important;
}

.bclean-booking-wrapper .flatpickr-weekdaycontainer {
  display: flex !important;
  width: 100% !important;
}

.bclean-booking-wrapper span.flatpickr-weekday {
  flex: 1 0 14.2857% !important;
  max-width: 14.2857% !important;
  width: 14.2857% !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Fix days grid width so columns match weekdays */
.bclean-booking-wrapper .flatpickr-days,
.bclean-booking-wrapper .dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.bclean-booking-wrapper .dayContainer {
  display: flex !important;
  flex-wrap: wrap !important;
}

.bclean-booking-wrapper .flatpickr-day {
  flex: 1 0 14.2857% !important;
  max-width: 14.2857% !important;
}

/* Provider page: map + address fields */
.bclean-provider-booking-form .bclean-field-location {
  margin-bottom: 6px;
}

.bclean-provider-booking-form .bclean-map {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
}

.bclean-provider-booking-form .bclean-city-warning {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
}

.bclean-provider-booking-form .bclean-suburb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d2b36;
  cursor: pointer;
  margin-top: 8px;
}

.bclean-provider-booking-form .bclean-suburb-toggle input {
  width: 16px;
  height: 16px;
}

.bclean-provider-booking-form .bclean-suburb-note {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Highlight available days for provider booking */
.bclean-booking-wrapper .flatpickr-day.bclean-available-day {
  border: 1px solid rgba(2, 153, 170, 0.45);
  border-radius: 999px;
}

.bclean-booking-wrapper .flatpickr-day.bclean-available-day:hover {
  background: rgba(2, 153, 170, 0.12);
}

/* Available slots list (provider page only) */
.bclean-provider-booking-form .bclean-available-slots {
  margin-top: 8px;
}

.bclean-provider-booking-form .bclean-slot-summary {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 153, 170, 0.06);
  color: #1d2b36;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Provider loading overlay */
.bclean-provider-booking-form.bclean-is-loading {
  position: relative;
}

.bclean-provider-booking-form.bclean-is-loading::after {
  content: "Kraunama...";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1d2b36;
  border-radius: 12px;
}

.bclean-provider-booking-form .bclean-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bclean-provider-booking-form .bclean-available-slot {
  border: 1px solid #d3d8e2;
  background: #ffffff;
  color: #1d2b36;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.bclean-provider-booking-form .bclean-available-slot.is-active,
.bclean-provider-booking-form .bclean-available-slot:hover {
  border-color: #0299AA;
  background: rgba(2, 153, 170, 0.1);
}

.bclean-provider-booking-form .bclean-slots-empty {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 153, 170, 0.06);
  font-size: 0.85rem;
  color: #1d2b36;
}

.bclean-provider-booking-form .bclean-nearest-slot {
  margin-top: 8px;
}

.bclean-provider-booking-form .bclean-nearest-line {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.bclean-provider-booking-form .bclean-nearest-btn {
  border-color: #0299AA;
  background: #0299AA;
  color: #ffffff;
}

/* Keep month header centered and stable */
.bclean-booking-wrapper .flatpickr-current-month {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Extra safety if theme messes with typography */
.bclean-booking-wrapper .flatpickr-calendar {
  line-height: 1.2 !important;
}
.numInputWrapper input{
	border: 1px solid #fff !important;
}
.numInputWrapper input:hover{
	box-shadow:none !important;
	border-radius: 0px !important;
}
.flatpickr-current-month select{
	border: 1px solid #fff !important;
}

/* ============================
   Provider chat (phase 1 UI)
   ============================ */
.bclean-provider-chat {
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.bclean-provider-chat-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #1d2b36;
}

.bclean-provider-chat-notice {
  border-radius: 12px;
  background: rgba(2, 153, 170, 0.06);
  color: #1d2b36;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.bclean-provider-chat-window {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bclean-provider-chat-day {
  align-self: center;
  font-size: 0.8rem;
  color: #64748b;
  background: #eef2f7;
  border-radius: 999px;
  padding: 3px 10px;
}

.bclean-provider-chat-msg {
  max-width: 100%;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bclean-provider-chat-item {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.bclean-provider-chat-item-other {
  align-self: flex-start;
}

.bclean-provider-chat-item-self {
  align-self: flex-end;
}

.bclean-provider-chat-msg-text {
  white-space: pre-wrap;
}

.bclean-provider-chat-msg-time {
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.2;
  opacity: 0.72;
  padding: 0 6px;
}

.bclean-provider-chat-item-self .bclean-provider-chat-msg-time {
  text-align: right;
}

.bclean-provider-chat-item-other .bclean-provider-chat-msg-time {
  text-align: left;
}

.bclean-provider-chat-msg-other {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1d2b36;
}

.bclean-provider-chat-msg-self {
  background: rgba(2, 153, 170, 0.12);
  border: 1px solid rgba(2, 153, 170, 0.25);
  color: #1d2b36;
}

.bclean-provider-chat-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bclean-provider-chat-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d3d8e2;
  padding: 10px 12px;
  font-size: 0.92rem;
  background: #ffffff;
  resize: vertical;
}

.bclean-provider-chat-form .bclean-btn[disabled],
.bclean-provider-chat-form textarea[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Prevent theme button hover styles (red) from overriding chat send button */
.bclean-provider-chat-form .bclean-btn-primary:hover,
.bclean-provider-chat-form .bclean-btn-primary:focus,
.bclean-provider-chat-form .bclean-btn-primary:focus-visible {
  background: #0299AA !important;
  border-color: #0299AA !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 122, 136, 0.35) !important;
}

.bclean-provider-chat-hint {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.82rem;
}
