/* =========================================================
   STOREFRONT BOTANICAL TICKET MODAL — COMPACT
   ========================================================= */

.storefront-modal-open {
  overflow: hidden;
}

/* Modal wrapper */

.storefront-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.storefront-ticket-modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* Backdrop */

.storefront-ticket-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(38, 44, 39, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Ticket shell */

.storefront-ticket-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  opacity: 0;
  transform: translateY(1.25rem) scale(0.97);
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.storefront-ticket-modal.is-open .storefront-ticket-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Paper layers */

.storefront-ticket-paper-layer {
  position: absolute;
  inset: 0.55rem 0.4rem -0.5rem;
  border: 1px solid rgba(194, 161, 106, 0.28);
  border-radius: 1.35rem;
  background: #efe9dc;
  box-shadow: 0 20px 42px rgba(44, 51, 45, 0.12);
}

.storefront-ticket-paper-layer-one {
  transform: rotate(-1.25deg);
}

.storefront-ticket-paper-layer-two {
  background: #f4f0e8;
  transform: rotate(1.1deg);
}

/* Main panel */

.storefront-ticket-panel {
  position: relative;
  overflow: hidden;
  padding: 1.65rem 1.8rem 1.1rem;
  border: 1px solid rgba(194, 161, 106, 0.52);
  border-radius: 1.35rem;
  background:
    radial-gradient(
      circle at 50% 5%,
      rgba(255, 255, 255, 0.76),
      transparent 15rem
    ),
    linear-gradient(
      145deg,
      #fbf8f2,
      #f5f0e7
    );
  box-shadow:
    0 30px 68px rgba(35, 42, 36, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

.storefront-ticket-panel::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(194, 161, 106, 0.35);
  border-radius: 1rem;
}

.storefront-ticket-panel::after {
  content: '';
  position: absolute;
  inset: 0.75rem;
  z-index: 0;
  pointer-events: none;
  border: 1px dashed rgba(135, 151, 130, 0.2);
  border-radius: 0.85rem;
}

/* Decorations */

.storefront-ticket-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.storefront-ticket-watermark {
  position: absolute;
  top: 1.15rem;
  right: 0.6rem;
  color: rgba(135, 151, 130, 0.065);
  font-family: 'Fraunces', serif;
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.storefront-ticket-leaf {
  position: absolute;
  color: rgba(135, 151, 130, 0.17);
}

.storefront-ticket-leaf-top {
  top: -2.25rem;
  left: -1.25rem;
  width: 5.5rem;
  transform: rotate(-20deg);
}

.storefront-ticket-leaf-bottom {
  right: -1.1rem;
  bottom: -2rem;
  width: 6rem;
  transform: scaleX(-1) rotate(-14deg);
}

/* Content */

.storefront-ticket-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Close icon */

.storefront-ticket-close-icon {
  position: absolute;
  z-index: 4;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(135, 151, 130, 0.3);
  border-radius: 999px;
  color: var(--store-text-soft);
  background: rgba(251, 248, 242, 0.88);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.storefront-ticket-close-icon svg {
  width: 1rem;
  height: 1rem;
}

.storefront-ticket-close-icon:hover {
  color: var(--store-text);
  background: #fffdf9;
  transform: rotate(4deg);
}

/* Eyebrow */

.storefront-ticket-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(135, 151, 130, 0.3);
  border-radius: 0.6rem;
  color: var(--store-primary-hover);
  background: rgba(251, 248, 242, 0.78);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storefront-ticket-eyebrow svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Title */

.storefront-ticket-title {
  margin-top: 0.75rem;
  color: var(--store-text);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.storefront-ticket-title span {
  color: var(--store-primary);
  font-style: italic;
}

/* Decorative divider */

.storefront-ticket-heading-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.55rem auto;
}

.storefront-ticket-heading-divider span {
  width: 2.5rem;
  border-top: 1px solid rgba(194, 161, 106, 0.6);
}

.storefront-ticket-heading-divider i {
  width: 0.38rem;
  height: 0.38rem;
  display: block;
  border: 1px solid var(--store-accent);
  transform: rotate(45deg);
}

/* Description */

.storefront-ticket-description {
  max-width: 25rem;
  margin: 0 auto;
  color: var(--store-text-soft);
  font-size: 0.74rem;
  line-height: 1.55;
}

/* Schedule */

.storefront-ticket-schedule {
  margin-top: 0.9rem;
}

.storefront-ticket-section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  color: var(--store-primary-hover);
}

.storefront-ticket-section-title > span {
  border-top: 1px solid rgba(194, 161, 106, 0.5);
}

.storefront-ticket-section-title > div {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
}

.storefront-ticket-section-title svg {
  width: 1rem;
  height: 1rem;
}

/* Sessions */

.storefront-ticket-session-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.storefront-ticket-session {
  min-width: 0;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--store-border);
  border-radius: 0.8rem;
  background: rgba(247, 243, 236, 0.76);
}

.storefront-ticket-session-icon {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0.6rem;
}

.storefront-ticket-session-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.storefront-ticket-session-icon.is-day {
  color: #a78143;
  background: rgba(239, 227, 206, 0.88);
}

.storefront-ticket-session-icon.is-night {
  color: var(--store-primary-hover);
  background: rgba(220, 227, 215, 0.9);
}

.storefront-ticket-session > div:last-child {
  min-width: 0;
  text-align: left;
}

.storefront-ticket-session span {
  display: block;
  color: var(--store-text-muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.storefront-ticket-session strong {
  display: block;
  margin-top: 0.08rem;
  color: var(--store-text);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Schedule note */

.storefront-ticket-schedule-note {
  max-width: 25rem;
  margin: 0.55rem auto 0;
  color: var(--store-text-soft);
  font-size: 0.64rem;
  line-height: 1.45;
}

/* Ticket perforation */

.storefront-ticket-perforation {
  position: relative;
  height: 0.9rem;
  margin: 0.75rem -1.8rem 0.55rem;
}

.storefront-ticket-perforation::before,
.storefront-ticket-perforation::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(38, 44, 39, 0.6);
  transform: translateY(-50%);
}

.storefront-ticket-perforation::before {
  left: -0.68rem;
}

.storefront-ticket-perforation::after {
  right: -0.68rem;
}

.storefront-ticket-perforation span {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  right: 1.5rem;
  border-top: 1px dashed rgba(135, 151, 130, 0.4);
  transform: translateY(-50%);
}

/* Form notice */

.storefront-ticket-notice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(135, 151, 130, 0.28);
  border-radius: 0.8rem;
  background:
    linear-gradient(
      135deg,
      rgba(220, 227, 215, 0.7),
      rgba(239, 227, 206, 0.4)
    );
  text-align: left;
}

.storefront-ticket-notice-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0.65rem;
  color: var(--store-primary-hover);
  background: rgba(251, 248, 242, 0.78);
}

.storefront-ticket-notice-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.storefront-ticket-notice p {
  color: var(--store-text-soft);
  font-size: 0.65rem;
  line-height: 1.45;
}

.storefront-ticket-notice strong {
  color: var(--store-text);
}

/* Telegram button */

.storefront-ticket-telegram {
  width: 100%;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(116, 133, 114, 0.7);
  border-radius: 0.8rem;
  color: #fbf8f2;
  background:
    linear-gradient(
      135deg,
      var(--store-primary),
      var(--store-primary-hover)
    );
  box-shadow:
    0 10px 22px rgba(93, 109, 91, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.storefront-ticket-telegram:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 27px rgba(93, 109, 91, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.storefront-ticket-telegram svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.storefront-ticket-telegram-note {
  margin-top: 0.4rem;
  color: var(--store-text-muted);
  font-size: 0.57rem;
}

/* Close text */

.storefront-ticket-close-text {
  margin-top: 0.55rem;
  padding: 0.25rem 0.65rem;
  color: var(--store-primary-hover);
  font-family: 'Fraunces', serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.storefront-ticket-close-text:hover {
  color: var(--store-text);
}

/* Mobile */

@media (max-width: 639px) {
  .storefront-ticket-modal {
    place-items: center;
    padding: 0.75rem;
  }

  .storefront-ticket-shell {
    width: min(100%, 22rem);
  }

  .storefront-ticket-paper-layer {
    display: none;
  }

  .storefront-ticket-panel {
    padding: 1.35rem 0.9rem 0.9rem;
    border-radius: 1.15rem;
  }

  .storefront-ticket-panel::before {
    inset: 0.4rem;
    border-radius: 0.9rem;
  }

  .storefront-ticket-panel::after {
    inset: 0.62rem;
    border-radius: 0.75rem;
  }

  .storefront-ticket-close-icon {
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
  }

  .storefront-ticket-watermark {
    top: 0.8rem;
    right: -0.5rem;
    font-size: 5.5rem;
  }

  .storefront-ticket-leaf-top {
    width: 4.7rem;
  }

  .storefront-ticket-leaf-bottom {
    width: 5rem;
  }

  .storefront-ticket-eyebrow {
    font-size: 0.52rem;
  }

  .storefront-ticket-title {
    margin-top: 0.65rem;
    padding-inline: 1.2rem;
    font-size: 1.65rem;
  }

  .storefront-ticket-heading-divider {
    margin-block: 0.45rem;
  }

  .storefront-ticket-description {
    padding-inline: 0.2rem;
    font-size: 0.67rem;
    line-height: 1.5;
  }

  .storefront-ticket-schedule {
    margin-top: 0.7rem;
  }

  .storefront-ticket-section-title > div {
    font-size: 0.9rem;
  }

  .storefront-ticket-session-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.5rem;
  }

  .storefront-ticket-session {
    min-height: 3rem;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .storefront-ticket-session-icon {
    width: 1.65rem;
    height: 1.65rem;
  }

  .storefront-ticket-session span {
    font-size: 0.52rem;
  }

  .storefront-ticket-session strong {
    font-size: 0.69rem;
  }

  .storefront-ticket-schedule-note {
    margin-top: 0.45rem;
    font-size: 0.58rem;
  }

  .storefront-ticket-perforation {
    margin: 0.6rem -0.9rem 0.45rem;
  }

  .storefront-ticket-notice {
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
  }

  .storefront-ticket-notice-icon {
    width: 1.95rem;
    height: 1.95rem;
  }

  .storefront-ticket-notice p {
    font-size: 0.59rem;
    line-height: 1.4;
  }

  .storefront-ticket-telegram {
    min-height: 2.55rem;
    margin-top: 0.55rem;
    padding-inline: 0.65rem;
    font-size: 0.63rem;
  }

  .storefront-ticket-telegram-note {
    margin-top: 0.3rem;
    font-size: 0.53rem;
  }

  .storefront-ticket-close-text {
    margin-top: 0.4rem;
    font-size: 0.74rem;
  }
}

/* Extra-small mobile */

@media (max-width: 374px) {
  .storefront-ticket-modal {
    padding: 0.45rem;
  }

  .storefront-ticket-shell {
    width: min(100%, 20.5rem);
  }

  .storefront-ticket-panel {
    padding: 1.2rem 0.7rem 0.75rem;
  }

  .storefront-ticket-title {
    font-size: 1.5rem;
  }

  .storefront-ticket-description {
    font-size: 0.62rem;
  }

  .storefront-ticket-session-icon {
    display: none;
  }

  .storefront-ticket-session strong {
    font-size: 0.66rem;
  }

  .storefront-ticket-notice p {
    font-size: 0.55rem;
  }

  .storefront-ticket-telegram {
    font-size: 0.58rem;
  }
}

