/* ======================================================
   TANTRIC DANCE — DESIGN TOKENS
   ====================================================== */

:root {
  --td-bg: #F6EFE7;
  --td-card-bg: #FFFFFF;
  --td-primary: #7E57C2;
  --td-primary-dark: #3E2A5F;
  --td-accent: #F3C98B;
  --td-text: #3E2A5F;
  --td-muted: #7f7f7f;

  --td-link: var(--td-primary);
  --td-date: var(--td-primary);
  --td-readmore: var(--td-primary);
  --td-shadow: rgba(0,0,0,0.18);
  --td-shadow-strong: rgba(0,0,0,0.28);
  --td-spinner: var(--td-primary);
}


/* ======================================================
   TEMPLATE STYLES
   ====================================================== */


.hipsy-theme-minimal {
  --td-primary: #111;
  --td-primary-dark: #111;
  --td-text: #222;
  --td-link: #111;
  --td-date: #111;
  --td-readmore: #111;
  --td-shadow: rgba(0,0,0,0.18);
  --td-shadow-strong: rgba(0,0,0,0.28);
  --td-spinner: #111;
}

.hipsy-theme-conscious {
  --td-primary: #7E57C2;
  --td-primary-dark: #3E2A5F;
  --td-accent: #F3C98B;
  --td-shadow: rgba(126,87,194,0.22);
  --td-shadow-strong: rgba(126,87,194,0.34);
  --td-link: var(--td-primary);
  --td-date: var(--td-primary);
  --td-readmore: var(--td-primary);
  --td-spinner: var(--td-primary);
}

.hipsy-theme-red {
  --td-primary: #7b1e2b;
  --td-primary-dark: #4a0f18;
  --td-accent: #e3a1aa;
  --td-shadow: rgba(123,30,43,0.22);
  --td-shadow-strong: rgba(123,30,43,0.34);
  --td-link: var(--td-primary);
  --td-date: var(--td-primary);
  --td-readmore: var(--td-primary);
  --td-spinner: var(--td-primary);
}

.hipsy-theme-hipsy {
  /* Core surfaces */
  --td-bg: #28776d;
  --td-card-bg: #ffffff;

  /* Brand / primary */
  --td-primary: #28776d;  /* buttons, primary accents */
  --td-primary-dark: #344382; /* highlighted background (darker teal) */

  /* Links / highlights */
  --td-link: #384f39;                /* A href / highlighted text */
  --td-link-secondary: #28776d;      /* secondary link color */

  /* Text */
  --td-text: #384f39;
  --td-muted: #7f7f7f;
  --td-muted: oklch(55.1% .027 264.364);  /* gray-500 */

  /* Date + readmore should follow primary unless overridden */
  --td-date: #009c51;
  --td-readmore: #009c51;

  /* Shadows should be theme-tinted (teal) not pure black */
  --td-shadow: color-mix(in oklab, #28776d 22%, transparent);
  --td-shadow-strong: color-mix(in oklab, #28776d 34%, transparent);

  /* Spinner uses primary */
  --td-spinner: var(--td-primary);
}

.hipsy-dark {
  --td-bg: #0f0f0f;
  --td-card-bg: #1a1a1a;
  --td-text: #eaeaea;
  --td-muted: #999;
}

.hipsy-dark .hipsy-event-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ======================================================
   GRID LAYOUT
   ====================================================== */

.hipsy-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hipsy-app-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.hipsy-app-splash.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hipsy-app-splash.is-hiding {
  opacity: 0;
}

.hipsy-app-splash img {
  display: block;
  max-width: min(72vw, 360px);
  max-height: min(62vh, 420px);
  object-fit: contain;
}

.hipsy-events-wrap {
  position: relative;
}

.hipsy-city-feed-button {
  position: absolute;
  top: -29px;
  right: -11px;
  z-index: 4;
  display: none !important;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(40, 119, 109, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--td-primary, #28776d);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hipsy-city-feed-button[hidden] {
  display: none !important;
}

.hipsy-city-feed-button__icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .hipsy-events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hipsy-events-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) {
  .hipsy-events-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ======================================================
   VIEWS (grid | list | feed | card)
   ====================================================== */

/* Default (grid) is already defined above. */
.hipsy-events-grid.hipsy-view-grid {}

/* LIST: single column, no shadow, tight rows */
.hipsy-events-grid.hipsy-view-list {
  display: block;
  gap: 0;
  --td-shadow: none;
  --td-shadow-strong: none;
}

.hipsy-view-list .hipsy-event-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 6px 0;
  margin: 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  transform: none !important;
  transition: background 160ms ease;
}

/* List layout: image tile + content in same row (no flex) */
.hipsy-view-list .hipsy-event-card.hipsy-has-thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 12px;
  align-items: start;
}
.hipsy-view-list .hipsy-event-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--td-card-bg);
}
.hipsy-view-list .hipsy-event-thumb .hipsy-event-image-wrap {
  width: 100%;
  height: 100%;
}
.hipsy-view-list .hipsy-event-thumb .hipsy-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hipsy-dark .hipsy-view-list .hipsy-event-card {
  border-bottom-color: rgba(255,255,255,0.12);
}

.hipsy-view-list .hipsy-event-card:hover {
  background: rgba(0,0,0,0.03);
}
.hipsy-dark .hipsy-view-list .hipsy-event-card:hover {
  background: rgba(255,255,255,0.05);
}

.hipsy-view-list .hipsy-event-thumb {
  max-width: 96px;
}

.hipsy-view-list .hipsy-event-head-row { display: block; }

.hipsy-view-list .hipsy-event-date {
  white-space: nowrap;
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 2px;
}


.hipsy-view-list .hipsy-event-title {
  margin: 0;
}

/* List view: remove global location top padding */
.hipsy-view-list .hipsy-event-location {
  padding-top: 0;
}

/* FEED: date badge left + content right */
.hipsy-events-grid.hipsy-view-feed {
  display: block;
  gap: 0;
}

.hipsy-view-feed .hipsy-event-card {
  box-shadow: none;
  border-radius: 14px;
  padding: 12px;
  margin: 0 0 14px 0;
  background: var(--td-card-bg);
  transform: none !important;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.hipsy-view-feed .hipsy-event-card:hover {
  background: rgba(126,87,194,0.06);
  box-shadow: 0 10px 25px var(--td-shadow);
}


.hipsy-view-feed .hipsy-feed-col--head .hipsy-event-location {
  margin-top: 4px;
}
/* Feed layout: 3 columns on top, rest full width (no flex) */
.hipsy-view-feed .hipsy-feed-top {
  display: grid;
  grid-template-columns: 72px 56px 1fr;
  row-gap: 0;
  column-gap: 4px;
  align-items: start;
}
.hipsy-view-feed .hipsy-feed-col--image { min-width: 72px; }
.hipsy-view-feed .hipsy-feed-col--date { min-width: 56px; }
.hipsy-view-feed .hipsy-feed-col--head { text-align: left; }

.hipsy-view-feed .hipsy-event-location { text-align: left; justify-self: start; }

.hipsy-view-feed .hipsy-feed-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--td-card-bg);
  box-shadow: 0 10px 25px var(--td-shadow);
}
.hipsy-view-feed .hipsy-feed-thumb .hipsy-event-image-wrap {
  width: 100%;
  height: 100%;
}
.hipsy-view-feed .hipsy-feed-thumb .hipsy-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hipsy-view-feed .hipsy-event-title--feed,
.hipsy-view-feed .hipsy-event-date--feed {
  text-align: left;
}

.hipsy-view-feed .hipsy-feed-bottom {
  margin-top: 10px;
}


.hipsy-view-feed .hipsy-feed-row {
  display: flex;
  row-gap: 0;
  column-gap: 8px;
}

.hipsy-view-feed .hipsy-feed-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}



.hipsy-view-feed .hipsy-feed-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--td-card-bg);
  box-shadow: 0 10px 25px var(--td-shadow);
}

.hipsy-view-feed .hipsy-feed-thumb .hipsy-event-image-wrap {
  width: 100%;
  height: 100%;
}

.hipsy-view-feed .hipsy-feed-thumb .hipsy-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hipsy-view-feed .hipsy-event-title--feed {
  text-align: left;
  margin-top: 0;
}

.hipsy-view-feed .hipsy-feed-badge {
  width: 52px;
  border-radius: 14px;
  background: var(--td-card-bg);
  box-shadow: 0 10px 25px var(--td-shadow);
  text-align: center;
  padding: 10px 6px;
}

.hipsy-view-feed .hipsy-feed-day {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--td-text);
}

.hipsy-view-feed .hipsy-feed-mon {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--td-muted);
}

.hipsy-view-feed .hipsy-feed-time {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.1;
  color: var(--td-muted);
}

.hipsy-view-feed .hipsy-feed-time {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.1;
  color: var(--td-muted);
}

.hipsy-view-feed .hipsy-feed-right {
  flex: 1 1 auto;
  min-width: 0;
}

.hipsy-view-feed .hipsy-event-date--feed {
  margin-top: 2px;
}

/* CARD: larger cards, 1–2 columns */
.hipsy-events-grid.hipsy-view-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px) {
  .hipsy-events-grid.hipsy-view-card { grid-template-columns: repeat(2, 1fr); }

/* Card view: remove default shadow, add hover affordance */
.hipsy-view-card .hipsy-event-card {
  box-shadow: none;
  border: 1px solid rgba(0,0,0,0.10);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.hipsy-dark .hipsy-view-card .hipsy-event-card {
  border-color: rgba(255,255,255,0.12);
}
.hipsy-view-card .hipsy-event-card:hover {
  box-shadow: 0 10px 25px var(--td-shadow);
  transform: translateY(-2px);
}

}

.hipsy-view-card .hipsy-event-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hipsy-view-card .hipsy-event-date {
  white-space: nowrap;
}



.hipsy-view-card .hipsy-card-thumb {
  border-radius: 14px;
  overflow: visible;
  background: var(--td-card-bg);
  width: min(100%, var(--hipsy-card-image-width, 100%));
  max-width: 100%;
}

.hipsy-view-card .hipsy-card-thumb .hipsy-event-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.hipsy-view-card .hipsy-card-thumb .hipsy-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hipsy-view-card .hipsy-event-date {
  margin-top: 4px;
}

/* ======================================================
   EVENT CARD
   ====================================================== */

.hipsy-event-card {
  background: var(--td-card-bg);
  border-radius: 14px;
  box-shadow: 0 10px 25px var(--td-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hipsy-event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--td-shadow-strong);
}

/* ======================================================
   IMAGE
   ====================================================== */

.hipsy-event-image-wrap {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  margin-bottom: 12px;
}

.hipsy-event-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.hipsy-event-card:hover .hipsy-event-image {
  transform: scale(1.03);
}

.hipsy-popup-cover {
  position: relative;
  overflow: visible;
}

.hipsy-official-label {
  position: absolute;
  top: 5px;
  right: -4px;
  width: min(96px, 19%);
  height: auto;
  z-index: 5;
  transform: rotate(10deg);
  transform-origin: top right;
  pointer-events: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22));
}

.hipsy-official-link {
  position: absolute;
  display: block;
  z-index: 6;
  line-height: 0;
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
}

.hipsy-official-link--grid {
  top: 5px;
  right: -4px;
  width: min(96px, 19%);
}

.hipsy-official-link--popup {
  top: 8px;
  right: -11px;
  width: min(120px, 16%);
}

.hipsy-official-link--grid .hipsy-official-label,
.hipsy-official-link--popup .hipsy-official-label {
  position: static;
  display: block;
  width: 100%;
}

