/* ============================================================================
   Custom additions for Wine Stream (not part of the original Adobe Muse export)
   - Two extra menu buttons in the hamburger dropdown: Shop + Book a Tour
   - A self-contained Calendly-style booking modal (calendar + time slots)
   Theme: maroon #511332, wine-red accent #9B1C1F, dark #2D1125
   ========================================================================== */

/* ---- Extra menu buttons (second row inside the open dropdown) ------------- */
/* ===========================================================================
   One-line menu.
   The original Adobe Muse menu positions each item absolutely (margin-left:100%
   + negative left) with fixed pixel widths per item. Those fixed widths were too
   narrow for the 18px text, so LOCATIONS/CONTACT wrapped ("LOCATION\nS"), and the
   two extra buttons fell onto a second line. We replace that whole scheme with a
   single nowrap flexbox row that auto-sizes every item and grows the panel to fit.
   =========================================================================== */

/* Don't clip; let the panel size to its content, and stop it collapsing to 38px. */
#u6439, #u6439popup, #u6439 .popup_anchor, #u6440 {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Right-anchor the panel to the header's right and let it grow leftward. */
#u6439 { left: auto !important; right: -30px !important; width: auto !important; }
#u6440 {
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
}

/* The item group is now a single, right-aligned, no-wrap flex row. */
#u6441 {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  width: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 9px 0 !important;
  white-space: nowrap !important;
}

/* Every item (existing nav links + the two new buttons): drop Muse's absolute
   positioning and fixed width, become an auto-width cell with a divider bar. */
#u6441 > a,
#u6441 > div,
#u6441 > .ws-extra-nav {
  position: relative !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding: 0 16px !important;
  border: none !important;
  border-left: 1px solid #848E97 !important;
}
#u6441 > *:first-child { border-left: none !important; }

/* Keep every item's text on one line at full nav size. */
#u6441 a, #u6441 p, #u6441 span {
  white-space: nowrap !important;
  line-height: 22px !important;
}

/* The two new buttons: match the nav items' exact type + wine-red hover. */
.ws-extra-nav { text-decoration: none !important; cursor: pointer; }
.ws-extra-nav p {
  margin: 0;
  color: #FFFFFF !important;
  font-family: source-sans-pro, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  line-height: 22px !important;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: color .15s ease;
}
.ws-extra-nav:hover p,
.ws-extra-nav:focus p {
  color: #9B1C1F !important;
  outline: none;
}

/* ===========================================================================
   Booking modal — Calendly-style two-pane widget
   =========================================================================== */
.ws-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 5, 13, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  font-family: source-sans-pro, "Segoe UI", Helvetica, Arial, sans-serif;
}
.ws-modal-overlay.ws-open { display: flex; }
.ws-modal-overlay * { box-sizing: border-box; }

