/* Checkout date calendar (product page) */
.ppb-checkout-list-container,
.ppb-checkout-calendar-section {
  --ppb-primary: #2d3d2e;
  --ppb-primary-light: #f3e8d7;
  --ppb-accent: #d4a248;
  --ppb-muted: #6b7280;
  --ppb-border: #e5e7eb;
  --ppb-radius: 12px;
  width: 100%;
}

.ppb-checkout-calendar-section {
  clear: both;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ppb-border);
}

.single-product-custom-layout .ppb-checkout-calendar-section {
  flex: 0 0 100%;
  max-width: 100%;
}

.ppb-checkout-form-fields {
  width: 100%;
  margin-top: 1.5rem;
}

.ppb-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ppb-border);
}

.ppb-checkout-actions .single_add_to_cart_button {
  margin: 0;
}

.ppb-book-now-wrapper {
  margin-top: 1.5rem;
}

.ppb-book-now-wrapper .ppb-book-now-scroll {
  width: 100%;
}

.ppb-checkout-booking-form {
  width: 100%;
}

.ppb-checkout-list-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ppb-primary);
  margin: 0 0 0.35rem;
}

.ppb-checkout-list-hint {
  font-size: 0.9rem;
  color: var(--ppb-muted);
  margin: 0 0 1rem;
}

.ppb-checkout-calendar-card {
  width: 100%;
  border: 1px solid var(--ppb-border);
  border-radius: var(--ppb-radius);
  background: #fff;
  overflow: hidden;
}

.ppb-checkout-calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ppb-border);
  background: #faf9f7;
}

.ppb-checkout-month-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--ppb-primary);
  text-transform: capitalize;
}

.ppb-checkout-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ppb-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ppb-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ppb-checkout-nav-btn:hover:not(:disabled) {
  background: var(--ppb-primary-light);
  border-color: var(--ppb-accent);
}

.ppb-checkout-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ppb-checkout-calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0.75rem 0.5rem 0.25rem;
  border-bottom: 1px solid var(--ppb-border);
  text-align: center;
}

.ppb-checkout-weekday {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ppb-muted);
  text-transform: uppercase;
}

.ppb-checkout-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(72px, auto);
  gap: 0;
  width: 100%;
}

.ppb-checkout-day {
  min-height: 72px;
  padding: 0.5rem;
  border-right: 1px solid var(--ppb-border);
  border-bottom: 1px solid var(--ppb-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.15s ease;
}

.ppb-checkout-day:nth-child(7n) {
  border-right: 0;
}

.ppb-checkout-day-other-month {
  background: #fafafa;
}

.ppb-checkout-day-empty {
  background: #fafafa;
}

.ppb-checkout-day-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a0f14;
  margin-bottom: 0.35rem;
}

.ppb-checkout-day-other-month .ppb-checkout-day-number {
  color: var(--ppb-muted);
}

.ppb-checkout-day-today .ppb-checkout-day-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ppb-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.ppb-checkout-day-slots {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}

.ppb-checkout-slot {
  width: 100%;
  border: 1px solid var(--ppb-border);
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.3rem 0.35rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ppb-checkout-slot:hover {
  border-color: var(--ppb-accent);
  background: #d1fae5;
}

.ppb-checkout-slot:focus-visible {
  outline: 2px solid var(--ppb-accent);
  outline-offset: 1px;
}

.ppb-checkout-slot.selected {
  background: var(--ppb-primary-light);
  border-color: var(--ppb-accent);
  color: var(--ppb-primary);
  box-shadow: inset 0 0 0 1px var(--ppb-accent);
}

.ppb-checkout-slot.full {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
  cursor: not-allowed;
  opacity: 0.7;
}

.ppb-checkout-day-full-label {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: #b91c1c;
  text-align: center;
}

.ppb-checkout-day-has-selection {
  background: var(--ppb-primary-light);
}

.ppb-checkout-list-error {
  display: none;
  margin-top: 0.75rem;
}

.ppb-checkout-error-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.ppb-checkout-quantity-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ppb-primary);
  margin-bottom: 0.5rem;
}

.ppb-quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ppb-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.ppb-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ppb-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ppb-qty-btn:hover:not(:disabled) {
  background: var(--ppb-primary-light);
}

.ppb-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ppb-qty-input {
  width: 3rem;
  border: 0;
  border-left: 1px solid var(--ppb-border);
  border-right: 1px solid var(--ppb-border);
  text-align: center;
  font-weight: 600;
  color: #0a0f14;
  background: transparent;
  -moz-appearance: textfield;
}

.ppb-qty-input::-webkit-outer-spin-button,
.ppb-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ppb-checkout-quantity-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--ppb-muted);
}

form.cart.ppb-checkout-booking-form .quantity:has(.ppb-native-qty-hidden),
form.cart.ppb-checkout-booking-form .quantity.hidden {
  display: none !important;
}

.ppb-checkout-empty-month {
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--ppb-muted);
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .ppb-checkout-view-list .ppb-checkout-calendar-grid-header {
    display: none;
  }

  .ppb-checkout-view-list .ppb-checkout-calendar-grid {
    display: block;
    grid-template-columns: unset;
    grid-auto-rows: auto;
  }

  .ppb-checkout-mobile-dates {
    display: flex;
    flex-direction: column;
  }

  .ppb-checkout-mobile-date {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ppb-border);
    background: #fff;
  }

  .ppb-checkout-mobile-date:last-child {
    border-bottom: 0;
  }

  .ppb-checkout-mobile-date-today .ppb-checkout-mobile-date-label::after {
    content: '';
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    background: var(--ppb-primary);
    vertical-align: middle;
  }

  .ppb-checkout-mobile-date-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ppb-primary);
    margin-bottom: 0.75rem;
    text-transform: capitalize;
  }

  .ppb-checkout-mobile-date-slots .ppb-checkout-day-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
  }

  .ppb-checkout-view-list .ppb-checkout-slot {
    width: auto;
    min-width: calc(50% - 0.25rem);
    flex: 1 1 calc(50% - 0.25rem);
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }

  .ppb-checkout-view-list .ppb-checkout-day-full-label {
    font-size: 0.85rem;
    margin-top: 0;
    text-align: left;
  }

  .ppb-checkout-view-grid .ppb-checkout-calendar-grid {
    grid-auto-rows: minmax(56px, auto);
  }

  .ppb-checkout-view-grid .ppb-checkout-day {
    min-height: 56px;
    padding: 0.35rem;
  }

  .ppb-checkout-view-grid .ppb-checkout-day-number {
    font-size: 0.8rem;
  }

  .ppb-checkout-view-grid .ppb-checkout-slot,
  .ppb-checkout-view-grid .ppb-checkout-day-full-label {
    font-size: 0.625rem;
    padding: 0.2rem;
  }

  .ppb-checkout-view-grid .ppb-checkout-weekday {
    font-size: 0.65rem;
  }
}