.hipsy-official-link--grid .hipsy-official-label {
  margin-top: -27px;
  margin-left: 27px;
}

.hipsy-official-label--popup {
  width: 100%;
}

/* ======================================================
   TEXT CONTENT
   ====================================================== */

.hipsy-event-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--td-date);
  margin-bottom: 4px;
}

.hipsy-event-city {
  font-size: 0.85rem;
  color: var(--td-muted);
  margin-bottom: 4px;
  text-align: center;
}

.hipsy-view-list .hipsy-event-city,
.hipsy-view-feed .hipsy-event-city {
  text-align: left;
}

.hipsy-event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--td-primary-dark);
  margin: 0 0 6px 0;
}

/* Ensure title link inherits the themed title color */
.hipsy-event-title a {
  color: inherit;
  text-decoration: none;
}

.hipsy-event-title a:hover {
  opacity: 0.85;
}


.hipsy-event-desc {
  font-size: 0.9rem;
  color: var(--td-text);
  line-height: 1.45;
}

.hipsy-event-location {
  font-size: 0.85rem;
  padding-top: 6px;
  margin-bottom: 8px;
  text-align: center;
}

.hipsy-event-location a {
  color: var(--td-muted) !important;
}

.hipsy-event-location a:hover {
    opacity: 0.8;
}


/* ======================================================
   UPCOMING EVENT STYLES
   ====================================================== */
   
/* ======================================================
   UPCOMING / GRID CTA BUTTON — TOKEN DRIVEN
   ====================================================== */

/* Wrapper (optional, for alignment) */
.hipsy-event-actions {
  margin-top: 12px;
  text-align: center;
}

/* The button / link itself */
.hipsy-event-actions a,
.hipsy-event-actions button {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  background-color: transparent;
  color: var(--td-primary);

  border: 1px solid var(--td-primary);
  border-radius: 999px;

  text-decoration: none;
  cursor: pointer;

  transition: all 0.25s ease;
}

/* Hover */
.hipsy-event-actions a:hover,
.hipsy-event-actions button:hover {
  background-color: var(--td-primary);
  color: #fff;
  text-decoration: none;
}

/* Focus (accessibility) */
.hipsy-event-actions a:focus,
.hipsy-event-actions button:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--td-primary) 20%, transparent);
}

/* ======================================================
   SPINNER
   ====================================================== */

.hipsy-popup-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.hipsy-events-spinner,
.hipsy-events-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  padding: 24px;
  background: rgba(255, 248, 248, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hipsy-loading-panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  color: #3b111d;
  box-shadow: 0 14px 34px rgba(63, 20, 32, 0.16);
  font: 600 16px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hipsy-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid rgba(176, 16, 70, 0.18);
  border-top-color: var(--td-spinner);
  border-radius: 50%;
  animation: hipsy-spin 0.8s linear infinite;
}

.hipsy-dark .hipsy-spinner {
  border-color: rgba(255,255,255,0.15);
  border-top-color: var(--td-spinner);
}

.hipsy-dark .hipsy-events-spinner,
.hipsy-dark .hipsy-events-loading {
  background: rgba(18, 14, 17, 0.5);
}

.hipsy-dark .hipsy-loading-panel {
  background: #1f171c;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}


@keyframes hipsy-spin {
    to { transform: rotate(360deg); }
}

/* ======================================================
   LOAD MORE
   ====================================================== */

.hipsy-load-more {
    margin: 24px auto;
    display: block;
    padding: 10px 18px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--td-primary);
    color: var(--td-primary);
    cursor: pointer;
    font-weight: 600;
}

.hipsy-load-more:hover {
    background: var(--td-primary);
    color: #fff;
}


/* ======================================================
   UPCOMING EVENT STYLES
   ====================================================== */

.hipsy-events-grid--upcoming {
  display: block;              /* kill grid */  
  max-width: 720px;
    margin: 0 auto;
}

   .hipsy-events-grid--upcoming > .hipsy-event-card {
    width: 100%;
}

/* Upcoming event only */
.hipsy-upcoming-event {
    max-width: 640px;
    margin: 0 auto;
}

/* Cards inside upcoming event */
.hipsy-upcoming-event .hipsy-event-card {
    border-radius: 18px;
    background: #111;
}

/* Tag visibility follows the Grid: Show tags setting. */
.hipsy-upcoming-event .hipsy-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}


/* ======================================================
   CENTER SINGLE EVENT IN GRID/CARD VIEW
   ====================================================== */

/* Only when exactly 1 event card is rendered */
.hipsy-events-grid:has(> .hipsy-event-card:only-child) {
  justify-content: center;
}

.hipsy-events-grid:has(> .hipsy-event-card:only-child) > .hipsy-event-card {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Card view: keep single card centered too */
.hipsy-events-grid.hipsy-view-card:has(> .hipsy-event-card:only-child) {
  grid-template-columns: 1fr;
  justify-content: center;
}

.hipsy-events-grid.hipsy-view-card:has(> .hipsy-event-card:only-child) > .hipsy-event-card {
  max-width: 520px;
}

/* ======================================================
   POPUP
   ====================================================== */

#hipsy-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

#hipsy-popup .hipsy-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* Keep the PANEL fixed-size; scroll the inner area */
#hipsy-popup .hipsy-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* important */
}

#hipsy-popup .hipsy-popup-inner {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hipsy-event-date-pop {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--td-date);
  margin-bottom: 16px;
  text-align: right;
}

h2.hipsy-event-title-pop {
  padding-top: 25px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--td-primary);
  margin: 0 0 6px 0;
  text-align: left;
}

/* v14.0.35: friendly handling for Hipsy events that are still in concept mode. */
.hipsy-event-card--concept {
  position: relative;
}

.hipsy-event-concept-badge,
.hipsy-concept-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3cd;
  color: #6f5200;
  border: 1px solid #e3c766;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hipsy-event-concept-badge {
  position: absolute;
  z-index: 6;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  pointer-events: none;
}

#hipsy-popup .hipsy-concept-notice {
  box-sizing: border-box;
  width: min(620px, 100%);
  min-height: 260px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: var(--td-card-bg, #fff);
  color: var(--td-text, #2d2433);
}

#hipsy-popup .hipsy-concept-notice-title,
#hipsy-popup .hipsy-concept-notice-heading,
#hipsy-popup .hipsy-concept-notice p {
  margin: 0;
}

#hipsy-popup .hipsy-concept-notice-title {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.2;
}

#hipsy-popup .hipsy-concept-notice-heading {
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.25;
}

#hipsy-popup .hipsy-concept-notice p {
  max-width: 48ch;
  line-height: 1.6;
}

#hipsy-popup .hipsy-popup-concept-ticket-notice {
  box-sizing: border-box;
  width: 100%;
  margin-top: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border: 1px solid #e3c766;
  border-radius: 14px;
  background: #fffaf0;
  color: #4f3d00;
}

#hipsy-popup .hipsy-popup-concept-ticket-notice strong {
  font-size: 18px;
}

#hipsy-popup .hipsy-popup-concept-ticket-notice p {
  max-width: 48ch;
  margin: 0;
  line-height: 1.55;
}

.hipsy-event-title-pop a {
  text-decoration: none;
  color: inherit;
}

.hipsy-event-title-pop a:hover {
  opacity: 0.85;
}

.hipsy-event-desc-pop {
    margin-top: -10px;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-size: 16px;
}

.hipsy-event-desc-pop.is-open {
    max-height: none !important;
}

.hipsy-event-location-pop {
  font-size: 1.2rem;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-weight: 600;
  display: block;
}

.hipsy-event-city-pop {
  color: var(--td-text);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 14px;
  text-align: center;
}

.hipsy-event-location-pop a {
    color: #222121 !important;
}

.hipsy-event-location-pop a:hover {
    opacity: 0.8;
}

.hipsy-event-location-pop::before {
  content: "📍";
  margin-right: 6px;
}


.hipsy-event-tags-pop {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 10px;
  margin-bottom: 10px;
}

.hipsy-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.hipsy-event-tag-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: color-mix(in srgb, var(--td-primary) 14%, transparent);
  color: var(--td-primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}




/* ======================================================
   POPUP CONTENT STYLES
   ====================================================== */

.hipsy-popup-cover {
  width: 100%;
  margin: 0 0 12px 0;
}

.hipsy-popup-cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

#hipsy-popup .hipsy-popup-close {
  position: absolute;
      top: -9px;
    right: -5px;
    width: 40px;
    height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
/* Layering so close button can sit "outside" panel (if DOM allows) */
#hipsy-popup .hipsy-popup-overlay { z-index: 1 !important; }
#hipsy-popup .hipsy-popup-content { z-index: 2 !important; }
#hipsy-popup .hipsy-popup-close   { z-index: 3 !important; }

/* Remove duplicate intent: date pop should be defined once */
.hipsy-event-date { 
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--td-date);
  margin-bottom: 4px;
}

/* If using .hipsy-ticket-modal-panel in CSS, ensure it exists in JS markup */
#hipsy-ticket-modal .hipsy-ticket-modal-panel {
  max-height: calc(100vh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}


/* Date styling */

/* Popup header row: title left, datebox right */
#hipsy-popup .hipsy-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  row-gap: 0;
  column-gap: 8px;
  margin: 0 0 10px 0;
}

#hipsy-popup .hipsy-event-title-pop {
  margin: 0;
  line-height: 1.15;
  flex: 1;
}

/* POPUP styling */
h2.hipsy-event-title {
    font-size: 22px;
    padding-bottom: 20px;
}

.hipsy-event-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #222;
}

.hipsy-event-desc p {
    margin: 0 0 1.1em;
}

.hipsy-event-desc h3.hipsy-section {
    margin: 1.8em 0 0.6em;
    font-size: 14pt;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--td-text)
}

h3.hipsy-section {
    font-size: 1.1em;
    line-height: 1.3em;
}

.hipsy-event-desc strong {
    display: block;
    margin-top: 0.6em;
}

.hipsy-desc-full {
    margin-top: 12px;
}

/* Popup links */
.hipsy-event-popup .hipsy-event-desc-pop a,
.hipsy-event-popup .hipsy-event-desc-pop a:visited {
  color: var(--td-link);
  font-weight: 600;
}
.hipsy-event-popup .hipsy-event-desc-pop a:hover,
.hipsy-event-popup .hipsy-event-desc-pop a:focus {
  opacity: 0.85;
  text-decoration: underline;
}

/* Popup section headers */
.hipsy-event-popup .hipsy-event-desc-pop h3.hipsy-section {
  color: var(--td-link);
  padding-top: 10px;
  padding-bottom: 3px;
}

html.hipsy-no-scroll,
body.hipsy-no-scroll {
  overflow: hidden !important;
}

/* Ensure ticket modal panel scrolls internally if needed */
#hipsy-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.65);
}

#hipsy-ticket-modal .hipsy-ticket-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


#hipsy-ticket-modal .hipsy-ticket-modal-panel {
  max-height: calc(100vh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}



/* ---------------------------------------------
   FIX LINK VISIBILITY IN HIPSY POPUP
--------------------------------------------- */


.hipsy-event-popup a,
.hipsy-event-popup a:visited,
.hipsy-event-popup h3 a {
  color: var(--td-link);
  font-weight: 600;
}

.hipsy-event-popup a:hover,
.hipsy-event-popup a:focus {
    opacity : 0.85;
    text-decoration: underline;
}



/* ======================================================
   POPUP FOOTER BUTTONS — ORGANISER PROMINENT
   ====================================================== */

/* ======================================================
   POPUP FOOTER BUTTONS — AUTO FLOW
   ====================================================== */