.ws-modal {
  position: relative;
  width: 100%;
  max-width: 840px;
  background: #ffffff;
  color: #2D1125;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(10, 2, 8, 0.55);
  display: flex;
  overflow: hidden;
  animation: ws-pop .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes ws-pop {
  from { transform: translateY(16px) scale(.985); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.ws-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background-color .15s ease, transform .15s ease;
}
.ws-modal-close:hover { background: rgba(255, 255, 255, 0.28); transform: rotate(90deg); }

/* ---- Left info panel (brand) ---- */
.ws-info {
  flex: 0 0 262px;
  background: linear-gradient(160deg, #5c1637 0%, #401026 60%, #2d0d1e 100%);
  color: #fff;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.ws-info-brand {
  font-family: museo-sans-rounded, source-sans-pro, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 22px;
}
.ws-info h2 {
  margin: 0 0 20px;
  font-family: gravitas-one, source-sans-pro, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .3px;
}
.ws-info-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.ws-info-meta svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: .85; }
.ws-info-desc {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Right picker panel ---- */
.ws-picker { flex: 1 1 auto; padding: 30px 30px 26px; min-width: 0; }
.ws-picker-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #2D1125;
}
.ws-picker-main { display: flex; gap: 26px; }

/* Calendar */
.ws-cal { flex: 0 0 auto; width: 300px; }
.ws-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ws-cal-title { font-size: 16px; font-weight: 700; color: #2D1125; letter-spacing: .2px; }
.ws-cal-nav button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #7a5c69;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ws-cal-nav button:hover:not(:disabled) { background: #f5eaee; color: #9B1C1F; }
.ws-cal-nav button:disabled { opacity: .3; cursor: default; }

.ws-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ws-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #a8929c;
  padding-bottom: 8px;
}
.ws-cal-cell { display: flex; align-items: center; justify-content: center; padding: 3px 0; }
.ws-cal-day {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  color: #2D1125;
  cursor: pointer;
  border: none;
  background: rgba(155, 28, 31, 0.07);
  transition: background-color .14s ease, color .14s ease, transform .1s ease;
}
.ws-cal-day:hover { background: rgba(155, 28, 31, 0.16); }
.ws-cal-day:active { transform: scale(.92); }
.ws-cal-cell.ws-empty .ws-cal-day,
.ws-cal-day.ws-disabled {
  background: transparent;
  color: #cdbfc5;
  cursor: default;
  font-weight: 500;
}
.ws-cal-day.ws-disabled:hover { background: transparent; }
.ws-cal-day.ws-today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9B1C1F;
}
.ws-cal-day.ws-selected {
  background: #9B1C1F;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(155, 28, 31, 0.35);
}
.ws-cal-day.ws-selected.ws-today::after { background: #fff; }

/* Times column */
.ws-times {
  flex: 1 1 auto;
  min-width: 172px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #efe7ea;
  padding-left: 24px;
}
.ws-times-title {
  font-size: 14px;
  font-weight: 700;
  color: #2D1125;
  margin-bottom: 14px;
  min-height: 18px;
}
.ws-times-placeholder {
  margin: auto 0;
  text-align: center;
  color: #b6a4ac;
  font-size: 13.5px;
  line-height: 1.5;
}
.ws-times-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  max-height: 268px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.ws-times-list::-webkit-scrollbar { width: 6px; }
.ws-times-list::-webkit-scrollbar-thumb { background: #e3d6db; border-radius: 3px; }
.ws-slot {
  padding: 12px 10px;
  text-align: center;
  border: 1.5px solid #e6dade;
  border-radius: 9px;
  background: #fff;
  color: #9B1C1F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease, color .14s ease, transform .1s ease;
}
.ws-slot:hover { border-color: #9B1C1F; background: rgba(155, 28, 31, 0.05); }
.ws-slot:active { transform: scale(.98); }
.ws-slot.ws-selected {
  background: #9B1C1F;
  border-color: #9B1C1F;
  color: #fff;
  box-shadow: 0 5px 14px rgba(155, 28, 31, 0.28);
}
.ws-confirm {
  margin-top: 14px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #9B1C1F;
  color: #fff;
  font-family: museo-sans-rounded, source-sans-pro, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: background-color .15s ease, opacity .2s ease, transform .2s ease;
}
.ws-confirm.ws-show { opacity: 1; transform: none; pointer-events: auto; }
.ws-confirm:hover { background: #b8232a; }

/* ---- Success screen ---- */
.ws-success {
  flex: 1 1 auto;
  text-align: center;
  padding: 52px 40px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ws-success .ws-check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #1e874a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(30, 135, 74, 0.35);
  animation: ws-pop-check .4s cubic-bezier(.2, 1.1, .3, 1);
}
@keyframes ws-pop-check { from { transform: scale(0); } to { transform: scale(1); } }
.ws-success .ws-check svg { width: 38px; height: 38px; }
.ws-success h3 {
  margin: 0 0 8px;
  font-family: gravitas-one, source-sans-pro, serif;
  font-size: 26px;
  font-weight: 400;
  color: #2D1125;
}
.ws-success .ws-sub { margin: 0 0 20px; font-size: 15px; color: #8a7480; }
.ws-success .ws-recap {
  background: #faf4f6;
  border: 1px solid #f0e4e9;
  border-radius: 12px;
  padding: 18px 24px;
  min-width: 260px;
}
.ws-success .ws-recap-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; color: #2D1125; }
.ws-success .ws-recap-row + .ws-recap-row { margin-top: 8px; }
.ws-success .ws-recap-row svg { width: 18px; height: 18px; opacity: .7; }
.ws-success .ws-recap-row b { font-weight: 700; }
.ws-success .ws-done {
  margin-top: 26px;
  padding: 12px 40px;
  border: none;
  border-radius: 10px;
  background: #9B1C1F;
  color: #fff;
  font-family: museo-sans-rounded, source-sans-pro, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ws-success .ws-done:hover { background: #b8232a; }

/* ---- Responsive: stack on small screens ---- */
@media (max-width: 760px) {
  .ws-modal-overlay { align-items: flex-start; padding: 14px; }
  .ws-modal { flex-direction: column; max-width: 420px; }
  .ws-info { flex-basis: auto; padding: 26px 24px; }
  .ws-info h2 { font-size: 24px; margin-bottom: 16px; }
  .ws-info-desc { margin-top: 18px; }
  .ws-picker { padding: 24px; }
  .ws-picker-main { flex-direction: column; gap: 22px; }
  .ws-cal { width: 100%; }
  .ws-cal-grid { max-width: 320px; margin: 0 auto; }
  .ws-times { border-left: none; border-top: 1px solid #efe7ea; padding-left: 0; padding-top: 20px; }
  .ws-times-list { max-height: 220px; }
}
