:root {
    --widget-bg: var(--gray15-color, #ced1de);
    --widget-bg-soft: var(--gray3-color, #2c2c30);
    --widget-surface: #ffffff;
    --widget-surface-strong: var(--gray16-color, #dee1ed);
    --widget-surface-dark: var(--gray3-color, #2c2c30);
    --widget-text: var(--gray2-color, #1f1f22);
    --widget-text-inverse: #ffffff;
    --widget-muted: var(--gray9-color, #7d7f87);
    --widget-border: rgba(31, 31, 34, 0.12);
    --widget-border-strong: rgba(255, 255, 255, 0.16);
    --widget-accent: var(--primary-color, #ff9024);
    --widget-accent-strong: var(--primary-color-dark, #cf741c);
    --widget-accent-soft: rgba(255, 144, 36, 0.14);
    --widget-success: #2b8c63;
    --widget-warning: #c74d2d;
    --widget-shadow: 0 18px 42px rgba(17, 17, 19, 0.12);
    --widget-page-bg: var(--gray16-color, #dee1ed);
    --widget-page-bg-accent: var(--gray15-color, #ced1de);
    --widget-card-bg: rgba(255, 255, 255, 0.94);
    --widget-card-text: var(--gray2-color, #1f1f22);
    --widget-card-heading: var(--gray1-color, #111113);
    --widget-card-muted: var(--gray8-color, #707179);
    --widget-empty-bg: rgba(255, 255, 255, 0.72);
    --widget-media-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.76) 52%, rgba(255, 255, 255, 0.94) 100%);
    --widget-media-overlay-mobile: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.46) 38%, rgba(255, 255, 255, 0.9) 100%);
    --widget-media-pill-bg: rgba(31, 31, 34, 0.05);
    --widget-media-pill-border: rgba(31, 31, 34, 0.1);
}

body[data-theme="dark"] {
    --widget-bg: var(--gray1-color, #111113);
    --widget-bg-soft: var(--gray2-color, #1f1f22);
    --widget-surface: #f7f8fa;
    --widget-surface-strong: #ffffff;
    --widget-surface-dark: var(--gray3-color, #2c2c30);
    --widget-text: var(--gray16-color, #dee1ed);
    --widget-text-inverse: #ffffff;
    --widget-muted: var(--gray11-color, #989aa4);
    --widget-border: rgba(222, 225, 237, 0.1);
    --widget-border-strong: rgba(255, 255, 255, 0.14);
    --widget-accent: var(--primary-color, #ff9024);
    --widget-accent-strong: var(--primary-color-light, #ff9f42);
    --widget-accent-soft: rgba(255, 144, 36, 0.2);
    --widget-success: #27845d;
    --widget-warning: #d66b48;
    --widget-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
    --widget-page-bg: var(--gray1-color, #111113);
    --widget-page-bg-accent: var(--gray2-color, #1f1f22);
    --widget-card-bg: rgba(31, 31, 34, 0.94);
    --widget-card-text: var(--gray15-color, #ced1de);
    --widget-card-heading: var(--gray16-color, #dee1ed);
    --widget-card-muted: var(--gray11-color, #989aa4);
    --widget-empty-bg: rgba(58, 58, 63, 0.4);
    --widget-media-overlay: linear-gradient(90deg, rgba(21, 28, 38, 0.82) 0%, rgba(21, 28, 38, 0.54) 52%, rgba(21, 28, 38, 0.3) 100%);
    --widget-media-overlay-mobile: linear-gradient(180deg, rgba(21, 28, 38, 0.78) 0%, rgba(21, 28, 38, 0.28) 38%, rgba(21, 28, 38, 0.78) 100%);
    --widget-media-pill-bg: rgba(255, 255, 255, 0.08);
    --widget-media-pill-border: rgba(255, 255, 255, 0.12);
}

.event-embed-widget-body {
    margin: 0;
    padding: 14px;
    background-color: var(--widget-page-bg) !important;
    background-image: linear-gradient(180deg, var(--widget-page-bg) 0%, var(--widget-page-bg-accent) 100%) !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
    color: var(--widget-text);
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.event-embed-widget-body .product_page {
    max-width: none;
}

.event-embed-widget-body.is-compact {
    padding: 10px;
}

.event-embed-widget {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.embed-card {
    background: transparent;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
}

.embed-card + .embed-card {
    margin-top: 18px;
}

.embed-header-card {
    overflow: hidden;
    position: relative;
    background: transparent;
    border-radius: 4px;
    box-shadow: var(--widget-shadow);
}

.embed-media-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%), var(--widget-card-bg);
}

.embed-media-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--widget-media-overlay);
}

.embed-media-image {
    position: relative;
    display: block;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.embed-media-fallback {
    min-height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 50%), linear-gradient(180deg, #253044 0%, #161d27 100%);
}

.embed-media-column {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.embed-media-column-image {
    aspect-ratio: 400 / 564;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 28, 38, 0.08);
}

body[data-theme="dark"] .embed-media-column-image {
    background: rgba(255, 255, 255, 0.06);
}

.embed-media-column-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 26px;
    color: var(--widget-card-text);
}

.embed-media-overlay {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detail-categories {
    display: flex;
}

.product-detail-categories ul {
    background-color: var(--widget-media-pill-bg);
    color: var(--widget-card-text);
    padding: 5px 10px;
    border-radius: 3px;
    display: flex;
    gap: 10px;
    border: 1px solid var(--widget-media-pill-border);
    margin-bottom: 0;
}

.product-detail-categories ul li {
    list-style: none;
    font-size: 0.8rem;
}

.embed-detail-categories {
    margin-bottom: 18px;
}

.embed-section-head,
.embed-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.embed-section-head.is-stacked {
    align-items: flex-start;
}

.embed-title {
    margin: 0 0 14px;
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--widget-card-heading);
}

.embed-lead-copy {
    margin: 0 0 18px;
    color: var(--widget-card-text);
    line-height: 1.55;
    font-size: 0.96rem;
}

.embed-type-badge,
.embed-organiser-badge,
.embed-ticket-state,
.embed-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.embed-type-badge {
    background: var(--widget-accent-soft);
    color: var(--widget-accent-strong);
    border: 1px solid transparent;
}

.embed-organiser-badge {
    background: var(--widget-surface-strong);
    color: var(--widget-card-heading);
}

.embed-event-information {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding-bottom: 0;
    color: var(--widget-card-text);
}

.embed-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.embed-detail-icon {
    width: 22px;
    margin-top: 2px;
    font-size: 1.15rem;
    color: var(--widget-card-text);
    flex: 0 0 22px;
}

.embed-meta-value {
    font-size: 0.96rem;
    line-height: 1.45;
    color: var(--widget-card-text);
}

.embed-meta-heading {
    display: block;
    margin-bottom: 2px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--widget-card-muted);
}

.embed-tag-cloud {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.embed-tag {
    background: var(--widget-media-pill-bg);
    color: var(--widget-card-text);
    border: 1px solid var(--widget-media-pill-border);
    text-transform: none;
    letter-spacing: 0;
}

.embed-ticket-card,
.embed-included-events-card {
    padding: 20px;
    background: var(--widget-card-bg);
    border: 1px solid var(--widget-border);
    border-radius: 4px;
    box-shadow: var(--widget-shadow);
}

.embed-sub-header-wrap {
    margin-bottom: 14px;
}

.embed-sub-header,
.embed-empty-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--widget-card-heading);
}

.embed-section-copy,
.embed-empty-copy {
    color: var(--widget-card-muted);
}

.embed-ticket-list,
.embed-included-events-list {
    display: grid;
    gap: 10px;
}

.embed-ticket-item,
.embed-included-event-item {
    background: #fff;
    display: flex;
    flex-direction: row;
    border-radius: 0.25em;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.embed-ticket-item.is-unavailable {
    opacity: 0.84;
}

.embed-ticket-item.addon-ticket {
    background: var(--widget-surface-dark);
}

.embed-ticket-shell {
    padding: 15px 20px;
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.embed-ticket-copy {
    min-width: 0;
}

.embed-ticket-title,
.embed-included-event-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    color: #404753;
}

.embed-ticket-item.addon-ticket .embed-ticket-title,
.embed-ticket-item.addon-ticket .embed-ticket-price,
.embed-ticket-item.addon-ticket .embed-ticket-description,
.embed-ticket-item.addon-ticket .variation_price {
    color: #fff;
}

.embed-ticket-price-col {
    color: #151c26;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    white-space: nowrap;
}

.embed-ticket-price-col.is-muted,
.embed-ticket-price.is-muted {
    color: var(--widget-muted);
}

.variation_price {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--widget-muted);
    margin-bottom: 2px;
}

.embed-ticket-price {
    font-size: 1rem;
    font-weight: 700;
}

.embed-ticket-description {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--widget-muted);
}

.quantity-wrapper {
    justify-content: flex-end;
    padding: 15px 20px;
    border-left: 5px dotted #151c26;
    color: #404753;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.embed-ticket-item.addon-ticket .quantity-wrapper {
    border-left-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.embed-quantity-controls,
.col-quantity {
    display: flex;
    flex-direction: row;
    margin-bottom: 0;
    align-items: center;
    width: 150px;
    justify-content: center;
    gap: 6px;
}

.embed-quantity-btn {
    background: none;
    border: 0;
    color: #404753;
    padding: 4px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    line-height: 1;
}

.embed-quantity-btn i {
    font-size: 1.5rem;
}

.embed-ticket-item.addon-ticket .embed-quantity-btn {
    color: #fff;
}

.embed-quantity-input {
    width: 58px;
    height: 40px;
    background: none;
    border: 0;
    text-align: center;
    font-weight: 700;
    color: #151c26;
}

.embed-ticket-item.addon-ticket .embed-quantity-input {
    color: #fff;
}

.availability-wrapper {
    border: 1px solid rgba(64, 71, 83, 0.18);
    border-radius: 10px;
    color: var(--widget-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 6px 10px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.embed-ticket-item.addon-ticket .availability-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}

.embed-ticket-state {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.embed-ticket-state.is-available {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0;
    font-weight: 400;
}

.embed-ticket-state.is-muted {
    background: rgba(21, 28, 38, 0.08);
    color: var(--widget-muted);
}

.embed-ticket-state.is-sold-out {
    background: rgba(199, 77, 45, 0.12);
    color: var(--widget-warning);
}

.embed-ticket-summary {
    margin-top: 16px;
    padding-top: 0;
}

.embed-addon-section {
    margin-top: 20px;
}

.embed-addon-head {
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--widget-border);
}

.embed-addon-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--widget-card-heading);
}

.embed-ticket-summary-row,
.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: var(--widget-card-text);
}

.embed-ticket-summary-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--widget-card-heading);
    text-transform: none;
    letter-spacing: 0;
}

.embed-ticket-summary-value {
    font-size: 1.22rem;
}

.embed-basket-button,
.embed-secondary-link {
    border-radius: 8px;
    font-weight: 700;
}

.embed-secondary-link {
    margin-top: 10px;
}

.embed-empty-state {
    margin-top: 14px;
    padding: 18px;
    border: 1px dashed var(--widget-border);
    border-radius: 16px;
    background: var(--widget-empty-bg);
}

.embed-top-cta,
.embed-ticket-footer .btn,
.embed-empty-state .btn {
    border-radius: 999px;
}

.btn-primary {
    background-color: var(--widget-accent);
    border-color: var(--widget-accent);
    color: #fff;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--widget-accent);
    border-color: var(--widget-accent);
    color: #fff;
    opacity: 0.65;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--widget-accent-strong);
    border-color: var(--widget-accent-strong);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 144, 36, 0.25);
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--widget-accent-strong);
    border-color: var(--widget-accent-strong);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 144, 36, 0.25);
}

.btn-outline-primary {
    color: var(--widget-accent-strong);
    border-color: var(--widget-accent);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--widget-accent);
    border-color: var(--widget-accent);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 144, 36, 0.25);
}

.embed-secondary-link:hover,
.embed-secondary-link:focus {
    color: #fff !important;
}

.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--widget-accent);
    border-color: var(--widget-accent);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 144, 36, 0.25);
}

body[data-theme="dark"] .btn-outline-primary {
    color: var(--widget-accent-strong);
}

@media (max-width: 575.98px) {
    .event-embed-widget-body {
        padding: 10px;
    }

    .embed-ticket-card,
    .embed-included-events-card {
        padding: 16px;
    }

    .embed-title {
        font-size: 1.3rem;
    }

    .embed-ticket-footer,
    .embed-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .embed-top-cta,
    .embed-ticket-footer .btn,
    .embed-empty-state .btn,
    .embed-basket-button,
    .embed-secondary-link {
        width: 100%;
    }

    .embed-ticket-footer {
        align-items: stretch;
    }

    .embed-media-wrapper {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .embed-media-column-content {
        padding: 18px 16px 20px;
    }

    .embed-media-image {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .embed-media-wrapper::after {
        background: var(--widget-media-overlay-mobile);
    }

    .embed-ticket-item {
        flex-direction: column;
    }

    .embed-ticket-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .embed-ticket-price-col {
        text-align: left;
    }

    .quantity-wrapper {
        width: 100%;
        min-width: 0;
        border-left: 0;
        border-top: 1px dashed rgba(21, 28, 38, 0.22);
    }

    .embed-ticket-item.addon-ticket .quantity-wrapper {
        border-top-color: rgba(255, 255, 255, 0.18);
    }

    .embed-meta-item {
        flex-direction: column;
        gap: 3px;
    }

    .embed-detail-icon {
        margin-top: 0;
    }

    .product-detail-categories ul {
        flex-wrap: wrap;
    }
    .embed-sub-header, .embed-title, .embed-empty-title, .embed-meta-item, .embed-ticket-shell{
        text-align: center;
        align-items: center;
    }
    .embed-quantity-controls, .col-quantity {
        width:100%;
    }
    .embed-ticket-state.is-available{
        justify-content: center;
    }
}