.hipsy-popup-footer-cols {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hipsy-popup-footer-cols button {
  flex: 1 1 150px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(180deg, #fff, #f0f0f0);
  color: #222;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 14px var(--td-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hipsy-popup-footer-cols button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px var(--td-shadow-strong);
}

/* HIPSY EVENT PAGE — SECONDARY (same as shop) */
.hipsy-popup-open-event,
.hipsy-popup-open-shop,
.hipsy-popup-open-organiser {
  box-shadow: 0 6px 14px var(--td-shadow);
}

.hipsy-popup-open-event:hover,
.hipsy-popup-open-shop:hover,
.hipsy-popup-open-organiser:hover {
  box-shadow: 0 12px 26px var(--td-shadow-strong);
}



/* 👉 ORGANISER — PRIMARY */
.hipsy-popup-open-organiser {
    background: linear-gradient(180deg, #ffffff, #f0f0f0);
    color: #222;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* HIPSY SHOP — SECONDARY */
.hipsy-popup-open-shop {
    background: linear-gradient(180deg, #ffffff, #f0f0f0);
    color: #222;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Hover / Focus */
.hipsy-popup-footer-cols button:hover,
.hipsy-popup-footer-cols button:focus-visible {
    transform: translateY(-3px);
}

/* ORGANISER hover */
.hipsy-popup-open-organiser:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

/* SHOP hover */
.hipsy-popup-open-shop:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

/* Active */
.hipsy-popup-footer-cols button:active {
    transform: translateY(0);
}

.hipsy-popup-footer-cols .hipsy-popup-copy-td-link {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--td-primary);
}

.hipsy-popup-footer-cols .hipsy-popup-open-app {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--td-primary);
}

@media (hover: none) and (pointer: coarse) and (max-width: 820px) {
    .hipsy-popup-footer-cols .hipsy-popup-open-app {
        display: inline-flex;
    }
}

.hipsy-popup-open-app .hipsy-app-link-icon,
.hipsy-popup-copy-td-link .hipsy-copy-link-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.hipsy-popup-open-app:hover,
.hipsy-popup-open-app:focus-visible {
    color: #fff;
    background: var(--td-primary);
}

.hipsy-popup-copy-td-link.is-copied {
    background: var(--td-primary);
    color: #fff;
}

.hipsy-popup-organiser-meta {
    margin: 18px auto 12px;
    text-align: center;
    color: var(--td-text);
}

.hipsy-popup-host-button {
    display: block;
    max-width: calc(100% - 28px);
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.hipsy-popup-host-button:hover,
.hipsy-popup-host-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px var(--td-shadow-strong);
}

.hipsy-popup-organiser-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
}

.hipsy-popup-organiser-name {
    display: inline-block;
}

.hipsy-popup-organiser-rating {
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--td-primary);
}

.hipsy-popup-organiser-rating--image img {
    display: block;
    width: 58px;
    height: auto;
    max-height: 58px;
}



/* ======================================================
   POPUP: FORCE TOKEN-DRIVEN TYPOGRAPHY (LIGHT MODE)
   ====================================================== */

#hipsy-popup .hipsy-event-desc-pop,
#hipsy-popup .hipsy-event-desc,
#hipsy-popup .hipsy-event-city-pop,
#hipsy-popup .hipsy-event-location-pop {
  color: var(--td-text) !important;
}

#hipsy-popup .hipsy-event-location-pop a {
  color: var(--td-link) !important;
}


/* ======================================================
   POPUP TICKET CTA — BASE
   ====================================================== */

.hipsy-popup-ticket-cta {
    margin-top: 14px;
    text-align: center;
}

.hipsy-theme-minimal .hipsy-popup-show-tickets {
    background: #111;
    color: #fff;
}

.hipsy-theme-conscious .hipsy-popup-show-tickets {
    background: linear-gradient(135deg, #7E57C2, #F3C98B);
    color: #fff;
}

.hipsy-theme-red .hipsy-popup-show-tickets {
    background: #7b1e2b;
    color: #fff;
}

.hipsy-theme-hipsy .hipsy-popup-show-tickets {
  background: #28776d;
  color: oklch(95.3% .051 180.801);
}

.hipsy-theme-hipsy .hipsy-popup-show-tickets:hover {
  background: oklch(43.7% .078 188.216);
  color: #fff;
}

.hipsy-theme-custom .hipsy-popup-show-tickets {
    background: var(--td-primary);
    color: #fff;
}

.hipsy-theme-custom .hipsy-popup-show-tickets:hover {
    background: var(--td-primary-dark);
    color: #fff;
}



/* ======================================================
   LOAD MORE — TOKEN DRIVEN
   ====================================================== */

.hipsy-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.hipsy-load-more {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;

    background: transparent;
    border: 1px solid var(--td-primary);
    color: var(--td-primary);

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover */
.hipsy-load-more:hover {
    background: var(--td-primary);
    color: #fff;
    box-shadow: 0 8px 20px var(--td-shadow);
    transform: translateY(-2px);
}

/* Active */
.hipsy-load-more:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px var(--td-shadow);
}

/* Disabled / loading */
.hipsy-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ======================================================
   READ MORE
   ====================================================== */

.hipsy-readmore-btn {
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
    color: var(--td-readmore);
    opacity: 0.85;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.hipsy-readmore-btn:hover {
    opacity: 1;
}

   .hipsy-popup-read-more {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin: 14px 0;
    font-size: 13px;
    user-select: none;
    font-size: 18px;
    width: 100%;
    text-align: center;
    color: var(--td-readmore);
    opacity: 0.85;
}

.hipsy-popup-read-more:hover {
    opacity: 1;
}

/* FORCE POPUP "READ MORE" TO USE THEME TOKEN */
#hipsy-popup .hipsy-readmore-btn,
#hipsy-popup .hipsy-popup-read-more {
  color: var(--td-readmore) !important;
}

#hipsy-popup .hipsy-readmore-btn:hover,
#hipsy-popup .hipsy-popup-read-more:hover {
  color: var(--td-readmore) !important;
  opacity: 1;
}


/* ======================================================
   FIX: POPUP TITLE + READ MORE USE THEME TOKENS
   Put this at the VERY END of the CSS file
   ====================================================== */

/* Popup title (covers both -pop and non-pop variants) */
#hipsy-popup h2.hipsy-event-title-pop,
#hipsy-popup h2.hipsy-event-title,
#hipsy-popup .hipsy-event-title-pop,
#hipsy-popup .hipsy-event-title {
  color: var(--td-primary) !important;
}

/* Read more (covers both class variants you use) */
#hipsy-popup .hipsy-popup-read-more,
#hipsy-popup .hipsy-readmore-btn {
  color: var(--td-readmore) !important;
}

/* Hover */
#hipsy-popup .hipsy-popup-read-more:hover,
#hipsy-popup .hipsy-readmore-btn:hover {
  opacity: 0.85;
  color: var(--td-readmore) !important;
}


/* ======================================================
   CANONICAL POPUP LAYOUT + TOKENS (FINAL OVERRIDES)
   ====================================================== */

/* Panel should always be token-driven */
#hipsy-popup .hipsy-popup-content {
  background: var(--td-card-bg);
  color: var(--td-text);
}

/* The inner scroll area */
#hipsy-popup .hipsy-popup-inner {
  color: var(--td-text);
}

/* Title always uses primary token */
#hipsy-popup .hipsy-event-title-pop,
#hipsy-popup h2.hipsy-event-title-pop {
  color: var(--td-primary) !important;
}

/* Read more always uses token */
#hipsy-popup .hipsy-popup-read-more,
#hipsy-popup .hipsy-readmore-btn {
  color: var(--td-readmore) !important;
}

/* Popup links always use token */
#hipsy-popup .hipsy-event-desc-pop a,
#hipsy-popup .hipsy-event-desc-pop a:visited {
  color: var(--td-link) !important;
}


.hipsy-theme-custom {
  --td-primary: var(--hipsy-custom-primary, #7E57C2);
  --td-primary-dark: var(--hipsy-custom-primary-dark, #3E2A5F);
  --td-accent: var(--hipsy-custom-accent, #F3C98B);
  --td-text: var(--hipsy-custom-text, #3E2A5F);
  --td-bg: var(--hipsy-custom-bg, #F6EFE7);
  --td-card-bg: var(--hipsy-custom-card-bg, #FFFFFF);

  --td-link: var(--td-primary);
  --td-date: var(--td-primary);
  --td-readmore: var(--td-primary);
  --td-shadow: rgba(0,0,0,0.18);
  --td-shadow-strong: rgba(0,0,0,0.28);
  --td-spinner: var(--td-primary);
}


/* ======================================================
   HEADER ROW USED BY YOUR PHP MARKUP (.hipsy-popup-title-row)
   ====================================================== */

#hipsy-popup .hipsy-popup-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}


/* ======================================================
   CANONICAL CALENDAR BOX (YOU ARE USING .hipsy-calbox)
   ====================================================== */

#hipsy-popup .hipsy-calbox {
  --hipsy-primary: var(--td-primary);
  flex: 0 0 auto;
  width: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hipsy-primary) 35%, transparent);
  background: var(--td-card-bg);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  text-align: center;
  margin-bottom: 5px;
}

#hipsy-popup .hipsy-calbox-top {
  background: var(--hipsy-primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 6px 0;
}

#hipsy-popup .hipsy-calbox-day {
  color: var(--td-text);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  padding-top: 4px;
}

#hipsy-popup .hipsy-calbox-time {
  color: color-mix(in srgb, var(--td-text) 85%, transparent);
  font-weight: 600;
  font-size: 12px;
  padding: 0 0 10px 0;
}

.hipsy-calrow{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.hipsy-calbox-time{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
}

.hipsy-calbox-time-end-text{
  display:block;
  margin-top:-2px;
  font-size:0.85em;
  opacity:.85;
}


/* End parts slightly smaller */
#hipsy-popup .hipsy-calbox-day-end,
#hipsy-popup .hipsy-calbox-time-end-text {
  font-size: 0.9em;
  opacity: 0.9;
}

/* MULTI-DAY: keep date on one line, time on one line */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-day,
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-time {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

/* SINGLE-DAY: stack end time under start time */
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time-sep {
  display: none;
}

/* Hide end date on single-day */
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day-sep,
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day-end {
  display: none;
}

/* Slightly wider when multi-day */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi {
  min-width: 150px; /* tweak */
}



/* Dark mode (if you add .hipsy-dark to #hipsy-popup OR a parent) */
#hipsy-popup.hipsy-dark .hipsy-calbox {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
#hipsy-popup.hipsy-dark .hipsy-calbox-day,
#hipsy-popup.hipsy-dark .hipsy-calbox-time {
  color: rgba(255,255,255,.92);
}

.hipsy-popup-ticket-footer.hipsy-popup-footer-cols{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:14px;
  flex-wrap:wrap;
}

.hipsy-popup-ticket-footer button{
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.hipsy-popup-footer-icon {
  display: none;
  line-height: 1;
}

.hipsy-popup-footer-label {
  display: inline;
}


.hipsy-popup-show-tickets.hipsy-ticketshop-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 12px;
  border:1px solid currentColor;
  border-radius:10px;
  background:transparent;
  cursor:pointer;
}
.hipsy-ticketshop-panel{ margin-top:0px; }

.hipsy-popup-show-tickets {
    background: #fff;
    color: #000;
    width: 100%;
    border: 1px solid #747474;
    border-radius: 10px;
    font-size: 18px;
    padding: 6px 10px;
}


/* ======================================================
   CALBOX V2 — SINGLE TILE, MULTI-DAY RANGE
   Put this at the VERY END of your CSS
   ====================================================== */

/* 1) Let the tile grow when needed (multi-day wider) */
#hipsy-popup .hipsy-calbox {
  width: auto;          /* override width:60px */
  min-width: 60px;      /* keep single-day compact */
  padding: 0;           /* keep your existing look */
  text-align: center;
}

