/* LA Appointment Booker – Right-slide Panel (matches Size Guide pattern) */

/* The delivery-info shortcode is overridden to output nothing on these
   PDPs; collapse its empty Elementor widget shell so it leaves no gap.
   Target only the two known delivery widgets by their Elementor IDs. */
.elementor-element-2decd7c4:has(.elementor-shortcode:empty),
.elementor-element-1755902c:has(.elementor-shortcode:empty) {
  display: none !important;
}

/* Trigger link on PDP - identical style to the Size guide link.
   margin-top is set by JS to clear the absolutely-positioned
   button/stock message/Klarna banner. */
a.la-appt-trigger:not(.elementor-button):not(.e-con),
a.la-appt-trigger:visited:not(.elementor-button):not(.e-con),
a.la-appt-trigger:focus:not(.elementor-button):not(.e-con) {
  display: block;
  text-align: right;
  font-family: 'Helvetica', 'Helvetica Neue', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #000 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  margin: 0;
  padding: 0;
  min-height: 20px;
  line-height: 20px;
  cursor: pointer;
  letter-spacing: 0.48px;
  text-transform: none !important;
  background: none !important;
  border: none !important;
}
a.la-appt-trigger:hover:not(.elementor-button):not(.e-con) {
  color: #000 !important;
  opacity: 1;
}

/* Overlay - invisible by default, catches clicks to close */
.la-appt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9998;
  display: none;
}
.la-appt-overlay.active {
  display: block;
}

/* Frosted glass overlay on private appointment page - left column only, below header */
body.la-appt-standalone .la-appt-overlay {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  right: 50%;
}
body.la-appt-standalone .la-appt-overlay.active {
  display: block;
  opacity: 1;
}
@media (max-width: 767px) {
  body.la-appt-standalone .la-appt-overlay {
    right: 0;
  }
}

/* Right panel – mirrors .size-guide-panel */
.la-appt-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  max-width: 100%;
  z-index: 9999;
  transition: 0.3s;
  overflow-y: auto;
  background: #fff;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
.la-appt-panel.active {
  right: 0;
}

/* Reset site styles inside panel */
.la-appt-panel-inner button:not(.la-appt-submit):not(.la-appt-cal-day):not(.la-appt-cal-nav),
.la-appt-panel-inner label {
  border: none !important;
  box-shadow: none !important;
  outline: none;
  text-transform: none !important;
  background: transparent !important;
  color: #000 !important;
}
.la-appt-panel-inner .la-appt-cal-day.disabled,
.la-appt-panel-inner .la-appt-cal-day.disabled span {
  color: rgba(0,0,0,0.2) !important;
  cursor: default !important;
}
.la-appt-panel-inner .la-appt-option input:checked + .la-appt-option-box {
  background: #000 !important;
  border-color: #000 !important;
}

/* Panel inner content */
.la-appt-panel-inner {
  padding: 20px 30px 30px;
  max-width: 420px;
}

/* Header row */
.la-appt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Topbar - title left, X right, vertically aligned */
.la-appt-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px 0;
}

.la-appt-header-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #000 !important;
  letter-spacing: 0.48px;
  line-height: 1;
  margin: 0;
}

.la-appt-close {
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #000 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 13px !important;
  min-height: 0 !important;
  line-height: 13px !important;
  display: flex;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
.la-appt-panel-topbar {
  align-items: flex-start;
}

/* Thank-you screen: no title, text top-aligned with the X */
.la-appt-panel.la-appt-confirm-mode .la-appt-header-title {
  display: none;
}
.la-appt-panel.la-appt-confirm-mode .la-appt-panel-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  justify-content: flex-end;
}
.la-appt-panel.la-appt-confirm-mode .la-appt-panel-inner {
  padding-top: 24px;
}

/* Atelier image */
.la-appt-hero {
  width: 100%;
  display: block;
  height: auto;
  margin-bottom: 24px;
}

/* Section titles */
.la-appt-section-title {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.56px;
  margin: 0 0 14px;
  line-height: normal;
}

/* Checkbox / radio option groups */
.la-appt-option-group {
  margin-bottom: 28px;
}

.la-appt-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 3px 0;
  -webkit-user-select: none;
  user-select: none;
}

.la-appt-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.la-appt-option-box {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  position: relative;
  margin-top: 3px;
  transition: background 100ms ease, border-color 100ms ease;
}

.la-appt-option input:checked + .la-appt-option-box {
  background: #000;
  border-color: #000;
}

.la-appt-option input:checked + .la-appt-option-box::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 0;
  width: 4px;
  height: 6px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.la-appt-option input:focus-visible + .la-appt-option-box {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.la-appt-option-label {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.52px;
  line-height: 1.3;
}

/* Calendar - black and white, matching Louis Abel brand */
.la-appt-calendar {
  margin-bottom: 28px;
}

.la-appt-cal-nav,
.la-appt-cal-nav svg,
.la-appt-cal-nav path {
  color: #000 !important;
  fill: none !important;
  stroke: #000 !important;
  background: transparent !important;
}
.la-appt-cal-nav:disabled {
  opacity: 0.25 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: none;
}
.la-appt-cal-nav:disabled svg,
.la-appt-cal-nav:disabled path {
  opacity: 1 !important;
  visibility: visible !important;
}

.la-appt-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.la-appt-cal-nav,
.la-appt-cal-nav:focus,
.la-appt-cal-nav:active,
.la-appt-cal-nav:hover {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 2px !important;
  margin: 0 !important;
  line-height: 0;
  color: #000 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  transition: none !important;
}
.la-appt-cal-nav:disabled,
.la-appt-cal-nav:disabled:hover {
  opacity: 0.2;
  cursor: default;
}
.la-appt-cal-nav svg {
  display: block;
  width: 7px;
  height: 12px;
}

.la-appt-cal-month {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.48px;
}

.la-appt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 2px 0;
  width: 100%;
  max-width: 100%;
}

