/* Easybooker event picker: full-card selection + independent details dialog.
   Shared across normal, iframe, floating-widget and inline layouts. */
.eb-event-card {
    transition: border-color .18s ease, box-shadow .18s ease;
}

.eb-event-card.is-selected {
    border-color: var(--primary-color, #12a98c);
    box-shadow: inset 0 0 0 1px var(--primary-color, #12a98c);
}

.eb-event-select-wrap {
    position: relative;
}

.eb-event-card .eb-event-card-main {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 14px;
    margin: 0;
    text-align: left;
    font: inherit;
    line-height: 1.45;
    color: var(--form-text-color);
    cursor: pointer;
    transition: background-color .18s ease;
}

.eb-event-card .eb-event-card-main:hover:not(:disabled) {
    background: rgba(18, 169, 140, .05);
}

.eb-event-card .eb-event-card-main.is-selected {
    background: rgba(18, 169, 140, .09);
}

.eb-event-card .eb-event-card-main:focus-visible {
    outline: 2px solid var(--primary-color, #12a98c);
    outline-offset: -3px;
}

.eb-event-card .eb-event-card-main:disabled {
    cursor: not-allowed;
    opacity: .53;
}

.eb-event-card .eb-event-card-body,
.eb-event-card .eb-event-time,
.eb-event-card .event-description,
.eb-event-card .event-description .desc-short {
    display: block;
}

.eb-event-card .eb-event-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-left: 35px;
    padding-right: 35px;
    min-height: 29px;
    margin-bottom: 5px;
}

.eb-event-card .eb-event-choice-indicator {
    position: absolute;
    top: 16px;
    left: 14px;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light, #d1d5db);
    border-radius: 50%;
    color: transparent;
    background: var(--form_input_bg_color, transparent);
    transition: border-color .18s ease, background-color .18s ease;
}

.eb-event-card .eb-event-choice-indicator svg {
    width: 13px;
    height: 13px;
    opacity: 0;
}

.eb-event-card .eb-event-card-main.is-selected .eb-event-choice-indicator {
    background: var(--form_main_button_bg_color, #12a98c);
    border-color: var(--form_main_button_bg_color, #12a98c);
    color: var(--form_main_button_text_color, #fff);
}

.eb-event-card .eb-event-card-main.is-selected .eb-event-choice-indicator svg {
    opacity: 1;
}

.eb-event-card .eb-event-card-main .eb-event-image {
    pointer-events: none;
}

.eb-event-card .eb-event-card-main .event-description {
    margin: 5px 0 0 !important;
    opacity: .84;
    cursor: pointer;
    text-align: left;
}

.eb-event-card .eb-event-config {
    padding-left: 14px;
}

/* This button is a sibling of the selection button, never nested inside it. */
.eb-event-detail-trigger {
    position: absolute;
    top: 9px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid var(--border-light, #d1d5db);
    background: var(--form_input_bg_color, #fff);
    color: var(--form-text-color, #293241);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .09);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.eb-event-detail-trigger svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.eb-event-detail-trigger:hover,
.eb-event-detail-trigger:focus-visible {
    border-color: var(--primary-color, #12a98c);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
}

.eb-event-detail-trigger:focus-visible {
    outline: 2px solid var(--primary-color, #12a98c);
    outline-offset: 2px;
}

body.eb-event-detail-open {
    overflow: hidden;
}

.eb-event-detail-overlay[hidden] {
    display: none !important;
}

.eb-event-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(13, 24, 35, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eb-event-detail-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 660px;
    max-height: calc(100vh - 30px);
    max-height: calc(100dvh - 30px);
    border-radius: 16px;
    border: 1px solid var(--border-light, #d1d5db);
    background: var(--form-bg-color, #fff);
    color: var(--form-text-color, #293241);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
    overflow: hidden;
}

.eb-event-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-light, #d1d5db);
}

.eb-event-detail-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.32;
    overflow-wrap: anywhere;
    color: var(--form-text-color, #293241);
}

.eb-event-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-light, #d1d5db);
    border-radius: 10px;
    background: var(--form_input_bg_color, #fff);
    color: var(--form-text-color, #293241);
    cursor: pointer;
}

.eb-event-detail-close svg { width: 17px; height: 17px; }
.eb-event-detail-close:hover { border-color: var(--primary-color, #12a98c); }
.eb-event-detail-close:focus-visible { outline: 2px solid var(--primary-color, #12a98c); outline-offset: 2px; }

.eb-event-detail-scroll {
    padding: 18px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin !important;
}

.eb-event-detail-scroll::-webkit-scrollbar { display: block; width: 7px; }
.eb-event-detail-scroll::-webkit-scrollbar-thumb { background: #9ba8b1; border-radius: 6px; }

/* The detail image deliberately uses contain, not the cover/crop of the event card. */
.eb-event-detail-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    max-height: 50dvh;
    object-fit: contain !important;
    border-radius: 10px;
    background: rgba(120, 130, 140, .08);
    margin: 0 0 16px;
}

.eb-event-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 13px;
    color: var(--form-text-color, #293241);
}

.eb-event-detail-time {
    font-size: 14px;
    opacity: .85;
}

.eb-event-detail-description {
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: var(--form-text-color, #293241);
}

.eb-event-detail-description p,
.eb-event-detail-description ul,
.eb-event-detail-description ol,
.eb-event-detail-description blockquote {
    margin: 0 0 11px;
}

.eb-event-detail-description ul,
.eb-event-detail-description ol { padding-left: 22px; }
.eb-event-detail-description a { color: var(--primary-color, #12a98c); text-decoration: underline; }
.eb-event-detail-description h2,
.eb-event-detail-description h3,
.eb-event-detail-description h4 { font-size: 16px; margin: 12px 0 7px; color: inherit; }

.eb-event-detail-prices {
    border-top: 1px solid var(--border-light, #d1d5db);
    margin-top: 16px;
    padding-top: 12px;
}

.eb-event-detail-prices h3 { font-size: 15px; font-weight: 700; margin: 0 0 9px; }
.eb-event-detail-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; margin: 7px 0; }
.eb-event-detail-price-row strong { white-space: nowrap; }

@media (max-width: 520px) {
    .eb-event-card .eb-event-card-main { padding: 12px; }
    .eb-event-card .eb-event-choice-indicator { top: 14px; left: 12px; }
    .eb-event-card .eb-event-title-row { padding-left: 33px; padding-right: 35px; }
    .eb-event-detail-overlay { padding: 8px; }
    .eb-event-detail-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 13px; }
    .eb-event-detail-header { padding: 12px 13px; }
    .eb-event-detail-title { font-size: 17px; }
    .eb-event-detail-scroll { padding: 13px; }
}

/* Highlighted calendar events keep their original selection behavior, while
   sharing the same non-selecting details button and full-image dialog. */
.pinned-event-item { position: relative; }
.pinned-event-item .event-header { padding-right: 43px; min-height: 30px; }
.pinned-event-item .eb-event-detail-trigger { top: 8px; right: 8px; }
