.presale-pass-shortcode {
    margin: clamp(2rem, 5vw, 3rem) auto;
    max-width: 1100px;
    width: min(100%, 1100px);
    color: #fff;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.presale-pass-shortcode__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 4, 4, 0.78);
    backdrop-filter: blur(18px);
}

.presale-pass-shortcode__media {
    margin: 0;
    align-self: stretch;
}

.presale-pass-shortcode__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.presale-pass-shortcode__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.presale-pass-shortcode__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.presale-pass-shortcode__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.03em;
}

.presale-pass-shortcode__price {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f6c09c;
}

.presale-pass-shortcode__excerpt {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.presale-pass-shortcode__excerpt p {
    margin: 0 0 0.75rem;
}

.presale-pass-shortcode__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.presale-pass-shortcode__quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    max-width: max-content;
}

.presale-pass-shortcode__quantity input[type="number"] {
    width: 64px;
    text-align: center;
    font-size: 1.1rem;
    border: none;
    background: transparent;
    color: #fff;
    appearance: textfield;
    -moz-appearance: textfield;
}

.presale-pass-shortcode__quantity input::-webkit-outer-spin-button,
.presale-pass-shortcode__quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.presale-pass-shortcode__qty-btn {
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.presale-pass-shortcode__qty-btn:hover,
.presale-pass-shortcode__qty-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.presale-pass-shortcode__cards-heading {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.psam-cards-wrapper {
    margin: 2rem 0;
}

.psam-card-rail {
    overflow-x: auto;
    padding: 0.25rem 0.5rem 0.75rem;
    margin: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.psam-card-rail::-webkit-scrollbar {
    height: 6px;
}

.psam-card-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.psam-card-grid {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.presale-pass-shortcode .psam-card {
    /*flex: 0 0 190px;*/
    scroll-snap-align: start;
}

[data-presale-product-ui] {
    display: block;
    color: #fff;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: rgba(4, 4, 4, 0.82);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1rem, 3vw, 2rem);
   /* box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45); */
}

[data-presale-product-ui] .psam-card-rail {
    padding: 0;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: .75rem;
}

[data-presale-product-ui] .psam-card-grid {
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 1rem;
}

[data-presale-product-ui] .psam-card {
    /* flex: 0 0 190px; */
    scroll-snap-align: start;
}

.psam-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.psam-card:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
   
}

.psam-card.selected {
    border-color: #f15a29;
    background: rgba(241, 90, 41, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.psam-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.psam-card-dates {
    margin-top: 0.5rem;
}

.psam-date-label {
    font-size: 9px;
    opacity: 0.8;
    margin: 0 0 2px;
}

.psam-date-range {
    font-size: 9px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
}

.psam-show-list-controls {
    margin-top: 1rem;
}

.psam-show-list-trigger {
    appearance: none;
    background: transparent;
    color: #f15a29;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger {
    /* all: unset; */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    /* padding: 0.55rem 1.35rem !important; */
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
    color: #f15a29 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: auto !important;
    min-width: 0 !important;
    line-height: 1 !important;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

[data-presale-product-ui] .psam-show-list-trigger {
    margin-top: 1rem;
}

[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger:hover,
[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger:focus,
[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger:focus-visible {
    background: rgba(241, 90, 41, 0.15) !important;
    color: #f9d7c8 !important;
    border-color: #f15a29 !important;
    outline: none !important;
}

[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger:active {
    background: rgba(241, 90, 41, 0.25) !important;
    color: #ffe5db !important;
    border-color: #f15a29 !important;
}

[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

[data-presale-product-ui] .psam-show-list-controls .psam-show-list-trigger[hidden],
[data-presale-product-ui] .psam-show-list-panel[hidden] {
    display: none !important;
}

.psam-show-list-trigger:hover,
.psam-show-list-trigger:focus,
.psam-show-list-trigger:focus-visible {
    background: rgba(241, 90, 41, 0.15);
    color: #f9d7c8;
    border-color: #f15a29;
    outline: none;
}

.psam-show-list-trigger:active {
    background: rgba(241, 90, 41, 0.25);
    color: #ffe5db;
    border-color: #f15a29;
}

.psam-show-list-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.psam-show-list-trigger[hidden],
.psam-show-list-panel[hidden] {
    display: none !important;
}

.psam-show-list-panel {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    max-height: 260px;
    overflow-y: auto;
}

[data-presale-product-ui] .psam-show-list-panel {
    margin-top: 1rem;
}

.psam-show-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.psam-show-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.psam-show-list__item:last-child {
    border-bottom: 0;
}

.psam-show-list__location {
    font-weight: 600;
    flex: 1;
}

.psam-show-list__datetime {
    opacity: 0.85;
    white-space: nowrap;
    text-align: right;
}

/* Legacy classes for backward compatibility */
.psam-show-list__name {
    font-weight: 600;
}

.psam-show-list__range {
    opacity: 0.8;
    white-space: nowrap;
}

.woocommerce-cart .psam-cart-item-name,
.woocommerce-checkout .psam-cart-item-name {
    display: block;
    line-height: 1.4;
}

.woocommerce-cart .psam-cart-presale-break,
.woocommerce-checkout .psam-cart-presale-break {
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.woocommerce-cart .psam-cart-presale-note,
.woocommerce-checkout .psam-cart-presale-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f6b78a;
    text-transform: uppercase;
    line-height: 1.3;
}

.presale-pass-shortcode__button {
    appearance: none;
    border: none;
    border-radius: 60px;
    padding: 1.1rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(120deg, #f23f07, #f47e27);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presale-pass-shortcode__button:hover,
.presale-pass-shortcode__button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    outline: none;
}

.presale-pass-shortcode__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.presale-pass-shortcode__status {
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.presale-pass-shortcode__status.is-success {
    border-color: rgba(82, 231, 23, 0.45);
    background: rgba(82, 231, 23, 0.15);
}

.presale-pass-shortcode__status.is-error {
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(244, 63, 94, 0.12);
}

.presale-pass-shortcode__status.is-info {
    border-color: rgba(74, 178, 255, 0.4);
    background: rgba(74, 178, 255, 0.12);
}

@media (max-width: 900px) {
    .presale-pass-shortcode__layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .presale-pass-shortcode__media img {
        max-height: 320px;
        object-position: center;
    }
}

@media (max-width: 540px) {
    .presale-pass-shortcode {
        padding: 0 0.75rem;
    }

    .presale-pass-shortcode__layout {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .presale-pass-shortcode__cards-heading {
        letter-spacing: 0.25em;
        font-size: 0.78rem;
    }

    .presale-pass-shortcode__quantity {
        justify-content: center;
        width: 100%;
    }

    .presale-pass-shortcode__button {
        width: 100%;
    }
}