/* =========================================================
   Tiqets Distributor – Stylesheet
   Font: Verdana (matches site theme)
   Brand colors via CSS variables --tq-cta-bg / --tq-cta-text / --tq-cta-hover-bg (set per site profile; defaults = deep red #931b31, white text)
   ========================================================= */

/* ---------------------------------------------------------
   Product Card — outer <a> tag is the entire clickable card
   --------------------------------------------------------- */
.tiqets-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-family: Verdana, Geneva, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
}

/* Fixed height only on desktop/tablet — matches the original Tiqets widget,
   which also truncates title/tagline rather than growing the card. */
@media (min-width: 768px) {
    .tiqets-product-card {
        height: 420px;
    }
}

.tiqets-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Image area */
.tiqets-product-card__image-wrap {
    position: relative;
    width: 100%;
    height: 169px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* card's overflow:hidden was doing this before; image-wrap now handles its own corner clipping */
    background: #f0f0f0;
}

.tiqets-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.tiqets-product-card:hover .tiqets-product-card__image {
    transform: scale(1.04);
}

/* Rating overlay — bottom left of image */
.tiqets-product-card__rating {
    position: absolute;
    bottom: 8px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(2px);
    border-radius: 4px;
    padding: 3px 7px;
    z-index: 2;
}

.tiqets-product-card__star {
    display: flex;
    line-height: 1;
}

