/**
 * PubCrawls Eventbrite Tickets — tickets.css
 *
 * Minimal, production-ready stylesheet.
 * Uses CSS custom properties for easy theming.
 */

/* ── Variables ──────────────────────────────────────────── */
.pcet-sidebar {
    --pcet-primary: #E6B325;
    --pcet-primary-hover: #C9971E;
    --pcet-text: #0F1115;
    --pcet-text-white: #ffffff;
    --pcet-text-muted: #6c6c70;
    --pcet-border: #d1d1d6;
    --pcet-bg: #ffffff;
    --pcet-radius: 8px;
    --pcet-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --pcet-spacing: 1.25rem;
}



/* ── Card ───────────────────────────────────────────────── */
.pcet-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Detail row (icon + text) ───────────────────────────── */
.pcet-card .pcet-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.pcet-card .pcet-card__icon {
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.pcet-card .pcet-card__detail strong {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pcet-text-white);
}

.pcet-card .pcet-card__choose-date {
    align-items: center;
}

.pcet-card .pcet-card__choose-date strong {
    font-size: 0.95rem;
    font-weight: 700;
}

/* ── Date select ────────────────────────────────────────── */
.pcet-card .pcet-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.pcet-card .pcet-date-select,
.pcet-sticky-bar .pcet-date-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    /*     font-family:   var(--pcet-font); */
    color: var(--pcet-text);
    /*     background:    var(--pcet-bg); */
    border: 1px solid;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c6c70' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
    padding-right: 2.25rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pcet-card .pcet-date-select:focus,
.pcet-sticky-bar .pcet-date-select:focus {
    outline: none;
    border-color: #E6B325;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.pcet-card .pcet-date-select:hover,
.pcet-sticky-bar .pcet-date-select:hover {
    border-color: #aeaeb2;
}

/* ── Date buttons (V2 Layout) ─────────────────────────── */
.pcet-card .pcet-date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.pcet-card .pcet-date-btn:not(.pc-event-date-card-v2) {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2E3440;
    background: #0F1115;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    user-select: none;
    line-height: 1.25;
}

.pcet-card .pcet-date-btn:not(.pc-event-date-card-v2):hover {
    background: #1A1D24;
    border-color: #E6B325;
    color: #ffffff;
}

.pcet-card .pcet-date-btn:not(.pc-event-date-card-v2):focus-visible {
    outline: 2px solid #E6B325;
    outline-offset: 2px;
}

/* Selected state: Yellow/gold brand color */
.pcet-card .pcet-date-btn:not(.pc-event-date-card-v2).is-selected {
    background: #E6B325;
    border-color: #E6B325;
    color: #000000;
}

.pcet-card .pcet-date-btn.is-selected:hover {
    background: #C9971E;
    border-color: #C9971E;
    color: #000000;
}

.pcet-card .pcet-date-btn.is-selected:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.pcet-card .pcet-date-btn__date {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.pcet-card .pcet-date-btn__time {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
    opacity: 0.85;
}

.pcet-card .pcet-date-btn.is-selected .pcet-date-btn__time {
    color: #000000;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .pcet-card .pcet-date-btn {
        flex: 1 1 100%;
        padding: 8px 10px;
    }
}

/* ── Button wrapper ─────────────────────────────────────── */
.pcet-card .pcet-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Button ─────────────────────────────────────────────── */
.pcet-card .pcet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem !important;
    font-size: 1.125rem;
    font-weight: 600;
    /*     font-family:     var(--pcet-font); */
    color: var(--pcet-text);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--pcet-radius);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
    width: 100%;
    line-height: 1;

}

.pcet-card .pcet-btn--primary {
    background: var(--pcet-primary);
    color: var(--pcet-text);
    /*     box-shadow: 0px 0px 15px 0px #E6B32566; */
}

.pcet-card .pcet-btn--primary:hover,
.pcet-card .pcet-btn--primary:focus-visible {
    background: var(--pcet-primary-hover);
    box-shadow: 0px 0px 15px 0px #E6B32566;
    transform: translateY(-1px);
    /*     color:       #ffffff; */
    outline: none;
}

.pcet-card .pcet-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0px 0px 15px 0px #E6B32566;
}

/* ── No dates notice ────────────────────────────────────── */
.pcet-card .pcet-no-dates {
    font-size: 0.9rem;
    color: var(--pcet-text-muted);
    font-style: italic;
}