.la-appt-cal-day-name {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.44px;
  text-align: center;
  padding: 0 0 10px;
}

.la-appt-cal-day {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Helvetica Neue', Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #000 !important;
  letter-spacing: 0.48px;
  cursor: pointer;
  background: none !important;
  border: none !important;
  padding: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  outline: none;
  text-decoration: none !important;
  transition: none !important;
}
.la-appt-cal-day.disabled {
  color: rgba(0, 0, 0, 0.2) !important;
  cursor: default;
}
.la-appt-cal-day:hover:not(.disabled):not(.empty) span,
.la-appt-cal-day.selected span {
  background: #000 !important;
  color: #fff !important;
}
.la-appt-cal-day span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: none !important;
}

.la-appt-cal-day.empty {
  cursor: default;
}
.la-appt-cal-day,
.la-appt-cal-day:focus,
.la-appt-cal-day:focus-visible,
.la-appt-cal-day:active {
  outline: none !important;
}

/* Detail inputs – underline only, matches footer newsletter */
.la-appt-details {
  margin-bottom: 16px;
}

.la-appt-input-wrap {
  position: relative;
  margin-bottom: 12px;
}

.la-appt-panel .la-appt-input,
.la-appt-panel-inner .la-appt-input,
input.la-appt-input {
  display: block !important;
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid #000 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background: transparent !important;
  font-family: 'Helvetica Neue', Helvetica, sans-serif !important;
  font-size: 12px !important;
  color: #000 !important;
  letter-spacing: 0.52px !important;
  padding: 10px 0 !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
}
.la-appt-panel .la-appt-input::placeholder,
input.la-appt-input::placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}
.la-appt-panel .la-appt-input:focus,
input.la-appt-input:focus {
  border-bottom-color: #000 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Legal text */
.la-appt-legal {
  font-size: 9px;
  color: #000;
  opacity: 0.7;
  letter-spacing: 0.36px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 500;
}
.la-appt-legal a {
  color: #000;
  text-decoration: underline;
}

/* Submit button - matches Add to Cart */
.la-appt-panel .la-appt-submit,
.la-appt-panel .la-appt-submit:focus,
.la-appt-panel .la-appt-submit:active,
.la-appt-panel .la-appt-submit:visited,
button.la-appt-submit {
  display: block !important;
  width: 100% !important;
  height: 40px !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  font-family: 'Helvetica Neue', Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.48px !important;
  text-transform: none !important;
  cursor: pointer;
  transition: opacity 150ms ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0 !important;
  text-align: center !important;
  line-height: 40px !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}
.la-appt-panel .la-appt-submit:disabled,
button.la-appt-submit:disabled {
  opacity: 0.3 !important;
  cursor: default;
  background: #000 !important;
  color: #fff !important;
}
.la-appt-panel .la-appt-submit:not(:disabled):hover,
button.la-appt-submit:not(:disabled):hover {
  opacity: 0.8 !important;
  background: #000 !important;
  color: #fff !important;
}

/* Micro copy */
.la-appt-microcopy {
  font-size: 9px;
  color: #000;
  opacity: 0.7;
  letter-spacing: 0.36px;
  margin-top: 10px;
  font-weight: 500;
}

/* Error message */
.la-appt-error {
  font-size: 12px;
  color: #000;
  letter-spacing: 0.48px;
  margin-bottom: 12px;
  line-height: 1.5;
  display: none;
}
.la-appt-error a { color: #000; text-decoration: underline; }
.la-appt-error.visible { display: block; }

/* Confirmation state */
.la-appt-confirmation {
  padding: 0;
}
.la-appt-confirmation p {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.56px;
  line-height: normal;
  margin: 0 0 4px;
}
.la-appt-confirm-spacer {
  height: 14px;
}

/* Inline validation */
.la-appt-field-error {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 12px;
  color: red !important;
  letter-spacing: 0.44px;
  margin-top: 4px;
  display: none;
}
.la-appt-field-error.visible {
  display: block;
}
.la-appt-input.invalid {
  border-bottom-color: red !important;
}
.la-appt-option-group.invalid .la-appt-section-title-ref {
  font-weight: 700;
}

/* Honeypot */
.la-appt-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Body scroll lock */
html.la-appt-open,
html.la-appt-open body {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Mobile – full width panel */
@media (max-width: 768px) {
  .la-appt-panel {
    width: 100%;
  }
  .la-appt-panel-inner {
    max-width: none;
    padding: 20px;
  }
  .la-appt-panel-topbar {
    padding: 20px 20px 0;
  }
}