/* Keep inner padding only in the bottom area (optional) */
#hipsy-popup .hipsy-calbox-time {
  padding-bottom: 10px; /* keep your original spacing */
}

/* 2) SINGLE-DAY look (keep your "big day" style) */
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  display: block; /* back to single-number style */
}

/* Hide end date parts on single day */
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day-sep,
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day-end {
  display: none;
}

/* Single-day time: stacked, centered */
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time {
  display: flex;
  flex-direction: column;
  align-items: center;   /* you said: endtime below starttime and a bit smaller */
  gap: 2px;
}
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time-sep {
  display: none;
}
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time-end-text {
  display: block;
  margin-top: -2px;
  font-size: 0.85em;
  opacity: 0.85;
}

/* 3) MULTI-DAY range: date + time inline (end smaller) */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi {
  min-width: 90px;      /* wider tile for ranges */
}

/* Multi-day date line: inline + smaller than single day */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-day {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 16px;       /* smaller than 26px */
  font-weight: 800;
  line-height: 1.1;
  padding: 6px 0px;
}

/* Multi-day time line: inline + smaller end time */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-time {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 10px;
}

/* End parts smaller (multi and single both OK) */
#hipsy-popup .hipsy-calbox-day-end,
#hipsy-popup .hipsy-calbox-time-end-text {
  font-size: 0.88em;
  opacity: 0.9;
}
/* ======================================================
   CALBOX FINAL — SINGLE TILE, MULTI-DAY RANGE (CLEAN)
   Put this at the VERY END of your CSS
   ====================================================== */

/* Base tile: allow it to size naturally */
#hipsy-popup .hipsy-calbox{
  width: auto !important;      /* kills earlier fixed width */
  min-width: 60px;             /* single-day stays compact */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

/* Reset any earlier forced layouts */
#hipsy-popup .hipsy-calbox-day,
#hipsy-popup .hipsy-calbox-time{
  line-height: inherit;
  display: block;
  white-space: normal;
}

/* -----------------------
   SINGLE DAY (compact)
   day big, end time below start time (smaller)
   ----------------------- */
#hipsy-popup .hipsy-calbox.hipsy-calbox-single{
  min-width: 60px;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day{
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day-sep,
#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-day-end{
  display: none;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 10px;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time-sep{
  display: none;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-single .hipsy-calbox-time-end-text{
  font-size: 0.85em;
  opacity: 0.85;
  margin-top: -2px;
  display: block;
}
/* ======================================================
   MULTI-DAY TILE — 90px + time in one row (FINAL)
   ====================================================== */

#hipsy-popup .hipsy-calbox.hipsy-calbox-multi{
  width: 90px;          /* fixed width as requested */
  min-width: 90px;
}

/* Date line stays one row */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-day{
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

/* Time line: ONE ROW: start - end */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-time{
  display: flex;
  flex-direction: row;   /* important */
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 10px;
}

/* Ensure the separator is visible on multi-day */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-time-sep{
  display: inline;
  opacity: 0.9;
}

/* End time slightly smaller (optional) */
#hipsy-popup .hipsy-calbox.hipsy-calbox-multi .hipsy-calbox-time-end-text{
  font-size: 0.9em;
  opacity: 0.9;
}

/* ======================================================
   FIX: month bar stays inside rounded border (FINAL)
   ====================================================== */

/* Parent tile must clip its children */
#hipsy-popup .hipsy-calbox{
  border-radius: 12px;
  overflow: hidden;            /* <- key: clips the top bar */
  background: var(--td-card-bg);
}

/* Ensure header spans exactly the inner width */
#hipsy-popup .hipsy-calbox .hipsy-calbox-top{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 0;                   /* no stray margins */
  box-sizing: border-box;

  background: var(--td-primary);
  color: #fff;

  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  border-radius: 0;            /* let parent clipping handle corners */
}

/* ======================================================
   MOBILE Poppup Fixes
   ====================================================== */

#hipsy-popup .hipsy-popup-overlay{
  pointer-events: auto;
}


  @media (max-width: 640px) { 
    #hipsy-popup .hipsy-popup-inner {padding: 0px;}
    .hipsy-calrow {margin-right: 10px;}
    .hipsy-popup-title-row {gap: 0px;}
    .hipsy-popup-cover-img {padding-top:14px;}
    .hipsy-popup-title-row {padding-left: 14px;}
    .hipsy-event-desc-pop, .hipsy-event-city-pop, .hipsy-event-location-pop {padding-left: 14px; padding-right: 14px;}
    .hipsy-theme-red .hipsy-popup-show-tickets {width: 92%; margin-left: 14px;}
    .hipsy-popup-footer-cols {padding-bottom: 20px;}
    #hipsy-popup .hipsy-popup-ticket-footer.hipsy-popup-footer-cols {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
      gap: 8px;
      width: 100%;
      box-sizing: border-box;
      padding: 0 14px 20px;
    }
    #hipsy-popup .hipsy-popup-ticket-footer.hipsy-popup-footer-cols button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      width: 100%;
      height: 44px;
      padding: 0;
      border-radius: 999px;
      font-size: 18px;
    }
    #hipsy-popup .hipsy-popup-ticket-footer .hipsy-popup-footer-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    #hipsy-popup .hipsy-popup-ticket-footer .hipsy-popup-footer-label {
      display: none;
    }
  h2.hipsy-event-title-pop {padding-top: 10px; padding-bottom: 20px;}
}

/* v8.4 popup badge + close button adjustments */
.hipsy-popup-cover {
  position: relative;
  overflow: visible !important;
}

.hipsy-official-link--popup {
  top: -18px;
  right: -22px;
  width: min(120px, 16%);
  z-index: 25;
}

.hipsy-official-link--popup .hipsy-official-label {
  margin: 0;
  display: block;
  width: 100%;
}

.hipsy-popup-close,
button.hipsy-popup-close,
.hipsy-popup .hipsy-popup-close {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  z-index: 40;
}

.hipsy-popup-close::before,
button.hipsy-popup-close::before {
  font-size: 34px;
  line-height: 1;
}


/* v8.4.1 popup label refinement */
.hipsy-official-link--popup .hipsy-official-label {
  width: 75%;
  margin-left: 38px;
}

/* Close button outside popup (desktop) */
.hipsy-popup-close,
button.hipsy-popup-close {
  position: absolute;
  top: -28px;
  right: -28px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 36px;
  z-index: 50;
}

/* Mobile adjustment: top, black */
@media (max-width: 768px) {
  .hipsy-popup-close,
  button.hipsy-popup-close {
    top: 8px;
    right: 8px;
    color: #000;
    background: rgba(255,255,255,0.9);
  }
}


/* v8.4.2 FIX: allow close button outside popup frame */
#hipsy-popup .hipsy-popup-inner,
#hipsy-popup .hipsy-popup-content,
#hipsy-popup .hipsy-popup-body {
  overflow: visible !important;
}

/* Close button outside (desktop) */
#hipsy-popup .hipsy-popup-close {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: rgba(0,0,0,0.7);
  color: #fff;

  font-size: 28px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999;
}

/* Mobile override */
@media (max-width: 768px) {
  #hipsy-popup .hipsy-popup-close {
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    color: #000;
  }
}


/* v8.4.3 close button tweak */
#hipsy-popup .hipsy-popup-close {
  top: -33px;
  right: -37px;
}

/* Small inline label for list/feed/card views */
.hipsy-official-label-inline {
  display: inline-block;
  width: 28px;
  margin-left: 8px;
  vertical-align: middle;
  transform: rotate(10deg);
}

.hipsy-event-title-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}



/* v8.5 inline official labels for list/feed */
.hipsy-event-title-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.hipsy-official-link-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  flex: 0 0 auto;
  vertical-align: middle;
}

.hipsy-official-link-inline .hipsy-official-label-inline {
  display: block;
  width: 24px;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
  pointer-events: auto;
}

/* card view uses corner badge like grid, not inline title badge */
.hipsy-view-card .hipsy-card-thumb,
.hipsy-view-card .hipsy-event-image-wrap,
.hipsy-view-card .hipsy-card-image-wrap,
.hipsy-view-card .hipsy-event-image {
  position: relative;
}

.hipsy-view-card .hipsy-event-image-wrap,
.hipsy-view-card .hipsy-card-image-wrap {
  overflow: hidden !important;
}

.hipsy-view-card .hipsy-official-link--card {
  position: absolute;
  top: 5px;
  right: -4px;
  width: min(96px, 19%);
  z-index: 6;
  display: block;
  line-height: 0;
}

.hipsy-view-card .hipsy-official-link--card .hipsy-official-label {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
}


/* v8.5.1 remove title-row labels and use corner labels per view */
.hipsy-event-title-inline,
.hipsy-official-link-inline,
.hipsy-official-label-inline {
  all: unset;
}

/* list view: badge at top right */
.hipsy-view-list .hipsy-event-item,
.hipsy-view-list .hipsy-event-card,
.hipsy-view-list .hipsy-list-item {
  position: relative;
  overflow: visible !important;
}

.hipsy-view-list .hipsy-official-link--list {
  position: absolute;
  top: 5px;
  right: -4px;
  width: min(72px, 12%);
  z-index: 6;
  display: block;
  line-height: 0;
}

.hipsy-view-list .hipsy-official-link--list .hipsy-official-label {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
}

/* feed view: badge at top right + centered title */
.hipsy-view-feed .hipsy-event-item,
.hipsy-view-feed .hipsy-event-card,
.hipsy-view-feed .hipsy-feed-item {
  position: relative;
  overflow: visible !important;
}

.hipsy-view-feed .hipsy-official-link--feed {
  position: absolute;
  top: 5px;
  right: -4px;
  width: min(72px, 12%);
  z-index: 6;
  display: block;
  line-height: 0;
}

.hipsy-view-feed .hipsy-official-link--feed .hipsy-official-label {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
}

.hipsy-view-feed .hipsy-event-title {
  text-align: center !important;
}


/* v8.5.2 title alignment/weight */
.hipsy-view-grid .hipsy-event-title,
.hipsy-view-card .hipsy-event-title,
.hipsy-view-list .hipsy-event-title,
.hipsy-view-feed .hipsy-event-title {
  font-weight: 700 !important;
}

.hipsy-view-card .hipsy-event-title,
.hipsy-view-list .hipsy-event-title,
.hipsy-view-feed .hipsy-event-title {
  text-align: center !important;
}

/* list/feed item-level badge in top-right corner */
.hipsy-view-list .hipsy-event-item,
.hipsy-view-list .hipsy-event-card,
.hipsy-view-list .hipsy-list-item,
.hipsy-view-feed .hipsy-event-item,
.hipsy-view-feed .hipsy-event-card,
.hipsy-view-feed .hipsy-feed-item {
  position: relative;
  overflow: visible !important;
}

.hipsy-view-list .hipsy-official-link--list,
.hipsy-view-feed .hipsy-official-link--feed {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  z-index: 8;
  display: block;
  line-height: 0;
}

.hipsy-view-list .hipsy-official-link--list .hipsy-official-label,
.hipsy-view-feed .hipsy-official-link--feed .hipsy-official-label {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
}

/* card label same outside-cover treatment as grid */
.hipsy-view-card .hipsy-card-thumb,
.hipsy-view-card .hipsy-event-image-wrap,
.hipsy-view-card .hipsy-event-image {
  position: relative;
}

