/* Working hours - closed-shop modal.
   Scoped under .sx-closed-* so nothing collides with the old
   .wooopenclose-* / .shop-status-bar rules during the overlap period. */

.sx-closed-modal[hidden] {
  display: none;
}

.sx-closed-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sx-closed-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.sx-closed-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 8px;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: sx-closed-in 0.18s ease-out;
}

@keyframes sx-closed-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-closed-modal__dialog {
    animation: none;
  }
}

.sx-closed-modal__close {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.sx-closed-modal__close:hover,
.sx-closed-modal__close:focus {
  color: #222;
}

.sx-closed-modal__title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.sx-closed-modal__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.sx-closed-modal__body p:last-child {
  margin-bottom: 0;
}

/* In-flow status banner, directly under the header.
   Deliberately static (not fixed/sticky) so it pushes content down
   rather than covering it. */

.sx-closed-bar {
  width: 100%;
  background: #e52729;
  color: #fff;
}

.sx-closed-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}

.sx-closed-bar__message {
  flex: 1 1 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
}

.sx-closed-bar__message p {
  margin: 0;
}

.sx-closed-bar__message a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* Closing-soon warning: same bar, warning colour. The shop is still open
   and taking orders here, so it must not read as a hard stop. */
.sx-closing-soon-bar {
  background: #b26a00;
}

@media (max-width: 600px) {
  .sx-closed-bar__inner {
    padding: 10px 14px;
  }

  .sx-closed-bar__message {
    font-size: 14px;
  }
}

/* The buttons that replace add-to-cart while closed. */
.sx-closed-trigger {
  cursor: pointer;
}

.sx-closed-trigger.disabled {
  opacity: 0.6;
}

.sx-closed-single-wrap {
  margin: 16px 0;
}

@media (max-width: 420px) {
  .sx-closed-modal__dialog {
    padding: 24px 16px 20px;
  }

  .sx-closed-modal__title {
    font-size: 18px;
  }
}
