:root {
  --rr-navy: #1e2b40;
  --rr-yellow: #ffbf19;
  --rr-green: #24b765;
  --rr-orange: #f5aa16;
  --rr-grey: #c7cbd1;
  --rr-border: #dfe3e8;
  --rr-soft: #f7f8fa;
}

/* Page de réservation autonome (shortcode [visite_rucher]). */
.rr-page {
  max-width: 1140px;
  margin: 0 auto;
}

.rr-page-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.rr-page-info {
  flex: 1 1 380px;
  min-width: 300px;
}

.rr-page-cart {
  flex: 1 1 380px;
  min-width: 300px;
  padding: 24px;
  border: 1px solid var(--rr-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 35, 56, .06);
}

@media (max-width: 780px) {
  .rr-page-grid { flex-direction: column; }
}

/* Colonne de gauche : titre, description, points forts, informations pratiques. */
.rr-info-col {
  color: #33404f;
  font-size: 15px;
  line-height: 1.6;
}

.rr-product-title {
  margin: 0 0 4px;
  color: var(--rr-navy);
  font-size: 34px;
  line-height: 1.15;
}

.rr-sku {
  margin: 0 0 16px;
  color: #8b93a1;
  font-size: 13px;
}

.rr-description p:first-child { margin-top: 0; }

.rr-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  margin: 26px 0;
}

.rr-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--rr-navy);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.rr-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--rr-yellow);
}

.rr-highlight-icon svg { width: 100%; height: 100%; }

.rr-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fdf3d9;
  list-style: none;
}

.rr-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #47390e;
  font-weight: 700;
}

.rr-check-icon { flex: none; color: #1f9254; font-weight: 800; }

@media (max-width: 480px) {
  .rr-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Galerie photo, affichée sous le formulaire de réservation. */
.rr-gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.rr-gallery-item {
  display: block;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--rr-border);
}

.rr-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  transition: transform .2s ease;
}

.rr-gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 600px) {
  .rr-gallery-item { width: 100px; height: 100px; }
}

/* Colonne de droite : prix et formulaire de réservation. */
.rr-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.rr-price .woocommerce-Price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--rr-navy);
}

.rr-stock-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rr-stock-pill.is-in-stock { background: #e9f8ef; color: #118747; }
.rr-stock-pill.is-out { background: #fdeaea; color: #b42323; }

.rr-booking {
  margin: 0;
  color: #182338;
  font-size: 14px;
  line-height: 1.45;
}

.rr-booking * { box-sizing: border-box; }
.rr-booking button { font: inherit; }

.rr-step { margin-top: 26px; }
.rr-step:first-of-type { margin-top: 0; }

.rr-step-title {
  margin-bottom: 12px;
  color: var(--rr-navy);
  font-size: 16px;
  font-weight: 700;
}

.rr-calendar {
  overflow: hidden;
  border: 1px solid var(--rr-border);
  border-radius: 11px;
  background: #fff;
}

.rr-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
}

.rr-month-label { text-transform: capitalize; }

.rr-calendar-nav button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--rr-soft);
  color: var(--rr-navy);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.rr-calendar-nav button:hover:not(:disabled) { background: #edf0f4; }
.rr-calendar-nav button:disabled { cursor: default; opacity: .28; }

.rr-weekdays,
.rr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rr-weekdays {
  padding: 8px 10px 5px;
  border-top: 1px solid #eef0f3;
  color: #6d7889;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.rr-calendar-grid {
  min-height: 220px;
  gap: 5px;
  padding: 8px 10px 13px;
  align-content: start;
}

.rr-calendar-grid > p {
  grid-column: 1 / -1;
  margin: 40px 0;
  color: #748093;
  text-align: center;
}

.rr-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #4b5768;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.rr-day-empty { display: block; }
.rr-day:disabled { cursor: default; }
.rr-day.is-unavailable { color: #949eac; }
.rr-day.is-available { background: #e9f9f0; color: #0f7a44; }
.rr-day.is-low { background: #fff3d3; color: #8a5d00; }
.rr-day.is-full { background: #eef0f3; color: #6b7480; text-decoration: line-through; }
.rr-day.is-selected { border-color: var(--rr-navy); background: var(--rr-navy); color: #fff; box-shadow: 0 3px 10px rgba(30, 43, 64, .25); }

.rr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--rr-border);
  background: var(--rr-soft);
  color: #626d7d;
  font-size: 10px;
}

.rr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rr-legend i { display: block; width: 9px; height: 9px; border-radius: 50%; }
.rr-legend .is-available { background: var(--rr-green); }
.rr-legend .is-low { background: var(--rr-orange); }
.rr-legend .is-full { background: var(--rr-grey); }

.rr-time-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.rr-time-slots > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--rr-soft);
  color: #6c7788;
  text-align: center;
}

.rr-time-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid #ccd2da;
  border-radius: 9px;
  background: #fff;
  color: var(--rr-navy);
  cursor: pointer;
}

.rr-time-button small { color: #748093; font-size: 10px; }
.rr-time-button:hover { border-color: var(--rr-navy); }
.rr-time-button.is-low { border-color: #f1c764; background: #fffaf0; }
.rr-time-button.is-selected { border-color: var(--rr-navy); background: var(--rr-navy); color: #fff; }
.rr-time-button.is-selected small { color: #dce4ef; }

.rr-participants-step { margin-bottom: 6px; }

.rr-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.rr-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  overflow: hidden;
}

.rr-qty-stepper button {
  width: 38px;
  height: 40px;
  border: 0;
  background: var(--rr-soft);
  color: var(--rr-navy);
  font-size: 18px;
  cursor: pointer;
}

.rr-qty-stepper button:hover { background: #edf0f4; }

.rr-qty-slot .quantity { display: flex; align-items: center; margin: 0; }
.rr-qty-slot label { display: none; }

form.cart input.qty.rr-participants-qty {
  width: 48px;
  min-width: 48px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--rr-border);
  border-right: 1px solid var(--rr-border);
  border-radius: 0;
  background: #fff;
  color: var(--rr-navy);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.rr-remaining-text { color: #5e697a; font-size: 13px; }
.rr-remaining-text.is-low { color: #9b6700; }

.rr-selection-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--rr-navy);
  font-weight: 800;
  text-align: center;
  text-transform: capitalize;
}

.rr-form-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e8a4a4;
  border-radius: 7px;
  background: #fff0f0;
  color: #a22020;
  font-weight: 700;
}

form.cart .single_add_to_cart_button.rr-disabled,
form.cart .single_add_to_cart_button:disabled {
  cursor: not-allowed !important;
  opacity: .52 !important;
}

@media (max-width: 600px) {
  .rr-page-cart { padding: 18px; }
  .rr-time-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-calendar-grid { min-height: 200px; gap: 3px; padding-inline: 7px; }
  .rr-day { font-size: 12px; }
  .rr-legend { gap: 7px 10px; }
}