.hipsy-view-card .hipsy-event-image-wrap {
  overflow: hidden !important;
}

.hipsy-view-card .hipsy-official-link--card {
  position: absolute;
  top: 5px;
  right: -4px;
  width: min(96px, 19%);
  z-index: 6;
  display: block;
  line-height: 0;
}

.hipsy-view-card .hipsy-official-link--card .hipsy-official-label {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
}



/* v8.5.3 restore list/feed visibility and adjust card badge */
.hipsy-view-list .hipsy-official-link--list,
.hipsy-view-feed .hipsy-official-link--feed {
  display: none !important;
}

/* Card view: same outside-cover behavior, adjusted size/offset */
.hipsy-view-card .hipsy-official-link--card {
  position: absolute;
  top: 5px;
  right: -4px;
  width: min(96px, 19%);
  z-index: 6;
  display: block;
  line-height: 0;
}

.hipsy-view-card .hipsy-official-link--card .hipsy-official-label {
  position: static;
  display: block;
  width: 71%;
  height: auto;
  margin: 0;
  margin-top: -28px;
  margin-left: 60px;
  transform: rotate(10deg);
}


/* v8.5.6 feed/list labels using existing clickable badge html */
.hipsy-view-feed .hipsy-event-card,
.hipsy-view-list .hipsy-event-card,
.hipsy-view-feed .hipsy-event-item,
.hipsy-view-list .hipsy-event-item,
.hipsy-view-feed .hipsy-feed-item,
.hipsy-view-list .hipsy-list-item {
  position: relative;
  overflow: visible !important;
}

.hipsy-view-feed .hipsy-official-link--grid,
.hipsy-view-list .hipsy-official-link--grid {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  z-index: 8;
  display: block;
  line-height: 0;
}

.hipsy-view-feed .hipsy-official-link--grid .hipsy-official-label--grid,
.hipsy-view-list .hipsy-official-link--grid .hipsy-official-label--grid {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: rotate(10deg);
}

.hipsy-view-feed .hipsy-event-title,
.hipsy-view-feed .hipsy-event-title--feed {
  text-align: left !important;
}


/* v8.6 map view */
.hipsy-view-map {
  display: block !important;
  padding: 0 !important;
}

.hipsy-events-map-shell {
  position: relative;
  width: 100%;
}

.hipsy-events-map {
  width: 100%;
  min-height: 620px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(19, 24, 35, 0.10);
  border: 1px solid rgba(35, 42, 53, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.hipsy-map-empty {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #334155;
  font-size: 16px;
  text-align: center;
}

.hipsy-map-divicon {
  background: transparent;
  border: 0;
}

.hipsy-map-pin {
  width: 54px;
  height: 54px;
  border-radius: 999px 999px 999px 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #1f2937 0%, #334155 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hipsy-map-pin span {
  transform: rotate(-45deg);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.hipsy-map-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hipsy-map-leaflet-popup .leaflet-popup-content {
  margin: 0;
  min-width: 280px;
}

.hipsy-map-popup-card {
  padding: 14px;
  background: #fff;
}

.hipsy-map-popup-location {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 10px;
}

.hipsy-map-popup-events {
  display: grid;
  gap: 8px;
}

.hipsy-map-popup-event {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(100, 116, 139, 0.16);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hipsy-map-popup-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(51, 65, 85, 0.22);
}

.hipsy-map-popup-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.hipsy-map-popup-date,
.hipsy-map-popup-time {
  display: block;
  font-size: 13px;
  color: #475569;
}

.hipsy-view-map .leaflet-control-zoom a {
  border-radius: 12px !important;
}

@media (max-width: 768px) {
  .hipsy-events-map {
    min-height: 480px;
    border-radius: 18px;
  }
}


/* v8.6.2 map refinements */
.hipsy-map-pin {
  width: 42px;
  height: 42px;
  border-radius: 999px 999px 999px 10px;
}

.hipsy-map-pin span {
  font-size: 12px;
}

.hipsy-map-popup-event-row {
  width: 100%;
  border: 1px solid rgba(100, 116, 139, 0.16);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}

.hipsy-map-popup-title {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.hipsy-map-popup-title:hover {
  text-decoration: underline;
}

.hipsy-map-pin-preview {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 96px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  border: 2px solid #fff;
  z-index: 30;
  pointer-events: none;
}

.hipsy-map-pin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* v8.6.3 map hover/popup layout fixes */
.hipsy-map-popup-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hipsy-map-popup-date,
.hipsy-map-popup-time {
  display: inline-block;
}

.hipsy-map-pin-preview {
  left: 50%;
  transform: translateX(-50%);
}

.hipsy-map-pin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hipsy-map-popup-title {
  text-decoration: none;
}


/* v8.6.4 map popup event list + address footer */
.hipsy-map-popup-events {
  display: grid;
  gap: 8px;
  max-height: none !important;
  overflow: visible !important;
}

.hipsy-map-popup-location-footer {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  border-top: 1px solid rgba(100, 116, 139, 0.14);
  padding-top: 10px;
}

.hipsy-map-popup-location-footer a {
  color: inherit;
  text-decoration: none;
}

.hipsy-map-popup-location-footer a:hover {
  text-decoration: underline;
}


/* v8.6.5.1 safe popup simplification */
.hipsy-map-popup-location {
  display: none !important;
}


/* v8.6.6 marker readability + map popup title fix */
.hipsy-map-pin {
  width: 46px;
  height: 46px;
}

.hipsy-map-pin span {
  display: block;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -0.03em;
}


/* v8.6.7 popup scroll + map hover z-index fix */

/* Event popup must scroll vertically */
#hipsy-popup,
#hipsy-popup .hipsy-popup-dialog,
#hipsy-popup .hipsy-popup-inner,
#hipsy-popup .hipsy-popup-content,
#hipsy-popup .hipsy-popup-body {
  overflow: visible;
}

#hipsy-popup .hipsy-popup-content,
#hipsy-popup .hipsy-popup-body {
  max-height: min(82vh, 980px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Keep close button usable above scroll area */
#hipsy-popup .hipsy-popup-close {
  z-index: 1200;
}

/* Hover thumbnail must appear above all nearby pins */
.hipsy-map-divicon,
.hipsy-map-pin {
  overflow: visible !important;
}

.hipsy-map-pin-preview {
  z-index: 9999 !important;
}

.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-pane,
.leaflet-marker-pane,
.leaflet-popup-pane {
  overflow: visible !important;
}

/* Raise hovered marker above other markers */
.leaflet-marker-icon:hover {
  z-index: 10000 !important;
}


/* v8.6.8 hover preview above pins + centered crop */
.leaflet-marker-icon.hipsy-map-marker-hover {
  z-index: 20000 !important;
}

.hipsy-map-pin-preview {
  z-index: 20001 !important;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: 108px;
  height: 76px;
  overflow: hidden;
}

.hipsy-map-pin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center !important;
  display: block;
}


/* v8.7.7 tighter map zoom + restore popup close button */
#hipsy-popup .hipsy-popup-close,
#hipsy-popup button.hipsy-popup-close {
  position: absolute;
  top: -33px;
  right: -37px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,0.72);
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 5000 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
}

#hipsy-popup .hipsy-popup-close::before,
#hipsy-popup button.hipsy-popup-close::before {
  content: '×';
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  display: block;
}

#hipsy-popup .hipsy-popup-close span,
#hipsy-popup button.hipsy-popup-close span {
  display: none !important;
}

@media (max-width: 768px) {
  #hipsy-popup .hipsy-popup-close,
  #hipsy-popup button.hipsy-popup-close {
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.96);
    color: #000 !important;
  }

  #hipsy-popup .hipsy-popup-close::before,
  #hipsy-popup button.hipsy-popup-close::before {
    color: #000 !important;
  }
}


/* v8.7.9 popup close button cleanup */
#hipsy-popup,
#hipsy-popup .hipsy-popup-dialog,
#hipsy-popup .hipsy-popup-inner,
#hipsy-popup .hipsy-popup-content,
#hipsy-popup .hipsy-popup-body {
  overflow: visible !important;
}

#hipsy-popup .hipsy-popup-close .hipsy-popup-close-icon {
  display: none;
}

/* Dedicated outer close button class */
#hipsy-popup .hipsy-popup-close--outer {
  position: absolute !important;
  top: -34px !important;
  right: -38px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 999px !important;
  border: 0 !important;
  cursor: pointer !important;
  background: rgba(0,0,0,0.76) !important;
  color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 6000 !important;
  opacity: 1 !important;
  overflow: visible !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22) !important;
  text-indent: 0 !important;
}

#hipsy-popup .hipsy-popup-close--outer::before {
  content: none !important;
}

#hipsy-popup .hipsy-popup-close--outer .hipsy-popup-close-icon {
  display: block !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

#hipsy-popup .hipsy-popup-close--outer span:not(.hipsy-popup-close-icon):not(.visually-hidden):not(.sr-only) {
  display: none !important;
}

@media (max-width: 768px) {
  #hipsy-popup .hipsy-popup-close--outer {
    top: 10px !important;
    right: 10px !important;
    background: rgba(255,255,255,0.96) !important;
  }

  #hipsy-popup .hipsy-popup-close--outer .hipsy-popup-close-icon {
    color: #000 !important;
  }
}



/* v8.8 shortcode text + close button + feed/list label tweak */
.hipsy-view-feed .hipsy-official-link--grid .hipsy-official-label--grid,
.hipsy-view-list .hipsy-official-link--grid .hipsy-official-label--grid {
  margin-left: 20px;
}

/* prevent duplicate X from legacy pseudo rules */
#hipsy-popup .hipsy-popup-close::before,
#hipsy-popup button.hipsy-popup-close::before,
#hipsy-popup .hipsy-popup-close--outer::before,
#hipsy-popup button.hipsy-popup-close--outer::before {
  content: none !important;
}


/* v8.8.1 popup overflow + inner scroll fix */
#hipsy-popup {
  overflow: hidden !important;
}

#hipsy-popup .hipsy-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 720px);
  max-width: 720px;
  max-height: calc(100vh - 40px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#hipsy-popup .hipsy-popup-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#hipsy-popup .hipsy-event-desc-pop,
#hipsy-popup .hipsy-event-desc-pop *,
#hipsy-popup .hipsy-event-city-pop,
#hipsy-popup .hipsy-event-city-pop *,
#hipsy-popup .hipsy-event-location-pop,
#hipsy-popup .hipsy-event-location-pop * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* v9.1.1 popup close button outside popup frame */
#hipsy-popup {
  overflow: hidden !important;
}

#hipsy-popup .hipsy-popup-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 720px);
  max-width: 720px;
  max-height: calc(100vh - 40px);
  pointer-events: none;
  z-index: 2 !important;
}

#hipsy-popup .hipsy-popup-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  max-height: calc(100vh - 40px) !important;
  pointer-events: auto;
  overflow: hidden !important;
}

#hipsy-popup .hipsy-popup-inner {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0;
}

#hipsy-popup .hipsy-popup-close,
#hipsy-popup button.hipsy-popup-close {
  position: absolute !important;
  top: -38px !important;
  right: -60px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(0,0,0,0.88) !important;
  color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 7000 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24) !important;
  pointer-events: auto !important;
}

#hipsy-popup .hipsy-popup-close .hipsy-popup-close-icon,
#hipsy-popup button.hipsy-popup-close .hipsy-popup-close-icon {
  display: block !important;
  color: #fff !important;
  font-size: 36px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}