.tiqets-product-card__rating-avg {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.tiqets-product-card__rating-total {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: #777;
}

/* Discount badge */
.tiqets-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tq-cta-bg,#931b31);
    color: var(--tq-cta-text,#fff);
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Image credit */
.tiqets-product-card__credit {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Body */
.tiqets-product-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Tagline */
.tiqets-product-card__tagline {
    margin: 0 0 8px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(14px * 1.4 * 3); /* always reserve 3 lines so card content height is identical regardless of tagline length */
}

/* City label */
.tiqets-product-card__city {
    margin: 0 0 8px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #595959;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tiqets-product-card__promo::before {
    content: '•';
    color: #595959;
    margin-right: 6px;
    font-weight: 400;
}

.tiqets-product-card__promo {
    color: #931b31;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Title */
.tiqets-product-card__title {
    margin: 0 0 12px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #931b31;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(15px * 1.3 * 3); /* always reserve 3 lines so card content height is identical regardless of title length */
}

.tiqets-product-card:hover .tiqets-product-card__title {
    color: #931b31;
    text-decoration: underline;
}

/* Keyboard focus outline for accessibility */
.tiqets-product-card:focus {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

.tiqets-product-card:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

/* Price block — pinned to the bottom. Title/tagline above always reserve their
   max line-count height (see those rules), so every card's content block is
   identical and this auto-margin computes to the same gap on every card. */
.tiqets-product-card__price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.tiqets-product-card__price-row1 {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.tiqets-product-card__from {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: #595959;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.tiqets-product-card__prediscount {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #333333;
    text-decoration: line-through !important;
    font-style: normal;
}

.tiqets-product-card__amount {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #931b31;
}

/* no longer used */
.tiqets-product-card__price-top { display: none; }

/* ---------------------------------------------------------
   Horizontal card variant  [tiqets_discovery variant="horizontal"]
   Image left (fixed width), content right — ideal for single-venue
   inline placements and narrow columns.
   --------------------------------------------------------- */
.tiqets-product-card--horizontal {
    flex-direction: row;
    height: auto !important;
    max-width: 420px;
}
.tiqets-product-card--horizontal .tiqets-product-card__image-wrap {
    width: 110px;
    min-width: 110px;
    height: auto;
    min-height: 110px;
    border-radius: 8px 0 0 8px;
}
.tiqets-product-card--horizontal .tiqets-product-card__rating {
    bottom: 6px;
    left: 6px;
    padding: 2px 5px;
    font-size: 11px;
}
.tiqets-product-card--horizontal .tiqets-product-card__body {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}
.tiqets-product-card--horizontal .tiqets-product-card__city {
    font-size: 10px;
    margin: 0 0 2px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #666;
}
.tiqets-product-card--horizontal .tiqets-product-card__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
}
.tiqets-product-card--horizontal .tiqets-product-card__tagline {
    font-size: 11px;
    color: #555;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.tiqets-product-card--horizontal .tiqets-product-card__price {
    margin-top: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}
.tiqets-product-card--horizontal .tiqets-product-card__from {
    font-size: 10px;
}
.tiqets-product-card--horizontal .tiqets-product-card__amount {
    font-size: 15px;
}

/* Discovery wrapper in horizontal mode */
.tiqets-discovery--horizontal .tiqets-discovery__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
}
.tiqets-discovery--horizontal .tiqets-product-card--horizontal {
    max-width: none;
    width: 100%;
    height: auto !important;
}

/* ---------------------------------------------------------
   Compact Calendar Card  [tiqets_calendar variant="compact"]
   --------------------------------------------------------- */
.tiqets-cal-compact {
    max-width: 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: Verdana, Geneva, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

/* Hero link wraps the image strip */
.tiqets-cal-compact__hero {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    overflow: hidden;
}

/* Dual-image strip */
.tiqets-cal-compact__imgs {
    display: flex;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
}

.tiqets-cal-compact__img {
    flex: 1;
    object-fit: cover;
    display: block;
    min-width: 0;
    transition: transform .3s ease;
}

.tiqets-cal-compact__img + .tiqets-cal-compact__img {
    border-left: 2px solid #fff;
}

.tiqets-cal-compact__hero:hover .tiqets-cal-compact__img {
    transform: scale(1.04);
}

.tiqets-cal-compact__img-placeholder {
    flex: 1;
    background: #e8e8e8;
}

/* Info bar */
.tiqets-cal-compact__info {
    padding: 12px 14px 6px;
}

.tiqets-cal-compact__title {
    margin: 0 0 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #931b31;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tiqets-cal-compact__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tiqets-cal-compact__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    color: #333;
}

.tiqets-cal-compact__price {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #931b31;
    white-space: nowrap;
}

.tiqets-cal-compact__price-from {
    font-size: 11px;
    font-weight: 400;
    color: #595959;
    margin-right: 2px;
}

/* Month label */
.tiqets-cal-compact__month-label {
    padding: 10px 14px 2px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #595959;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* Day chips row */
.tiqets-cal-compact__days {
    display: flex;
    gap: 6px;
    padding: 6px 14px 12px;
    align-items: stretch;
}

.tiqets-cal-compact__day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #931b31;
    font-family: Verdana, Geneva, sans-serif;
    background: #fff;
    line-height: 1.2;
    transition: border-color .15s, background .15s;
    cursor: pointer;
    min-width: 0;
}

.tiqets-cal-compact__day:hover {
    border-color: #931b31;
    background: #f5f7fa;
    text-decoration: none;
    color: #931b31;
}

.tiqets-cal-compact__day:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

.tiqets-cal-compact__day-wd {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #595959;
    letter-spacing: .3px;
}

.tiqets-cal-compact__day-n {
    font-size: 22px;
    font-weight: 700;
    color: #931b31;
    margin-top: 1px;
}

/* "More dates" chip */
.tiqets-cal-compact__day--more {
    color: #595959;
    gap: 2px;
}

.tiqets-cal-compact__day--more .tiqets-cal-compact__day-wd {
    color: #595959;
    font-size: 9px;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
}

.tiqets-cal-compact__day--more:hover {
    border-color: #595959;
    background: #f7f7f7;
    color: #333;
}

/* CTA */
.tiqets-cal-compact__cta-wrap {
    padding: 0 14px 14px;
    flex-shrink: 0;
}

.tiqets-cal-compact__cta {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: var(--tq-cta-bg,#931b31);
    color: var(--tq-cta-text,#fff) !important;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background .15s;
}

.tiqets-cal-compact__cta:hover {
    background: var(--tq-cta-hover-bg,#7a1628);
    color: var(--tq-cta-text,#fff) !important;
    text-decoration: none;
}

.tiqets-cal-compact__cta:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

/* Guide-language info row */
.tiqets-cal-compact__lang-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 14px 10px;
    border-top: 1px solid #efefef;
}

.tiqets-cal-compact__lang-icon {
    flex-shrink: 0;
    color: #aaa;
    display: flex;
    align-items: center;
    margin-top: 3px;
}

.tiqets-cal-compact__lang-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.tiqets-cal-compact .tiqets-cal-compact__lang-chip {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    line-height: 1.35;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
    display: inline-block;
}

/* ---------------------------------------------------------
   Calendar
   --------------------------------------------------------- */
.tiqets-calendar {
    max-width: 300px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: Verdana, Geneva, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .tiqets-calendar {
        height: 640px;
    }
}

.tiqets-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--tq-cta-bg,#931b31);
    color: var(--tq-cta-text,#fff);
}

/* Hero: Bild + Infobar */
.tiqets-calendar__hero {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.tiqets-calendar__hero-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.tiqets-calendar__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.tiqets-calendar__hero:hover .tiqets-calendar__hero-img {
    transform: scale(1.03);
}

.tiqets-calendar__hero-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.tiqets-calendar__hero-credit {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 1px 4px;
    border-radius: 3px;
}

.tiqets-calendar__hero-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--tq-cta-bg,#931b31);
    color: var(--tq-cta-text,#fff);
    gap: 10px;
}

.tiqets-calendar__hero-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tiqets-calendar__hero-title {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--tq-cta-text,#fff);
}

.tiqets-calendar__hero-rating {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: var(--tq-cta-text,#fff);
    display: flex;
    align-items: center;
    gap: 3px;
}

.tiqets-calendar__hero-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.tiqets-calendar__hero-from {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    color: var(--tq-cta-text,#fff);
    text-transform: uppercase;
}

.tiqets-calendar__hero-price strong {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--tq-cta-text,#fff);
}

/* Nav-Bar: hell mit schwarzem Text */
.tiqets-calendar__nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.tiqets-calendar__month-label {
    font-size: 14px;
    font-weight: 700;
    font-family: Verdana, Geneva, sans-serif;
    color: #111;
}

.tiqets-calendar__nav {
    background: none;
    border: none;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    border-radius: 3px;
    transition: background .15s;
}

.tiqets-calendar__nav:hover:not(:disabled) {
    background: rgba(0,0,0,.08);
}

.tiqets-calendar__nav:disabled {
    opacity: .3;
    cursor: default;
}

/* Grid */
.tiqets-calendar__grid-wrapper {
    padding: 10px 12px 4px;
    flex: 1;
}

.tiqets-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #595959;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.tiqets-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* CTA Button */
.tiqets-calendar__cta-wrap {
    padding: 10px 12px 12px;
    flex-shrink: 0;
}

.tiqets-calendar__cta {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: var(--tq-cta-bg,#931b31);
    color: var(--tq-cta-text,#fff) !important;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background .15s;
}

.tiqets-calendar__cta:hover {
    background: var(--tq-cta-hover-bg,#7a1628);
    color: var(--tq-cta-text,#fff) !important;
    text-decoration: none;
}

.tiqets-calendar__cta:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

.tiqets-calendar__hero:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

.tiqets-calendar__day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    border-radius: 4px;
    cursor: default;
    text-decoration: none;
    color: #333;
}

.tiqets-calendar__day--empty { background: transparent; }

.tiqets-calendar__day--past { color: #949494; background: transparent; }

/* Kein Hintergrund, alle klickbaren Tage normal */
.tiqets-calendar__day--high,
.tiqets-calendar__day--low {
    background: transparent;
    color: #1a1a1a;
    font-weight: 400;
}

a.tiqets-calendar__day--high,
a.tiqets-calendar__day--low {
    cursor: pointer;
    transition: background .15s;
}

a.tiqets-calendar__day--high:hover,
a.tiqets-calendar__day--low:hover {
    background: var(--tq-cta-bg,#931b31);
    color: var(--tq-cta-text,#fff) !important;
    text-decoration: none;
}

span.tiqets-calendar__day--high,
span.tiqets-calendar__day--low {
    color: #767676;
    cursor: default;
}

.tiqets-calendar__day--unknown { color: #767676; background: transparent; }

.tiqets-calendar__day--today {
    outline: 2px solid #931b31;
    outline-offset: -2px;
}

.tiqets-calendar__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #999;
    font-family: Verdana, Geneva, sans-serif;
}

.tiqets-calendar__legend { display: none; }

.tiqets-calendar__legend-high,
.tiqets-calendar__legend-low {
    display: none;
}

/* ---------------------------------------------------------
   Explore Widget — compact tag links
   --------------------------------------------------------- */
.tiqets-explore {
    font-family: Verdana, Geneva, sans-serif;
    max-width: 100%;
}

.tiqets-explore__title {
    margin: 0 0 14px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #931b31;
}

.tiqets-explore__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.tiqets-explore__tag {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 22px;
    background: #fff;
    color: #931b31;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 17px;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}

.tiqets-explore__tag:hover {
    border-color: #931b31;
    color: #931b31;
    background: #fff;
    text-decoration: none;
}

.tiqets-explore__tag:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
    border-color: #931b31;
}

.tiqets-explore__footer-link {
    display: inline-block;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #931b31;
    text-decoration: none;
}

.tiqets-explore__footer-link:hover {
    color: #931b31;
    text-decoration: underline;
}

.tiqets-explore__footer-link:focus-visible {
    outline: 3px solid #931b31;
    outline-offset: 2px;
}

/* Explore Widget — cards display mode (3-across grid, reuses .tiqets-product-card) */
.tiqets-explore__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

.tiqets-explore__cards .tiqets-product-card {
    max-width: none;
    height: auto;
}

@media (max-width: 900px) {
    .tiqets-explore__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tiqets-explore__cards {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Affiliate Disclosure Notice
   --------------------------------------------------------- */
.tiqets-affiliate-notice {
    font-family: Verdana, Geneva, sans-serif;
    color: #595959;
    margin: 16px 0;
}

.tiqets-affiliate-notice--top {
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    background: #f7f7f7;
    border-left: 3px solid #931b31;
    border-radius: 3px;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title {
    cursor: pointer;
    font-weight: 700;
    color: #931b31;
    list-style: none;
    outline: none;
    user-select: none;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title::-webkit-details-marker {
    display: none;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title::after {
    content: '▾';
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    transition: transform .15s ease;
}

.tiqets-affiliate-notice--top[open] .tiqets-affiliate-notice__title::after {
    transform: rotate(180deg);
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__title:focus-visible {
    outline: 2px solid #931b31;
    outline-offset: 2px;
}

.tiqets-affiliate-notice--top .tiqets-affiliate-notice__body {
    margin-top: 6px;
    color: #595959;
}

.tiqets-affiliate-notice--footer {
    font-size: 11px;
    line-height: 1.5;
    margin: 8px 0;
}

.tiqets-affiliate-notice--footer a {
    color: inherit;
    text-decoration: underline;
}

.tiqets-affiliate-notice--footer a:hover {
    color: #931b31;
}

/* =========================================================
   Tiqets Discovery Widget (server-side card grid)
   Colors use a CSS variable with a neutral fallback — override
   --tiqets-accent to match vatican-city.it's actual brand color.
   ========================================================= */

.tiqets-discovery {
    font-family: Verdana, Geneva, sans-serif;
    margin: 24px 0;
    --tiqets-accent: #1a73e8;
}

.tiqets-discovery__heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}

.tiqets-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start; /* don't let CSS Grid's default row-stretch force cards in the same row to equal the tallest one's height */
    gap: 16px;
    margin-top: 12px;
}

/* Single-card variant — e.g. [tiqets_discovery set="italy" count="1"].
   Collapses to one full-width card on EVERY screen size (not just mobile),
   so no separate "italy_1"-style slug is needed for a single-card layout. */
.tiqets-discovery__grid:has(.tiqets-product-card:only-child) {
    grid-template-columns: 1fr;
}
.tiqets-discovery__grid:has(.tiqets-product-card:only-child) .tiqets-product-card {
    height: auto;
    max-width: none;
}

.tiqets-discovery__grid .tiqets-product-card {
    min-width: 0; /* allow grid cells to shrink below the card's content width */
    max-width: none; /* override the shared 300px cap so cards fill their grid column evenly */
    height: 420px; /* fixed on desktop/tablet; title/tagline reserve max-line height above so this fits with no leftover gap discrepancy between cards — overridden to auto on mobile below */
}

/* Mobile: only the first card, full-width, height sized to content */
@media (max-width: 767px) {
    .tiqets-discovery__grid {
        grid-template-columns: 1fr;
    }
    .tiqets-discovery__grid .tiqets-product-card {
        height: auto;
    }
    .tiqets-discovery__grid .tiqets-product-card:nth-child(n+2) {
        display: none;
    }
}

.tiqets-discovery__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tiqets-accent);
    text-decoration: none;
}

.tiqets-discovery__footer-link:hover {
    text-decoration: underline;
}

.tiqets-discovery__footer-icon {
    flex-shrink: 0;
}

/* =========================================================
   Event Widget  [tiqets_event set="slug" count="N"]
   List of horizontal event rows (image left, text right).
   Without count: 5 events on desktop, the 5th is hidden on mobile (= 4).
   With count="N": exactly N events on every screen size.
   ========================================================= */
.tiqets-events {
    font-family: Verdana, Geneva, sans-serif;
    margin: 24px 0;
}

.tiqets-events__heading {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: inherit;
}

.tiqets-events__list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tiqets-events__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tiqets-event {
    display: flex;
    align-items: stretch;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}

.tiqets-event:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.tiqets-event__image-wrap {
    position: relative;
    flex: 0 0 200px;
    min-height: 112px;
    background: #f0f0f0;
}

.tiqets-event__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tiqets-event__credit {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 100%;
    padding: 1px 6px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tiqets-event__body {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.tiqets-event__venue {
    margin: 0;
    font-size: 12px;
    color: #595959;
}

.tiqets-event__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #1a1a1a;
}

.tiqets-event__dates {
    margin: 0;
    font-size: 13px;
    color: #931b31;
    font-weight: 600;
}

.tiqets-events__footer-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--tq-cta-bg, #931b31);
    text-decoration: none;
}

.tiqets-events__footer-link:hover {
    color: var(--tq-cta-bg, #931b31);
    text-decoration: underline;
}

.tiqets-events__footer-text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .tiqets-event__image-wrap {
        flex-basis: 110px;
        min-height: 96px;
    }
    .tiqets-event__body {
        padding: 10px 12px;
    }
    .tiqets-event__title {
        font-size: 15px;
    }
    /* default (no count): 4 events on mobile.
       nth-of-type (not nth-child): ad plugins such as Ezoic inject <div>/<script> nodes between the <li>s,
       and nth-child would count those and hide events too early. */
    .tiqets-events--default .tiqets-events__list > li:nth-of-type(n+5) {
        display: none;
    }
}

/* ---------------------------------------------------------
   GenerateBlocks containers with a fixed height
   Containers that were sized for the old Tiqets JS widgets (e.g. height: 400px)
   would clip/overlap the server-rendered widgets. Containers that hold a
   Tiqets widget as direct content now size to it.
   --------------------------------------------------------- */
.gb-container:has(> .tiqets-discovery),
.gb-container:has(> .tiqets-product-card),
.gb-container:has(> .tiqets-cal-compact),
.gb-container:has(> .gb-inside-container > .tiqets-discovery),
.gb-container:has(> .gb-inside-container > .tiqets-product-card),
.gb-container:has(> .gb-inside-container > .tiqets-cal-compact) {
    height: auto !important;
    min-height: 0 !important;
}

/* ---------------------------------------------------------
   [tiqets_discovery columns="N"] (3.3.2)
   Desktop/tablet: N cards in one row. Mobile: first two cards,
   laid out as horizontal cards (image left) one below the other.
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .tiqets-discovery--cols .tiqets-discovery__grid {
        grid-template-columns: repeat(var(--tq-cols, 3), minmax(0, 1fr));
        align-items: stretch; /* all cards in the row get the height of the tallest one */
        gap: 12px;
    }
    .tiqets-discovery--cols .tiqets-discovery__grid .tiqets-product-card {
        height: auto;
        min-height: 0;
    }
}
@media (max-width: 767px) {
    .tiqets-discovery--cols .tiqets-discovery__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tiqets-discovery--cols .tiqets-discovery__grid .tiqets-product-card:nth-child(2) {
        display: flex;
    }
    .tiqets-discovery--cols .tiqets-discovery__grid .tiqets-product-card:nth-child(n+3) {
        display: none;
    }
    .tiqets-discovery--cols .tiqets-product-card {
        flex-direction: row;
        height: auto !important;
        max-width: none;
    }
    .tiqets-discovery--cols .tiqets-product-card__image-wrap {
        width: 110px;
        min-width: 110px;
        height: auto;
        min-height: 110px;
        border-radius: 8px 0 0 8px;
    }
    .tiqets-discovery--cols .tiqets-product-card__body {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
    }
    .tiqets-discovery--cols .tiqets-product-card__title {
        font-size: 14px;
        line-height: 1.3;
        margin: 0 0 4px;
        min-height: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tiqets-discovery--cols .tiqets-product-card__tagline {
        font-size: 11px;
        margin: 0 0 6px;
        min-height: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tiqets-discovery--cols .tiqets-product-card__price {
        margin-top: auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }
    .tiqets-discovery--cols .tiqets-product-card__amount {
        font-size: 15px;
    }
}
