/* Book a Demo — store detail entry (inside #storepoint-widget) and booking dialog (outside #smooth-wrapper). */

/* Store detail panel additions */
#storepoint-widget .storepoint-location-detail-panel .storepoint-contact-details .storepoint-hours {
  order: 2;
  display: flex;
  flex-direction: column;
}

#storepoint-widget .storepoint-location-detail-panel .storepoint-contact-details .storepoint-hours::before {
  background-image: url('../icons/find-a-store/clock.svg');
}

/* Book a Demo (primary) and Get Direction (secondary) share one row. */
#storepoint-widget .storepoint-location-detail-panel .storepoint-buttons.pixboom-has-demo {
  display: grid;
  /* Directions keeps its natural width so it never wraps on phones. */
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(8 * var(--pixboom-unit));
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-has-demo .storepoint-directions-button {
  white-space: nowrap;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-demo-note {
  grid-column: 1 / -1;
  margin: 0 0 calc(4 * var(--pixboom-unit));
  font-size: calc(12 * var(--pixboom-unit));
  line-height: calc(18 * var(--pixboom-unit));
  color: #858585;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-demo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(40 * var(--pixboom-unit));
  padding: calc(10 * var(--pixboom-unit)) calc(16 * var(--pixboom-unit));
  border: 0;
  border-radius: calc(8 * var(--pixboom-unit));
  background: #1d1d1d;
  color: #fff;
  font: inherit;
  font-size: calc(14 * var(--pixboom-unit));
  line-height: calc(20 * var(--pixboom-unit));
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-demo-button:hover,
#storepoint-widget .storepoint-location-detail-panel .pixboom-demo-button:focus-visible {
  background: #ff4800;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-demo-button:focus-visible {
  outline: 2px solid #ff4800;
  outline-offset: 2px;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-has-demo .storepoint-directions-button {
  background: #ededed;
  color: #1d1d1d;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-has-demo .storepoint-directions-button::before {
  background: currentColor;
  -webkit-mask: url('../icons/find-a-store/direction.svg') center / contain no-repeat;
  mask: url('../icons/find-a-store/direction.svg') center / contain no-repeat;
}

#storepoint-widget .storepoint-location-detail-panel .pixboom-has-demo .storepoint-directions-button:hover,
#storepoint-widget .storepoint-location-detail-panel .pixboom-has-demo .storepoint-directions-button:focus-visible {
  background: #dcdcdc;
}

/* Dialog */
html.pdb-open {
  overflow: hidden;
}

.pdb-dialog {
  /* Same pattern as the cart drawer: bottom sheet on mobile, floating right drawer on desktop. */
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  height: 92dvh;
  max-height: 92dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16rem 16rem 0 0;
  background: #fff;
  color: #1d1d1d;
  font-family: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 -4px 16px rgba(29, 29, 29, 0.12);
}

.pdb-dialog[open] {
  animation: pdb-sheet-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdb-dialog::backdrop {
  background: rgba(29, 29, 29, 0.48);
  backdrop-filter: blur(24px);
}

@keyframes pdb-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@keyframes pdb-drawer-in {
  from { transform: translateX(calc(100% + 24px)); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pdb-dialog[open] {
    animation: none;
  }
}

.pdb-panel {
  min-height: 100%;
  box-sizing: border-box;
}

.pdb-view {
  display: flex;
  flex-direction: column;
  gap: 20rem;
  padding: 16rem 16rem 24rem;
}

.pdb-view[hidden] {
  display: none;
}

.pdb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16rem;
}

.pdb-view[data-demo-view="form"] > .pdb-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -16rem -16rem 0;
  padding: 16rem 16rem 12rem;
  background: #fff;
}

.pdb-heading {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.pdb-title {
  margin: 0;
  font-size: 24rem;
  line-height: 120%;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pdb-title:focus {
  outline: none;
}

.pdb-lead {
  margin: 0;
  font-size: 14rem;
  line-height: 150%;
  color: #515151;
}

.pdb-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44rem;
  height: 44rem;
  border: 0;
  border-radius: 8rem;
  background: #f6f6f6;
  color: #1d1d1d;
  cursor: pointer;
}

.pdb-close:focus-visible,
.pdb-submit:focus-visible,
.pdb-button:focus-visible {
  outline: 2px solid #ff4800;
  outline-offset: 2px;
}

.pdb-form {
  display: flex;
  flex-direction: column;
  gap: 20rem;
}

.pdb-store {
  display: flex;
  gap: 12rem;
  align-items: flex-start;
  padding: 12rem 14rem;
  border-radius: 8rem;
  background: #f6f6f6;
}

.pdb-store-icon {
  flex: none;
  margin-top: 2rem;
  color: #ff4800;
}

.pdb-store-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 13rem;
  line-height: 150%;
}

.pdb-store-name {
  font-size: 14rem;
  font-weight: 500;
}

.pdb-store-address {
  color: #515151;
}

.pdb-store-hours {
  color: #858585;
}

.pdb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16rem;
}