#hipsy-popup .hipsy-popup-scroll-top {
  position: absolute !important;
  right: 18px !important;
  bottom: 96px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(0,0,0,0.82) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 24px !important;
  line-height: 1 !important;
  z-index: 20002 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22) !important;
  pointer-events: auto !important;
}

#hipsy-popup .hipsy-popup-inner {
  padding-bottom: 90px !important;
}

#hipsy-popup .hipsy-popup-scroll-top[hidden] {
  display: none !important;
}

#hipsy-popup .hipsy-popup-error {
  text-align: center;
}

#hipsy-popup .hipsy-popup-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--td-primary, #111);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

#hipsy-popup .hipsy-popup-refresh:hover,
#hipsy-popup .hipsy-popup-refresh:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

#hipsy-popup .hipsy-popup-close::before,
#hipsy-popup button.hipsy-popup-close::before {
  content: none !important;
}

@media (max-width: 768px) {
  #hipsy-popup .hipsy-popup-stage {
    width: min(94vw, 720px);
    max-height: calc(100vh - 20px);
  }

  #hipsy-popup .hipsy-popup-content {
    max-height: calc(100vh - 20px) !important;
  }

  #hipsy-popup .hipsy-popup-close,
  #hipsy-popup button.hipsy-popup-close {
    top: -25px !important;
    right: -25px !important;
    width: 30px !important;
    height: 46px !important;
    min-width: 30px !important;
    min-height: 46px !important;
  }
}


/* Single-event shortcode: keep one event centered by default for every view */
.hipsy-events-grid[data-single-event="1"] {
  justify-content: center;
}

.hipsy-events-grid[data-single-event="1"] > .hipsy-event-card {
  margin-left: auto;
  margin-right: auto;
}

/* Single-event shortcode: align=left|right overrides centering */
.hipsy-events-grid[data-single-event="1"].hipsy-align-left {
  justify-content: start;
  justify-items: start;
}

.hipsy-events-grid[data-single-event="1"].hipsy-align-left > .hipsy-event-card {
  margin-left: 0;
  margin-right: auto;
}

.hipsy-events-grid[data-single-event="1"].hipsy-align-right {
  justify-content: end;
  justify-items: end;
}

.hipsy-events-grid[data-single-event="1"].hipsy-align-right > .hipsy-event-card {
  margin-left: auto;
  margin-right: 0;
}

.hipsy-events-grid.hipsy-view-grid[data-single-event="1"] {
  grid-template-columns: 1fr;
}

.hipsy-events-grid.hipsy-view-grid[data-single-event="1"] > .hipsy-event-card {
  width: 100%;
  max-width: 420px;
}

.hipsy-events-grid.hipsy-view-card[data-single-event="1"] {
  grid-template-columns: 1fr;
}

.hipsy-events-grid.hipsy-view-card[data-single-event="1"] > .hipsy-event-card {
  width: 100%;
  max-width: 520px;
}

.hipsy-events-grid.hipsy-view-list[data-single-event="1"],
.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] {
  display: block;
}

.hipsy-events-grid.hipsy-view-list[data-single-event="1"] > .hipsy-event-card,
.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] > .hipsy-event-card {
  width: 100%;
  max-width: 760px;
}

.hipsy-events-grid.hipsy-view-list[data-single-event="1"] > .hipsy-event-card.hipsy-has-thumb {
  grid-template-columns: 1fr;
  row-gap: 12px;
  text-align: center;
}

.hipsy-events-grid.hipsy-view-list[data-single-event="1"] .hipsy-event-thumb {
  margin-left: auto;
  margin-right: auto;
}

.hipsy-events-grid.hipsy-view-list[data-single-event="1"] .hipsy-event-location,
.hipsy-events-grid.hipsy-view-list[data-single-event="1"] .hipsy-event-actions,
.hipsy-events-grid.hipsy-view-list[data-single-event="1"] .hipsy-event-tags {
  justify-content: center;
  text-align: center;
}

.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-feed-top {
  grid-template-columns: 1fr;
  row-gap: 12px;
  text-align: center;
}

.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-feed-col--image,
.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-feed-col--date,
.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-feed-col--head {
  justify-self: center;
  text-align: center;
}

.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-event-location,
.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-event-actions,
.hipsy-events-grid.hipsy-view-feed[data-single-event="1"] .hipsy-event-tags {
  justify-content: center;
  justify-self: center;
  text-align: center;
}


/* Shortcode align=left|center|right */
.hipsy-events-grid.hipsy-align-left { justify-items: start; }
.hipsy-events-grid.hipsy-align-center { justify-items: center; }
.hipsy-events-grid.hipsy-align-right { justify-items: end; }

.hipsy-events-grid.hipsy-align-left .hipsy-event-card,
.hipsy-events-grid.hipsy-align-center .hipsy-event-card,
.hipsy-events-grid.hipsy-align-right .hipsy-event-card,
.hipsy-events-grid.hipsy-align-left .hipsy-feed-item,
.hipsy-events-grid.hipsy-align-center .hipsy-feed-item,
.hipsy-events-grid.hipsy-align-right .hipsy-feed-item,
.hipsy-events-grid.hipsy-align-left .hipsy-list-item,
.hipsy-events-grid.hipsy-align-center .hipsy-list-item,
.hipsy-events-grid.hipsy-align-right .hipsy-list-item {
  width: 100%;
}

.hipsy-events-grid.hipsy-align-left .hipsy-event-card,
.hipsy-events-grid.hipsy-align-left .hipsy-feed-item,
.hipsy-events-grid.hipsy-align-left .hipsy-list-item,
.hipsy-events-grid.hipsy-align-left .hipsy-event-body,
.hipsy-events-grid.hipsy-align-left .hipsy-event-actions,
.hipsy-events-grid.hipsy-align-left .hipsy-event-tags { text-align: left; justify-content: flex-start; }

.hipsy-events-grid.hipsy-align-center .hipsy-event-card,
.hipsy-events-grid.hipsy-align-center .hipsy-feed-item,
.hipsy-events-grid.hipsy-align-center .hipsy-list-item,
.hipsy-events-grid.hipsy-align-center .hipsy-event-body,
.hipsy-events-grid.hipsy-align-center .hipsy-event-actions,
.hipsy-events-grid.hipsy-align-center .hipsy-event-tags { text-align: center; justify-content: center; }

.hipsy-events-grid.hipsy-align-right .hipsy-event-card,
.hipsy-events-grid.hipsy-align-right .hipsy-feed-item,
.hipsy-events-grid.hipsy-align-right .hipsy-list-item,
.hipsy-events-grid.hipsy-align-right .hipsy-event-body,
.hipsy-events-grid.hipsy-align-right .hipsy-event-actions,
.hipsy-events-grid.hipsy-align-right .hipsy-event-tags { text-align: right; justify-content: flex-end; }

/* template aliases */
.hipsy-events-grid.hipsy-template-compact .hipsy-list-item { gap: 10px; }
.hipsy-events-grid.hipsy-template-simple .hipsy-event-card { box-shadow: none; }
.hipsy-events-grid.hipsy-template-modern .hipsy-event-card { border-radius: 20px; }


/* Single-event content alignment for align=left|right */
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-title,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-date,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-date--feed,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-city,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-desc,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-location,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-actions,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-tags,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-feed-col--head,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-feed-top,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-list-item,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-body {
  text-align: left !important;
  justify-content: flex-start !important;
  justify-self: start !important;
}

.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-event-thumb,
.hipsy-events-grid[data-single-event="1"].hipsy-align-left .hipsy-feed-col--image {
  margin-left: 0;
  margin-right: auto;
  justify-self: start !important;
}

.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-title,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-date,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-date--feed,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-city,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-desc,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-location,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-actions,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-tags,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-feed-col--head,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-feed-top,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-list-item,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-body {
  text-align: right !important;
  justify-content: flex-end !important;
  justify-self: end !important;
}

.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-event-thumb,
.hipsy-events-grid[data-single-event="1"].hipsy-align-right .hipsy-feed-col--image {
  margin-left: auto;
  margin-right: 0;
  justify-self: end !important;
}

/* ======================================================
   Popup calendar tile: clickable ICS download + hover
   ====================================================== */
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable {
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--td-primary, #7E57C2) 35%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable:hover,
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  border-color: var(--td-primary, #7E57C2);
  outline: none;
}
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable {
  position: relative;
}
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable::after {
  content: attr(data-hipsy-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  min-width: 150px;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--td-primary-dark, #3E2A5F);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 40;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable:hover::after,
#hipsy-popup .hipsy-calbox.hipsy-calbox-clickable:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Popup View Tickets hover: token/template driven */
#hipsy-popup .hipsy-popup-show-tickets {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
#hipsy-popup .hipsy-popup-show-tickets:hover,
#hipsy-popup .hipsy-popup-show-tickets:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  border-color: var(--td-primary, currentColor);
  outline: none;
}
#hipsy-popup .hipsy-theme-minimal .hipsy-popup-show-tickets:hover,
#hipsy-popup.hipsy-theme-minimal .hipsy-popup-show-tickets:hover {
  background: #000;
  color: #fff;
}
#hipsy-popup .hipsy-theme-conscious .hipsy-popup-show-tickets:hover,
#hipsy-popup.hipsy-theme-conscious .hipsy-popup-show-tickets:hover {
  background: linear-gradient(135deg, #6d46b4, #e7b86b);
  color: #fff;
}
#hipsy-popup .hipsy-theme-red .hipsy-popup-show-tickets:hover,
#hipsy-popup.hipsy-theme-red .hipsy-popup-show-tickets:hover {
  background: #5f1320;
  color: #fff;
}


/* Ticket button icon mode */
.hipsy-event-actions .hipsy-ticket-link--icon,
#hipsy-popup .hipsy-popup-show-tickets.hipsy-ticket-button--icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
}
.hipsy-event-actions .hipsy-ticket-link--icon .hipsy-ticket-icon,
#hipsy-popup .hipsy-popup-show-tickets .hipsy-ticket-icon {
  display: block;
  width: 22px;
  height: 22px;
  line-height: 1;
}
.hipsy-theme-minimal .hipsy-event-actions .hipsy-ticket-link--icon {
  border-color: #111;
  color: #111;
}
.hipsy-theme-conscious .hipsy-event-actions .hipsy-ticket-link--icon {
  border-color: var(--td-primary, #7E57C2);
  color: var(--td-primary, #7E57C2);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--td-primary, #7E57C2) 16%, transparent);
}
.hipsy-theme-conscious .hipsy-event-actions .hipsy-ticket-link--icon:hover,
.hipsy-theme-conscious .hipsy-event-actions .hipsy-ticket-link--icon:focus-visible {
  color: #fff;
}
.hipsy-theme-red .hipsy-event-actions .hipsy-ticket-link--icon {
  border-color: #8b1e2d;
  color: #8b1e2d;
}
.hipsy-theme-hipsy .hipsy-event-actions .hipsy-ticket-link--icon {
  border-color: #29a6d6;
  color: #29a6d6;
}
.hipsy-theme-custom .hipsy-event-actions .hipsy-ticket-link--icon {
  border-color: var(--td-primary, currentColor);
  color: var(--td-primary, currentColor);
}
.hipsy-event-actions .hipsy-ticket-link--icon:hover,
.hipsy-event-actions .hipsy-ticket-link--icon:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* v10.0.5.7: keep ticket icon/buttons aligned at the bottom of grid cards */
.hipsy-events-grid.hipsy-view-grid .hipsy-event-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.hipsy-events-grid.hipsy-view-grid .hipsy-event-actions {
  margin-top: auto;
}

/* Wider Hipsy Tickets iframe/modal window */
#hipsy-ticket-modal .hipsy-ticket-modal-panel {
  max-width: 895px;
}

/* Popup ticket button stays full width even when grid ticket buttons use icon mode. */
#hipsy-popup .hipsy-popup-show-tickets--full {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hipsy-popup .hipsy-popup-actions--icon-left .hipsy-popup-show-tickets--full.hipsy-ticket-button--icon,
#hipsy-popup .hipsy-popup-actions--icon-center .hipsy-popup-show-tickets--full.hipsy-ticket-button--icon,
#hipsy-popup .hipsy-popup-actions--icon-right .hipsy-popup-show-tickets--full.hipsy-ticket-button--icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
}