/* ── Screen reader only ─────────────────────────────────── */
.pcet-card .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Line */
.pcet-card .pubcrawl-hr-line {
    background-color: #2E3440;
    height: 2px;
    border: none;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Secure Text  */
.pcet-card .pubcrawl-secure-text {
    text-align: center;
    color: #7D8593;
    font-size: 1.125rem;
}


.pcet-sticky-bar {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.pcet-sticky-bar select {
    flex: 5;
}

.pcet-sticky-bar .pcet-date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 5;
    align-items: center;
    box-sizing: border-box;
}

.pcet-sticky-bar .pcet-btn-wrap {
    flex: 2;
    display: flex;
}

.pcet-sticky-bar .pcet-btn--sticky {
    white-space: nowrap;
    width: 100%;
    border: none;
}

.pcet-sticky-bar .pcet-date-btn:not(.pc-event-date-card-v2) {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #2E3440;
    background: #0F1115;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    user-select: none;
    line-height: 1.25;
}

.pcet-sticky-bar .pcet-date-btn:not(.pc-event-date-card-v2):hover {
    background: #1A1D24;
    border-color: #E6B325;
    color: #ffffff;
}

.pcet-sticky-bar .pcet-date-btn:not(.pc-event-date-card-v2):focus-visible {
    outline: 2px solid #E6B325;
    outline-offset: 2px;
}

.pcet-sticky-bar .pcet-date-btn:not(.pc-event-date-card-v2).is-selected {
    background: #E6B325;
    border-color: #E6B325;
    color: #000000;
}

.pcet-sticky-bar .pcet-date-btn:not(.pc-event-date-card-v2).is-selected:hover {
    background: #C9971E;
    border-color: #C9971E;
    color: #000000;
}

.pcet-sticky-bar .pcet-date-btn:not(.pc-event-date-card-v2).is-selected:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.pcet-sticky-bar .pcet-date-btn__date {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.pcet-sticky-bar .pcet-date-btn__time {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 2px;
    line-height: 1.2;
}

.pcet-single-date {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    flex: 2;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 500px) {
    .pcet-card {
        /*         padding: 1rem; */
    }

    .pcet-card .pcet-btn {
        font-size: 0.875rem;
        padding: 0.6875rem 1rem;
    }

    .pcet-card .pubcrawl-secure-text {
        font-size: 1rem;
    }

    .pcet-sticky-bar {
        flex-direction: column;
    }

    .pcet-sticky-bar .pcet-date-buttons {
        width: 100%;
    }

    .pcet-sticky-bar .pcet-date-btn {
        flex: 1 1 calc(50% - 8px);
    }

    .pcet-sticky-bar .pcet-btn-wrap {
        width: 100%;
    }
}

/* ── Style 2 Modern Date Cards (Tickets Card & Sticky Bar) ──── */
.pcet-card .pc-event-date-cards-v2,
.pcet-sticky-bar .pc-event-date-cards-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.pcet-card .pc-event-date-cards-v2 {
    margin-bottom: 1.25rem;
}

.pcet-sticky-bar .pc-event-date-cards-v2 {
    margin-bottom: 0;
    flex: 5;
    align-items: center;
}

.pcet-card .pc-event-date-card-v2,
.pcet-sticky-bar .pc-event-date-card-v2 {
    flex: 1 1 calc(33.333% - 6px) !important;
    width: calc(33.333% - 6px);
    max-width: 100%;
    min-width: 0 !important;
    background: #F4F3ED;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: relative;
    user-select: none;
    color: #111827;
    font-family: inherit;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1.15;
}

.pcet-sticky-bar .pc-event-date-card-v2 {
    flex: 1 1 90px !important;
    width: auto;
    min-width: 80px !important;
    max-width: 180px;
}

.pcet-card .pc-event-date-card-v2:hover:not(.is-selected),
.pcet-sticky-bar .pc-event-date-card-v2:hover:not(.is-selected) {
    background: #ECEAE1;
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.08);
}

.pcet-card .pc-event-date-card-v2:focus-visible,
.pcet-sticky-bar .pc-event-date-card-v2:focus-visible {
    outline: 2px solid #DC0028;
    outline-offset: 2px;
}

.pcet-card .pc-event-date-card-v2__day,
.pcet-sticky-bar .pc-event-date-card-v2__day {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4B5563;
    line-height: 1;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.pcet-card .pc-event-date-card-v2__date,
.pcet-sticky-bar .pc-event-date-card-v2__date {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.pcet-card .pc-event-date-card-v2__time,
.pcet-sticky-bar .pc-event-date-card-v2__time {
    display: block;
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #6B7280;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Selected state: Red brand style */
.pcet-card .pc-event-date-card-v2.is-selected,
.pcet-sticky-bar .pc-event-date-card-v2.is-selected {
    background: #DC0028 !important;
    border-color: #DC0028 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(220, 0, 40, 0.32);
    transform: translateY(-2px);
}

.pcet-card .pc-event-date-card-v2.is-selected:hover,
.pcet-sticky-bar .pc-event-date-card-v2.is-selected:hover {
    background: #C40024 !important;
    border-color: #C40024 !important;
}

.pcet-card .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__day,
.pcet-card .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__date,
.pcet-card .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__time,
.pcet-sticky-bar .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__day,
.pcet-sticky-bar .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__date,
.pcet-sticky-bar .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__time {
    color: #ffffff !important;
}

.pcet-card .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__time,
.pcet-sticky-bar .pc-event-date-card-v2.is-selected .pc-event-date-card-v2__time {
    opacity: 0.92;
}

/* Splits for 2 dates and single date */
.pcet-card .pc-event-date-cards-v2[data-count="2"] .pc-event-date-card-v2 {
    flex: 1 1 calc(50% - 6px) !important;
    width: calc(50% - 6px);
}

.pcet-card .pc-event-date-cards-v2.single-date .pc-event-date-card-v2,
.pcet-card .pc-event-date-cards-v2[data-count="1"] .pc-event-date-card-v2 {
    flex: 1 1 100% !important;
    width: 100%;
}

/* Style 2 Buy Button */
.pcet-card .pcet-btn--style-2,
.pcet-sticky-bar .pcet-btn--style-2,
.pcet-btn--style-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #DC0028;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(220, 0, 40, 0.28);
}

.pcet-card .pcet-btn--style-2:hover,
.pcet-sticky-bar .pcet-btn--style-2:hover,
.pcet-btn--style-2:hover {
    background: #B80020;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 0, 40, 0.38);
    text-decoration: none;
}

.pcet-btn .pc-btn-arrow,
.pcet-btn--style-2 .pc-btn-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pcet-btn:hover .pc-btn-arrow,
.pcet-btn--style-2:hover .pc-btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .pcet-sticky-bar .pc-event-date-card-v2 {
        flex: 1 1 calc(33.333% - 6px) !important;
        min-width: 70px !important;
    }
}