.pdb-section {
  display: flex;
  flex-direction: column;
  gap: 16rem;
  padding-top: 20rem;
  border-top: 1px solid #ededed;
}

.pdb-field {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.pdb-label {
  padding: 0;
  font-size: 13rem;
  line-height: 150%;
  color: #515151;
}

.pdb-required {
  color: #ff4800;
}

.pdb-optional {
  color: #858585;
}

.pdb-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48rem;
  padding: 0 12rem;
  border: 0;
  border-radius: 8rem;
  background: #f6f6f6;
  color: #1d1d1d;
  font: inherit;
  font-size: 16rem;
}

.pdb-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #ff4800;
}

.pdb-textarea {
  min-height: 96rem;
  padding: 12rem;
  resize: vertical;
}

.pdb-calendar {
  padding: 12rem;
  border: 1px solid #ededed;
  border-radius: 8rem;
}

.pdb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8rem;
}

.pdb-cal-month {
  font-size: 15rem;
  font-weight: 500;
}

.pdb-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40rem;
  height: 40rem;
  border: 0;
  border-radius: 8rem;
  background: #f6f6f6;
  color: #1d1d1d;
  cursor: pointer;
}

.pdb-cal-nav:disabled {
  color: #b9b9b9;
  background: transparent;
  cursor: default;
}

.pdb-cal-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4rem;
}

.pdb-cal-row + .pdb-cal-row {
  margin-top: 4rem;
}

.pdb-cal-weekday {
  padding: 4rem 0;
  font-size: 12rem;
  color: #858585;
  text-align: center;
}

.pdb-cal-cell {
  display: flex;
}

.pdb-cal-day {
  width: 100%;
  height: 40rem;
  border: 0;
  border-radius: 8rem;
  background: #f6f6f6;
  color: #1d1d1d;
  font: inherit;
  font-size: 14rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pdb-cal-day:hover:not(:disabled):not(.is-selected) {
  background: #ededed;
}

.pdb-cal-day:focus-visible,
.pdb-cal-nav:focus-visible {
  outline: 2px solid #ff4800;
  outline-offset: 2px;
}

.pdb-cal-day.is-selected {
  background: #1d1d1d;
  color: #fff;
}

.pdb-cal-day:disabled {
  background: transparent;
  color: #b9b9b9;
  font-weight: 400;
  cursor: default;
}

.pdb-hint {
  font-size: 12rem;
  line-height: 150%;
  color: #858585;
}

.pdb-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.pdb-fieldset .pdb-label {
  margin-bottom: 8rem;
}

.pdb-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8rem;
}

.pdb-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  min-height: 56rem;
  padding: 0 12rem;
  border: 1px solid #ededed;
  border-radius: 8rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.pdb-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdb-slot-name {
  font-size: 14rem;
  font-weight: 500;
}

.pdb-slot-hint {
  font-size: 11rem;
  color: #515151;
}

.pdb-slot:has(input:checked) {
  border-color: #1d1d1d;
  background: #1d1d1d;
  color: #fff;
}

.pdb-slot:has(input:checked) .pdb-slot-hint {
  color: rgba(255, 255, 255, 0.8);
}

.pdb-slot:has(input:focus-visible) {
  outline: 2px solid #ff4800;
  outline-offset: 2px;
}

.pdb-slot.is-disabled {
  color: #b9b9b9;
  background: #f6f6f6;
  cursor: not-allowed;
}

.pdb-slot.is-disabled .pdb-slot-hint {
  color: #b9b9b9;
}

.pdb-consents {
  display: flex;
  flex-direction: column;
  gap: 12rem;
}

.pdb-check {
  display: flex;
  gap: 10rem;
  align-items: flex-start;
  font-size: 13rem;
  line-height: 150%;
  color: #515151;
  cursor: pointer;
}

.pdb-check input {
  flex: none;
  width: 20rem;
  height: 20rem;
  margin: 0;
  accent-color: #ff4800;
}

.pdb-check a {
  color: #1d1d1d;
  text-decoration: underline;
}

.pdb-turnstile:empty {
  display: none;
}