#hipsy-popup .hipsy-popup-actions--icon-left,
#hipsy-popup .hipsy-popup-actions--icon-center,
#hipsy-popup .hipsy-popup-actions--icon-right {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#hipsy-popup .hipsy-popup-actions--icon-left .hipsy-popup-ticketbox,
#hipsy-popup .hipsy-popup-actions--icon-center .hipsy-popup-ticketbox,
#hipsy-popup .hipsy-popup-actions--icon-right .hipsy-popup-ticketbox {
  flex: 0 0 100%;
  width: 100%;
}

#hipsy-popup .hipsy-popup-actions--icon-left {
  justify-content: flex-start;
}

#hipsy-popup .hipsy-popup-actions--icon-center {
  justify-content: center;
}

#hipsy-popup .hipsy-popup-actions--icon-right {
  justify-content: flex-end;
}

/* Remove border inside Hipsy popup/ticket embedded white panel */
.bg-white.dark\:bg-app-dark.border.overflow-hidden.border-gray-400 {
  border: none;
}

/* v12.0.16: labels top-left, special marker top-right, app-style ticket icon default. */
.hipsy-event-card,
.hipsy-event-item,
.hipsy-list-item,
.hipsy-feed-item,
.hipsy-event-image-wrap,
.hipsy-card-thumb,
.hipsy-popup-cover {
  position: relative;
  overflow: visible !important;
}

.hipsy-official-label,
.hipsy-official-link--grid .hipsy-official-label,
.hipsy-official-link--card .hipsy-official-label,
.hipsy-official-link--popup .hipsy-official-label,
.hipsy-view-feed .hipsy-official-link--grid .hipsy-official-label--grid,
.hipsy-view-list .hipsy-official-link--grid .hipsy-official-label--grid {
  transform: rotate(-15deg) !important;
  transform-origin: top left !important;
}

.hipsy-official-link--grid,
.hipsy-official-link--card,
.hipsy-view-feed .hipsy-official-link--grid,
.hipsy-view-list .hipsy-official-link--grid {
  top: -14px !important;
  left: -6px !important;
  right: auto !important;
  width: 40px !important;
  z-index: 12 !important;
}

.hipsy-official-link--grid .hipsy-official-label,
.hipsy-official-link--card .hipsy-official-label,
.hipsy-view-feed .hipsy-official-link--grid .hipsy-official-label--grid,
.hipsy-view-list .hipsy-official-link--grid .hipsy-official-label--grid {
  width: 40px !important;
  max-width: 40px !important;
  margin: 0 !important;
}

.hipsy-official-link--popup {
  top: 6px !important;
  left: 6px !important;
  right: auto !important;
  width: 54px !important;
  z-index: 25 !important;
}

.hipsy-official-link--popup .hipsy-official-label {
  width: 54px !important;
  max-width: 54px !important;
  margin: 0 !important;
}

.hipsy-special-marker {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #b8974f;
  color: #fff;
  line-height: 1;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(42, 20, 26, 0.22);
  pointer-events: none;
}

.hipsy-view-grid .hipsy-event-card > .hipsy-special-marker,
.hipsy-view-card .hipsy-event-card > .hipsy-special-marker,
.hipsy-view-list .hipsy-event-card > .hipsy-special-marker,
.hipsy-view-list .hipsy-event-item > .hipsy-special-marker {
  display: inline-flex !important;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  z-index: 60 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Grid only: lift the Special star over the tile's top-right corner. */
.hipsy-view-grid .hipsy-event-card > .hipsy-special-marker {
  top: -8px !important;
  right: -4px !important;
}

.hipsy-view-feed .hipsy-special-marker {
  display: inline-flex !important;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 30px !important;
  height: 30px !important;
  z-index: 60 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hipsy-view-feed .hipsy-event-card > .hipsy-special-marker,
.hipsy-view-feed .hipsy-event-item > .hipsy-special-marker,
.hipsy-view-feed .hipsy-feed-item > .hipsy-special-marker {
  top: 4px !important;
  right: 4px !important;
}

.hipsy-special-marker--popup {
  top: 6px;
  right: 6px;
}

/* v12.0.19: per-view label placement requested for website shortcodes. */
.hipsy-view-grid .hipsy-official-link--grid .hipsy-official-label {
  margin-left: -24px !important;
  margin-top: -9px !important;
}

.hipsy-view-feed .hipsy-official-link--grid .hipsy-official-label,
.hipsy-view-feed .hipsy-official-link--grid .hipsy-official-label--grid {
  width: 25px !important;
  max-width: 30px !important;
  margin-top: 12px !important;
  margin-left: 0 !important;
}

.hipsy-view-list .hipsy-official-link--grid .hipsy-official-label,
.hipsy-view-list .hipsy-official-link--grid .hipsy-official-label--grid {
  width: 25px !important;
  max-width: 30px !important;
  margin-left: -13px !important;
  margin-top: 8px !important;
}

.hipsy-official-link--popup .hipsy-official-label {
  margin-left: -34px !important;
  margin-top: -19px !important;
}

/* v12.0.20: popup marker placement. */
.hipsy-special-marker--popup {
  top: 4px !important;
  right: 4px !important;
}

h3.hipsy-section {
  text-align: left;
}

h2.hipsy-event-title-pop {
  padding-top: 1px;
}

.hipsy-event-location-approx,
.hipsy-map-popup-location-approx {
  margin-top: 4px;
  font-size: 0.86em;
  font-style: italic;
  color: var(--td-text);
  opacity: 0.74;
}

.hipsy-map-pin {
  position: relative;
}

.hipsy-map-pin-approx {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--td-accent);
  color: var(--td-primary-dark);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* v14.0.37: stack the event count above days-to-event on multi-event map pins. */
.hipsy-map-pin > .hipsy-map-pin-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.hipsy-map-pin-label strong {
  font-size: 13px;
  line-height: 0.9;
}

.hipsy-map-pin-label small {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

/* v14.0.40: explain map marker day and event-count abbreviations. */
.hipsy-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding: 11px 12px 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.hipsy-map-legend strong {
  color: #1f2937;
  font-weight: 800;
}

@media (max-width: 600px) {
  .hipsy-map-legend {
    flex-direction: column;
    gap: 3px;
  }
}

/* v14.0.7: center the popup title beside its date badge and tighten location spacing. */
#hipsy-popup .hipsy-popup-title-row {
  align-items: center;
}

#hipsy-popup .hipsy-popup-title-row > .hipsy-event-title-pop {
  padding-top: 0;
  padding-bottom: 0;
}

#hipsy-popup .hipsy-event-location-pop {
  padding-top: 8px;
}

/* v14.0.10: center tags in the Grid view. */
.hipsy-events-grid.hipsy-view-grid .hipsy-event-tags {
  justify-content: center !important;
  text-align: center !important;
}

/* v14.0.12: clearly mark past events without hiding historical detail pages. */
#hipsy-popup .hipsy-calbox.hipsy-calbox-past {
  --hipsy-primary: #a6a6a6;
  background: #d3d3d3 !important;
  border-color: #b8b8b8;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-past .hipsy-calbox-top {
  background: #a6a6a6;
}

#hipsy-popup .hipsy-calbox .hipsy-calbox-past-label {
  padding: 3px 5px 0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: lowercase;
}

#hipsy-popup .hipsy-calbox.hipsy-calbox-past .hipsy-calbox-day,
#hipsy-popup .hipsy-calbox.hipsy-calbox-past .hipsy-calbox-time {
  color: #444;
}

/* v14.0.22: month calendar shortcode view. */
.hipsy-events-grid.hipsy-view-calendar {
  display: block;
  width: 100%;
}

.hipsy-calendar {
  width: 100%;
  color: var(--td-text);
}

.hipsy-calendar-nav {
  display: grid;
  grid-template-columns: 42px minmax(220px, 330px) 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hipsy-calendar-nav-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--td-primary) 30%, transparent);
  border-radius: 999px;
  background: var(--td-card-bg);
  color: var(--td-primary);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.hipsy-calendar-nav-button:hover,
.hipsy-calendar-nav-button:focus-visible {
  color: #fff;
  background: var(--td-primary);
  outline: none;
}

.hipsy-calendar-nav-button:disabled {
  border-color: color-mix(in srgb, var(--td-text) 14%, transparent);
  background: color-mix(in srgb, var(--td-card-bg) 92%, var(--td-text));
  color: color-mix(in srgb, var(--td-text) 35%, transparent);
  box-shadow: none;
  cursor: default;
}

.hipsy-calendar-month-label {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hipsy-calendar-month-select {
  width: 100%;
  max-width: 100%;
  padding: 8px 36px 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  color: var(--td-text);
  font: inherit;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.hipsy-calendar-month-select option {
  text-align: center;
}

.hipsy-calendar-month-select:hover,
.hipsy-calendar-month-select:focus-visible {
  border-color: color-mix(in srgb, var(--td-primary) 35%, transparent);
  outline: none;
}

.hipsy-calendar-scroll {
  overflow-x: auto;
  padding: 1px 1px 8px;
  -webkit-overflow-scrolling: touch;
}

.hipsy-calendar-weekdays,
.hipsy-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  min-width: 700px;
}

.hipsy-calendar-weekdays {
  border: 1px solid color-mix(in srgb, var(--td-text) 16%, transparent);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--td-primary) 9%, var(--td-card-bg));
}

.hipsy-calendar-weekdays span {
  padding: 9px 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hipsy-calendar-days {
  border-top: 1px solid color-mix(in srgb, var(--td-text) 16%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--td-text) 16%, transparent);
}

.hipsy-calendar-day {
  box-sizing: border-box;
  min-height: 126px;
  padding: 7px;
  border-right: 1px solid color-mix(in srgb, var(--td-text) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--td-text) 16%, transparent);
  background: var(--td-card-bg);
}

.hipsy-calendar-day--empty {
  background: color-mix(in srgb, var(--td-card-bg) 80%, var(--td-text) 4%);
}

.hipsy-calendar-day--compact-week {
  min-height: 52px;
}

.hipsy-calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-bottom: 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hipsy-calendar-day--today .hipsy-calendar-day-number {
  background: var(--td-primary);
  color: #fff;
}

.hipsy-calendar-day-events {
  display: grid;
  gap: 5px;
}

.hipsy-calendar-event {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: start;
  margin: 0;
  padding: 6px;
  border: 0;
  border-left: 3px solid var(--td-primary);
  border-radius: 5px;
  background: color-mix(in srgb, var(--td-primary) 10%, var(--td-card-bg));
  color: var(--td-text);
  font-size: 11px;
  line-height: 1.25;
  cursor: pointer;
}

.hipsy-calendar-event:hover,
.hipsy-calendar-event:focus-visible {
  background: color-mix(in srgb, var(--td-primary) 18%, var(--td-card-bg));
  outline: 2px solid color-mix(in srgb, var(--td-primary) 50%, transparent);
  outline-offset: 1px;
}

.hipsy-calendar-event--past {
  border-left-color: #a6a6a6;
  background: #eeeeee;
  color: #666;
}

.hipsy-calendar-event-time {
  font-weight: 800;
  white-space: nowrap;
}

.hipsy-calendar-event-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.hipsy-calendar-event-special {
  color: #b8974f;
  font-size: 13px;
  line-height: 1;
}

.hipsy-calendar-event-qualified {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--td-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.hipsy-calendar-hover-thumbnail {
  position: fixed;
  z-index: 2147482500;
  width: 112px;
  height: 72px;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(0, 0, 0, .28);
  pointer-events: none;
  animation: hipsy-calendar-thumbnail-in 120ms ease-out;
}

.hipsy-calendar-hover-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

@keyframes hipsy-calendar-thumbnail-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.hipsy-calendar-month-total {
  margin-top: 8px;
  text-align: right;
  color: var(--td-text);
  font-size: 13px;
  font-weight: 700;
  opacity: .72;
}

@media (max-width: 767px) {
  .hipsy-calendar-nav {
    grid-template-columns: 38px minmax(180px, 1fr) 38px;
    gap: 7px;
  }

  .hipsy-calendar-nav-button {
    width: 38px;
    height: 38px;
  }

  .hipsy-calendar-month-select {
    padding-right: 24px;
    font-size: 18px;
  }
}

/* Align grid rows without changing alignment of text inside the cards. */
.hipsy-events-grid.hipsy-view-grid[class*="hipsy-view-align-"]:not([data-single-event="1"]) {
  display: flex;
  flex-wrap: wrap;
  --hipsy-grid-columns: 1;
}
.hipsy-events-grid.hipsy-view-grid.hipsy-view-align-left:not([data-single-event="1"]) { justify-content: flex-start; }
.hipsy-events-grid.hipsy-view-grid.hipsy-view-align-center:not([data-single-event="1"]) { justify-content: center; }
.hipsy-events-grid.hipsy-view-grid.hipsy-view-align-right:not([data-single-event="1"]) { justify-content: flex-end; }
.hipsy-events-grid.hipsy-view-grid[class*="hipsy-view-align-"]:not([data-single-event="1"]) > .hipsy-event-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--hipsy-grid-columns) - 1) * 24px) / var(--hipsy-grid-columns));
  min-width: 0;
}
.hipsy-events-grid.hipsy-view-grid[class*="hipsy-view-align-"] > .hipsy-loading {
  width: 100%;
}
@media (min-width: 640px) {
  .hipsy-events-grid.hipsy-view-grid[class*="hipsy-view-align-"]:not([data-single-event="1"]) { --hipsy-grid-columns: 2; }
}
@media (min-width: 1024px) {
  .hipsy-events-grid.hipsy-view-grid[class*="hipsy-view-align-"]:not([data-single-event="1"]) { --hipsy-grid-columns: 3; }
}
@media (min-width: 1400px) {
  .hipsy-events-grid.hipsy-view-grid[class*="hipsy-view-align-"]:not([data-single-event="1"]) { --hipsy-grid-columns: 4; }
}

/* Numbered event levels, independent of tag visibility. */
.hipsy-event-card, .hipsy-calendar-event { position: relative; }
.hipsy-level-labels { position: absolute; top: 8px; right: 8px; z-index: 61; display: flex; gap: 4px; }
.hipsy-wrap .hipsy-level-label, #hipsy-popup .hipsy-level-label { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--td-primary, #7e57c2); color: #fff; font: 700 16px/1 sans-serif; cursor: pointer; box-shadow: 0 2px 8px #0003; }
.hipsy-event-card:has(.hipsy-level-labels) > .hipsy-special-marker { right: 48px !important; }
.hipsy-event-card:has(.hipsy-level-labels .hipsy-level-label:nth-child(2)) > .hipsy-special-marker { right: 84px !important; }
.hipsy-event-card:has(.hipsy-level-labels .hipsy-level-label:nth-child(3)) > .hipsy-special-marker { right: 120px !important; }
.hipsy-view-list .hipsy-event-card:has(.hipsy-level-labels), .hipsy-view-feed .hipsy-event-card:has(.hipsy-level-labels) { padding-top: 48px; }
.hipsy-calendar-event:has(.hipsy-level-labels) { padding-top: 38px; }
.hipsy-calendar-event .hipsy-level-labels { top: 3px; right: 3px; }
.hipsy-calendar-event .hipsy-level-label { width: 26px; height: 26px; font-size: 13px; }
.hipsy-level-dialog { box-sizing: border-box; width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 0; border-radius: 16px; background: #fff; color: #302237; box-shadow: 0 16px 60px #0005; }
.hipsy-level-dialog::backdrop { background: #0009; }
.hipsy-level-dialog h2 { margin: 0 24px 16px 0; font-size: 24px; color: inherit; }
.hipsy-level-dialog p { margin: 0 0 24px; line-height: 1.6; }
.hipsy-level-close { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 28px; cursor: pointer; }
.hipsy-level-more { display: inline-block; padding: 10px 20px; border-radius: 8px; background: var(--td-primary, #7e57c2); color: #fff !important; text-decoration: none; }
.hipsy-level-label:focus-visible, .hipsy-level-dialog :focus-visible { outline: 3px solid #bc8633; outline-offset: 3px; }

/* Keep details labels anchored to the article even when its cover is hidden. */
#hipsy-popup article { position: relative; }
#hipsy-popup article:has(> .hipsy-level-labels) { padding-top: 48px; }
#hipsy-popup article > .hipsy-level-labels { top: 10px; right: 12px; }
#hipsy-popup article:has(> .hipsy-level-labels) > .hipsy-special-marker { right: 124px !important; }
#hipsy-popup article > .hipsy-official-link--popup { position: relative; display: block; width: 100px; margin: 12px; top: auto; left: auto; right: auto; bottom: auto; }

/* Both corner badges share the outer card anchor and vertical centre. */
.hipsy-view-grid .hipsy-event-card,
.hipsy-view-card .hipsy-event-card {
  position: relative;
  overflow: visible !important;
}
.hipsy-view-grid .hipsy-event-card > .hipsy-official-link,
.hipsy-view-card .hipsy-event-card > .hipsy-official-link {
  position: absolute;
  top: -14px !important;
  left: -6px !important;
  right: auto !important;
  width: 40px !important;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 62 !important;
}
.hipsy-view-grid .hipsy-event-card > .hipsy-official-link .hipsy-official-label,
.hipsy-view-card .hipsy-event-card > .hipsy-official-link .hipsy-official-label {
  position: static !important;
  width: 40px !important;
  max-width: 40px !important;
  height: auto !important;
  margin: 0 !important;
  transform: rotate(-15deg) !important;
  transform-origin: center !important;
}
.hipsy-view-grid .hipsy-event-card > .hipsy-level-labels,
.hipsy-view-card .hipsy-event-card > .hipsy-level-labels {
  top: -14px;
  right: -6px;
  min-height: 40px;
  align-items: center;
}


/* Details badges share one header row, independent of the cover image. */
#hipsy-popup article:has(> .hipsy-level-labels),
#hipsy-popup article:has(> .hipsy-official-link--popup) { padding-top: 58px; }
#hipsy-popup article > .hipsy-official-link--popup {
  position: absolute !important;
  top: 10px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  width: 40px !important;
  height: 40px;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hipsy-popup article > .hipsy-official-link--popup .hipsy-official-label {
  position: static !important;
  width: 40px !important;
  max-width: 40px !important;
  height: auto !important;
  margin: 0 !important;
  transform: rotate(-15deg) !important;
  transform-origin: center !important;
}
#hipsy-popup article > .hipsy-level-labels {
  top: 10px;
  right: 12px;
  min-height: 40px;
  align-items: center;
}

/* Level badges: theme-coloured number on a light beige background. */
.hipsy-wrap .hipsy-level-label,
#hipsy-popup .hipsy-level-label {
  background: #f6efe7;
  color: var(--td-primary, #7e57c2);
  border-color: #f6efe7;
}

/* Event grids may be rendered outside .hipsy-wrap by Joomla modules/components. */
.hipsy-level-labels > .hipsy-level-label {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #f6efe7 !important;
  border-radius: 50% !important;
  background: #f6efe7 !important;
  color: var(--td-primary, #7e57c2) !important;
  font: 700 16px/1 sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px #0003 !important;
  cursor: pointer !important;
  appearance: none !important;
}
.hipsy-level-labels > .hipsy-level-label:focus-visible {
  outline: 3px solid #bc8633;
  outline-offset: 3px;
}

/* Special stays a gold circle; a level replaces its star only when enabled. */
.hipsy-special-marker,
.hipsy-view-grid .hipsy-event-card > .hipsy-special-marker,
.hipsy-view-card .hipsy-event-card > .hipsy-special-marker,
#hipsy-popup .hipsy-special-marker {
  background: #efbf4b !important;
  color: #fff !important;
}
.hipsy-special-marker.hipsy-special-level {
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font: 800 17px/1 sans-serif;
  cursor: pointer;
  pointer-events: auto;
  color: #4b3000 !important;
  width: 34px;
  height: 34px;
}
.hipsy-special-marker.hipsy-special-level:hover { background: #ffd46a !important; }
.hipsy-special-marker.hipsy-special-level:focus-visible { outline: 3px solid #4b3000; outline-offset: 2px; }
/* Once merged, the Special badge occupies the level corner. */
.hipsy-view-grid .hipsy-event-card > .hipsy-special-level,
.hipsy-view-card .hipsy-event-card > .hipsy-special-level {
  top: -14px !important;
  right: -6px !important;
  z-index: 62 !important;
}
#hipsy-popup article > .hipsy-special-level { top: 10px !important; right: 12px !important; }
/* Enabled Special levels place the number in the star itself. */
.hipsy-special-marker.hipsy-special-level {
  width: 38px !important;
  height: 38px !important;
  border-radius: 0 !important;
  clip-path: polygon(50% 0%, 62% 31%, 95% 33%, 70% 54%, 79% 87%, 50% 69%, 21% 87%, 30% 54%, 5% 33%, 38% 31%);
}
.hipsy-view-grid .hipsy-event-card > .hipsy-special-level {
  right: -13px !important;
}
/* Position detail badges near the popup frame corners, outside the image inset. */
#hipsy-popup article > .hipsy-official-link--popup {
  top: -14px !important;
  left: -12px !important;
}
#hipsy-popup article > .hipsy-level-labels {
  top: -14px !important;
  right: -12px !important;
}
#hipsy-popup article > .hipsy-special-marker--popup,
#hipsy-popup article > .hipsy-special-level {
  top: -14px !important;
  right: -12px !important;
}
#hipsy-popup article:has(> .hipsy-level-labels),
#hipsy-popup article:has(> .hipsy-official-link--popup) {
  padding-top: 14px;
}

/* Event request recovery, including infinite-scroll and empty results. */
.hipsy-load-recovery { text-align: center; padding: 1rem; }
.hipsy-load-recovery[hidden] { display: none !important; }
.hipsy-reload-events { font: inherit; cursor: pointer; padding: .6em 1.2em; border: 1px solid currentColor; border-radius: .35em; color: inherit; background: transparent; }

.hipsy-view-list .hipsy-list-level { font: inherit; color: inherit; white-space: nowrap; }
.hipsy-view-list .hipsy-event-title .hipsy-list-level {
  font-weight: 400;
}
.hipsy-view-feed .hipsy-event-card:has(.hipsy-level-labels) {
  padding-top: 0px;
}

.hipsy-wrap {
  padding-top: 55px;
}