.pdb-error {
  margin: 0;
  padding: 12rem 14rem;
  border-radius: 8rem;
  background: #fff1eb;
  color: #b33200;
  font-size: 13rem;
  line-height: 150%;
}

.pdb-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin: 0 -16rem -24rem;
  padding: 12rem 16rem 24rem;
  border-top: 1px solid #ededed;
  background: #fff;
}

.pdb-submit {
  min-height: 48rem;
  border: 0;
  border-radius: 8rem;
  background: #ff4800;
  color: #fff;
  font: inherit;
  font-size: 15rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.pdb-submit:hover:not(:disabled) {
  border-radius: 30rem;
}

.pdb-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pdb-note {
  margin: 0;
  font-size: 12rem;
  line-height: 150%;
  color: #858585;
  text-align: center;
}

.pdb-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48rem;
  height: 48rem;
  border-radius: 12rem;
  background: #ff4800;
  color: #fff;
}

.pdb-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 16rem;
  border-radius: 8rem;
  background: #f6f6f6;
  font-size: 13rem;
  line-height: 150%;
}

.pdb-summary dt {
  margin-top: 10rem;
  color: #858585;
}

.pdb-summary dt:first-child {
  margin-top: 0;
}

.pdb-summary dd {
  margin: 0;
  white-space: pre-line;
}

.pdb-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.pdb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48rem;
  padding: 0 20rem;
  border-radius: 8rem;
  font: inherit;
  font-size: 15rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.pdb-button-dark {
  border: 0;
  background: #1d1d1d;
  color: #fff;
}

.pdb-button-dark:hover {
  background: #ff4800;
  border-radius: 30rem;
}

.pdb-button-light {
  border: 1px solid #ededed;
  background: #fff;
  color: #1d1d1d;
}

.pdb-button-light:hover {
  border-color: #1d1d1d;
}

@media (min-width: 768px) {
  .pdb-dialog {
    inset: 24px 24px 24px auto;
    width: min(560px, calc(100% - 48px));
    height: calc(100% - 48px);
    max-height: none;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(29, 29, 29, 0.16), 0 1px 2px rgba(29, 29, 29, 0.24);
  }

  .pdb-dialog[open] {
    animation-name: pdb-drawer-in;
  }

  .pdb-view[data-demo-view="form"] > .pdb-header {
    margin: -28px -32px 0;
    padding: 28px 32px 16px;
  }

  .pdb-view {
    gap: 24px;
    padding: 28px 32px 32px;
  }

  .pdb-success {
    padding-top: 40px;
  }

  .pdb-header {
    gap: 16px;
  }

  .pdb-heading {
    gap: 6px;
  }

  .pdb-title {
    font-size: 28px;
  }

  .pdb-lead,
  .pdb-store-name,
  .pdb-input,
  .pdb-slot-name {
    font-size: 14px;
  }

  .pdb-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .pdb-form {
    gap: 24px;
  }

  .pdb-store {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
  }

  .pdb-store-text,
  .pdb-label,
  .pdb-check,
  .pdb-error,
  .pdb-summary {
    font-size: 13px;
  }

  .pdb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pdb-section {
    gap: 16px;
    padding-top: 20px;
  }

  .pdb-field {
    gap: 6px;
  }

  .pdb-input {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .pdb-textarea {
    min-height: 88px;
    padding: 12px;
  }

  .pdb-calendar {
    padding: 16px;
    border-radius: 8px;
  }

  .pdb-cal-head {
    margin-bottom: 8px;
  }

  .pdb-cal-month {
    font-size: 15px;
  }

  .pdb-cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .pdb-cal-row {
    gap: 4px;
  }

  .pdb-cal-row + .pdb-cal-row {
    margin-top: 4px;
  }

  .pdb-cal-weekday {
    font-size: 12px;
  }

  .pdb-cal-day {
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
  }

  .pdb-hint,
  .pdb-note,
  .pdb-slot-hint {
    font-size: 12px;
  }

  .pdb-slots {
    gap: 8px;
  }

  .pdb-slot {
    min-height: 60px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .pdb-actions {
    gap: 10px;
    margin: 0 -32px -32px;
    padding: 16px 32px 24px;
  }

  .pdb-submit,
  .pdb-button {
    min-height: 48px;
    border-radius: 8px;
    font-size: 15px;
  }

  .pdb-summary {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 12px;
    padding: 20px;
  }

  .pdb-summary dt {
    margin-top: 0;
  }

  .pdb-success-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pdb-button {
    min-height: 44px;
    font-size: 14px;
  }
}
