/**
 * Filename:      idk-event-booking.css
 * Plugin:        IDK Event Booking
 * Description:   Frontend styles for the workshop grid shortcode.
 * Version:       1.3.82
 */

/* ==========================================================================
   Workshop Grid
   ========================================================================== */

.idk-eb-frontend {
    width: 100%;
    display: flow-root;
}

.idk-eb-grid-wrap {
    position: relative;
    display: flow-root;
    width: 100%;
}

.idk-eb-workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
    align-items: stretch;
}

@media (max-width: 999px) {
    .idk-eb-workshop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .idk-eb-workshop-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Workshop Card
   ========================================================================== */

.idk-eb-workshop-card {
    background: #fff;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
    transition: transform .28s ease, box-shadow .28s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.idk-eb-workshop-card .idk-eb-item-bg-wrap {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.idk-eb-card-logo {
    position: absolute;
    left: 0;
    bottom: -16px;
    height: 35px !important;
    width: auto !important;
    z-index: 10;
}

/* Featured image */
.idk-eb-item-bg-wrap {
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.idk-eb-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .45s cubic-bezier(.15,.75,.5,1);
}

.idk-eb-workshop-card:hover .idk-eb-item-bg {
    transform: scale(1.05);
}

.idk-eb-workshop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
}

.idk-eb-workshop-card.is-active {
    box-shadow: 0 0 0 2px var(--nectar-accent-color, #2271b1), 0 8px 28px rgba(0,0,0,.14);
}

.idk-eb-card-no-image {
    aspect-ratio: 16/9;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
}

/* Card body */
.idk-eb-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    background: #f5f5f5;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.idk-eb-type-badge {
    display: inline-block;
    background: var(--nectar-accent-color, #2271b1);
    color: #fff;
    font-size: 16px;
    letter-spacing: .04em;
    padding: 3px 10px 1px 10px;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* h3: department label – blue, shown above workshop title */
.idk-eb-card-title {
    color: #0794d2 !important;
    margin-bottom: 0 !important;
    font-size: 25px !important;
    line-height: 27px !important;
}

/* h4: workshop title – below department */
.idk-eb-card-workshop-title {
    margin-bottom: 0 !important;
}

.idk-eb-card-info {
    font-size: 16px;
    color: #646970;
    /* margin: 4px 0 8px 0; */
    padding-bottom: 0 !important;
}

.idk-eb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px;
    color: #646970;
    font-weight: 500;
    margin-bottom: 10px;
}

.idk-eb-meta-item {
    display: flex;
    align-items: center;
}

.idk-eb-availability.has-spots {
    color: #00a32a;
}

.idk-eb-availability.full {
    color: #d63638;
}

/* Card button */
.idk-eb-card-btn {
    margin-top: auto;
    border: 1px solid var(--nectar-accent-color, #2271b1);
    color: var(--nectar-accent-color, #2271b1);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    align-self: flex-end;
}

.idk-eb-card-btn:hover,
.idk-eb-workshop-card.is-active .idk-eb-card-btn {
    background: var(--nectar-accent-color, #2271b1);
    color: #fff;
}

.idk-eb-card-btn .fa-chevron-down {
    transition: transform .25s ease;
    font-size: 11px;
}

.idk-eb-workshop-card.is-active .idk-eb-card-btn .fa-chevron-down {
    transform: rotate(180deg);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.idk-eb-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.idk-eb-modal.is-open {
    display: flex;
}

.idk-eb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 247, 176, 0.85);
}

.idk-eb-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 920px;
    max-height: 90dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: idk-eb-modal-in .3s cubic-bezier(.22,.61,.36,1) forwards;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 10px;
}

.idk-eb-modal-box.is-settled {
    transition: transform .3s cubic-bezier(.22,.61,.36,1) !important;
}

.idk-eb-modal .idk-eb-modal-box.is-shifted {
    transform: none !important;
}

@media (max-width: 1700px) {
    .idk-eb-modal .idk-eb-modal-box.is-shifted {
        transform: translateX(-150px) !important;
    }
}

@keyframes idk-eb-modal-in {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.idk-eb-modal-open {
    overflow: hidden;
}

body.idk-eb-bb-open {
    overflow: hidden;
}

.idk-eb-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: #fab420;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 50px;
}

.idk-eb-modal-close:hover {
    background: #0794d2;
    color: #fff;
}

.idk-eb-modal-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    border-radius: 12px;
}

.idk-eb-modal-sidebar {
    overflow-y: auto;
    background: #f6f7f7;
    border-right: 1px solid #dcdcde;
}

.idk-eb-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.idk-eb-modal-image img:first-child {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
}

.idk-eb-modal-sidebar-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idk-eb-modal-logo {
    z-index: 99;
    position: absolute;
    height: 35px !important;
    width: auto;
    bottom: -16px;
    left: 0;
}

h3.idk-eb-modal-title {
    color: #0794d2;
    margin: 0 !important;
}

h4.idk-eb-modal-title {
    font-weight: 500 !important;
    margin: 0 !important;
}

.idk-eb-modal-meta {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px 50px;
    align-items: start;
    margin: 0;
    font-size: 16px;
}

.idk-eb-modal-meta dt {
    font-weight: 600;
    white-space: nowrap;
}

.idk-eb-modal-meta dd {
    margin: 0;
}

.idk-eb-pdf-link {
    color: var(--nectar-accent-color, #2271b1);
    text-decoration: none;
    font-size: 16px;
}

.idk-eb-pdf-link:hover {
    text-decoration: underline;
}

.idk-eb-modal-content {
    overflow-y: auto;
    padding: 15px 20px 0px 20px;
    background: #f6f7f7;
}

.idk-eb-modal-content h3:not(.idk-eb-sessions-list h3) {
    padding-right: 25px;
    color: #0794d2;
}

.idk-eb-detail-description {
    margin-bottom: 25px;
}

/* PDF button */
.idk-eb-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    color: #d63638;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
    margin-bottom: 24px;
}

.idk-eb-pdf-btn:hover {
    border-color: #d63638;
    background: #fff5f5;
}

/* ==========================================================================
   Sessions Table
   ========================================================================== */

.idk-eb-sessions-list h3 {
    font-size: inherit !important;
}

.idk-eb-sessions-list h4 {
    font-size: 16px;
    margin: 0 0 16px 0;
}

.idk-eb-sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.idk-eb-sessions-table th {
    background: #0794d2;
    font-weight: 500 !important;
    color: #ffffff;
    white-space: nowrap;
}

.idk-eb-sessions-table th:nth-child(4),
.idk-eb-sessions-table td:nth-child(4),
.idk-eb-sessions-table th:last-child,
.idk-eb-sessions-table td:last-child {
    text-align: center !important;
}

.idk-eb-sessions-table td {
    vertical-align: middle;
    font-size: 16px !important;
}

.idk-eb-session-row:last-child td {
    border-bottom: none;
}

.idk-eb-session-row.is-full {
    opacity: .65;
}

.idk-eb-session-row.is-added {
    opacity: .55;
}

.idk-eb-session-row.is-added .idk-eb-book-btn:disabled {
    background: #00a32a;
    opacity: 1;
    cursor: default;
}

.idk-eb-spots.available {
    color: #00a32a;
    font-weight: 600;
}

.idk-eb-spots.full {
    color: #d63638;
}

/* ==========================================================================
   Booking Button
   ========================================================================== */

.idk-eb-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: var(--nectar-accent-color, #2271b1);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    white-space: nowrap;
}

.idk-eb-book-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.idk-eb-waitlist-btn {
    background: #646970;
}

.idk-eb-waitlist-btn:hover {
    background: #50575e;
}

.idk-eb-spots-inline {
    font-size: 12px;
    opacity: .8;
}

.idk-eb-full-notice {
    color: #d63638;
    font-size: 14px;
    margin: 0;
}

.idk-eb-direct-booking {
    padding-top: 8px;
}

/* ==========================================================================
   Loading state
   ========================================================================== */

.idk-eb-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #646970;
    font-size: 14px;
    gap: 10px;
}

.idk-eb-detail-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #dcdcde;
    border-top-color: var(--nectar-accent-color, #2271b1);
    border-radius: 50%;
    animation: idk-eb-spin .7s linear infinite;
}

@keyframes idk-eb-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Error state
   ========================================================================== */

.idk-eb-error {
    color: #d63638;
    padding: 16px;
    border: 1px solid #facfd2;
    background: #fff5f5;
    border-radius: 4px;
}


/* ==========================================================================
   Booking Box
   ========================================================================== */

/* Toggle button */
.idk-eb-booking-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: var(--nectar-accent-color, #0794d2);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.idk-eb-booking-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.idk-eb-booking-count {
    background: #fff;
    color: var(--nectar-accent-color, #0794d2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
}

/* Flyout box */
.idk-eb-booking-box {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    width: 450px;
    max-width: 100vw;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.idk-eb-booking-box.is-open {
    transform: translateX(0);
}

.idk-eb-booking-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #dcdcde;
    flex-shrink: 0;
}

.idk-eb-booking-box-header h3 {
    margin: 0;
}

.idk-eb-booking-box-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.idk-eb-search-toggle,
.idk-eb-box-clear-btn,
.idk-eb-ref-new-btn.fa-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: color .15s;
}

.idk-eb-search-toggle:hover,
.idk-eb-search-toggle.is-active,
.idk-eb-box-clear-btn:hover {
    color: #0794d2;
}

.idk-eb-ref-lookup {
    display: none;
    gap: 8px;
    border-bottom: 1px solid #dcdcde;
}

.idk-eb-ref-lookup.is-open {
    display: flex;
}

.idk-eb-booking-ref-badge {
    display: inline-block;
    background: #ebebeb;
    color: #3a3a3a !important;
    padding: 1px 10px 0 10px;
    border-radius: 50px;
    font-size: 13px !important;
    font-weight: 500;
}

/* Ref switcher */
.idk-eb-ref-switcher {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 24px;
    border-bottom: 1px solid #dcdcde;
    background: #f6f7f7;
}

.idk-eb-ref-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.idk-eb-ref-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: inherit;
    padding: 5px;
    font-weight: 600;
}

.idk-eb-ref-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px !important;
    border: 1px solid #dcdcde !important;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100% !important;
}

.idk-eb-ref-lookup-btn {
    padding: 8px 18px !important;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important;
}

.idk-eb-ref-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #3a3a3a;
    transition: background .15s;
}

.idk-eb-ref-btn:hover {
    background: #d0d0d0;
}

.idk-eb-ref-btn.is-active {
    background: #00a32a;
    color: #fff;
}

.idk-eb-booking-box-actions .idk-eb-ref-new-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: color .15s;
}

.idk-eb-booking-box-actions .idk-eb-ref-new-btn:hover {
    color: #00a32a;
}

.idk-eb-booking-box-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.idk-eb-booking-box-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Added toast – full BB overlay, no layout impact */
.idk-eb-added-toast {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 24px;
    text-align: center;
    animation: idk-eb-toast-in .25s ease;
    pointer-events: none;
}

@keyframes idk-eb-toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.idk-eb-added-toast svg {
    width: 64px;
    height: 64px;
    stroke: #00a32a;
    stroke-width: 3;
    flex-shrink: 0;
}

.idk-eb-added-toast svg circle {
    stroke: #00a32a;
}

.idk-eb-added-toast span {
    color: #00a32a;
    font-size: 18px;
    font-weight: 500;
}

/* Modal dimmed overlay when toast is showing */
.idk-eb-modal-dimmed .idk-eb-modal-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
}

/* Booking items */
.idk-eb-booking-empty {
    color: #646970;
    font-size: 14px;
    margin: 0;
}

.idk-eb-booking-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f6f7f7;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: background .2s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 10px;
}

.idk-eb-booking-item.is-conflict {
    border: 2px solid #d63638;
    background: #fff5f5;
}

.idk-eb-booking-item:hover {
    background: #e8f0fe;
}

.idk-eb-booking-feedback {
    cursor: pointer;
}

.idk-eb-booking-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 16px;
    flex: 1;
    min-width: 0;
}

.idk-eb-booking-box-item-title {
    color: #0794d2;
    font-size: 18px;
    font-weight: 500;
}

.idk-eb-booking-item-workshop-title {
    font-weight: 600;
    color: #3a3a3a;
    margin-top: 4px;
}

.idk-eb-booking-item-workshop-subtitle {
    font-weight: 600;
    color: #0794d2;
}

.idk-eb-booking-item-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.idk-eb-booking-item-remove {
    background: none;
    border: none;
    font-size: 15px;
    color: #646970;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color .2s ease;
}

.idk-eb-booking-item-remove:hover {
    color: #d63638;
}

.idk-eb-booking-item-confirm {
    display: flex;
    font-size: 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid #dcdcde;
    margin-bottom: 8px;
    padding-bottom: 10px;
}

.idk-eb-booking-item-confirm span {
    font-weight: 600;
}

.idk-eb-booking-item-confirm-yes,
.idk-eb-booking-item-confirm-no,
.idk-eb-booking-item-cancel-yes {
    border: none;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.idk-eb-booking-item-confirm-yes,
.idk-eb-booking-item-cancel-yes {
    background: #d63638;
    color: #fff;
}

.idk-eb-booking-item-confirm-no {
    background: #e0e0e0;
    color: #1d2327;
}

/* Booking form */
.idk-eb-booking-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #dcdcde;
    padding-top: 16px;
}

.idk-eb-booking-form h4 {
    margin: 0 0 4px 0;
}

.idk-eb-form-hint {
    font-size: 16px;
}

/* Submit dialog */
.idk-eb-submit-dialog {
    background: #0794d2;
    border-radius: 0;
    padding: 10px;
    color: #ffffff;
    font-size: 14px;
}

.idk-eb-submit-dialog.idk-eb-submit-error {
    background: #d63638;
}

.idk-eb-submit-dialog p {
    margin: 0 0 8px 0;
}

.idk-eb-submit-dialog.idk-eb-submit-error p {
    margin: 0;
    padding: 0 !important;
}

.idk-eb-submit-dialog-cancel {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #ffffff;
    transition: background .2s ease;
    display: flex;
    justify-self: center;
}

.idk-eb-submit-dialog-cancel:hover {
    background: rgba(255,255,255,0.15);
}

.idk-eb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.idk-eb-form-row-full {
    grid-column: 1 / -1;
}

.idk-eb-input {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #dcdcde !important;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.idk-eb-input:focus {
    outline: none;
    border-color: var(--nectar-accent-color, #0794d2);
}

textarea.idk-eb-input {
    resize: vertical;
    min-height: 70px;
}

.idk-eb-confirm-btn {
    background: var(--nectar-accent-color, #0794d2);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease;
    width: 100%;
}

.idk-eb-confirm-btn:hover {
    background: #0794d2;
}

.idk-eb-confirm-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.idk-eb-feedback-success {
    color: #00a32a;
    font-size: 14px;
    margin: 4px 0 0 0;
}

.idk-eb-feedback-error {
    color: #ffffff;
    font-size: 14px;
    margin: 4px 0 0 0;
    background: #d63638;
    padding: 10px;
    border-radius: 0;
}

/* Confirmation summary */
.idk-eb-confirm-summary {
    background: #00a32a;
    border-radius: 0;
    padding: 14px 16px;
    margin-top: 12px;
    color: #ffffff;
    font-size: 16px !important;
}

.idk-eb-confirm-title {
}

.idk-eb-confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 12px;
}

.idk-eb-confirm-table td {
    padding: 4px 8px 4px 0;
    color: #3a3a3a;
}

.idk-eb-confirm-table td:first-child {
    color: #646970;
    white-space: nowrap;
    width: 100px;
}

/* Cancel All button */
.idk-eb-cancel-all-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #d63638;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.idk-eb-cancel-all-btn:hover {
    background: #b32d2e;
}

.idk-eb-cancel-all-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Cancel via URL button */
.idk-eb-cancel-by-url-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #d63638;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.idk-eb-cancel-by-url-btn:hover {
    background: #b32d2e;
}

.idk-eb-cancel-by-url-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.idk-eb-booking-item-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.idk-eb-waitlist-badge,
.idk-eb-seat-badge {
    display: inline-block;
    color: #fff !important;
    font-weight: 500;
    padding: 1px 10px 0 10px;
    border-radius: 50px;
    align-self: flex-start;
    font-size: 13px !important;
    margin-bottom: 0;
    margin-left: -1px;
}

.idk-eb-waitlist-badge {
    background: #0794d2;
}

.idk-eb-seat-badge {
    background: #00a32a;
}

.idk-eb-pending-badge {
    display: inline-block;
    color: #fff !important;
    font-weight: 500;
    padding: 1px 10px 0 10px;
    border-radius: 50px;
    font-size: 13px !important;
    background: #dba617;
    margin-bottom: 0;
}

.idk-eb-new-badge {
    display: inline-block;
    color: #fff !important;
    font-weight: 500;
    padding: 1px 10px 0 10px;
    border-radius: 50px;
    font-size: 13px !important;
    background: #0794d2;
    margin-bottom: 0;
}

.idk-eb-confirmed-badge {
    /* Uses idk-eb-seat-badge for green color */
}

.idk-eb-cancelled-badge {
    background: #d63638;
}

.idk-eb-feedback-info {
    color: #0794d2;
    font-size: 14px;
    margin: 4px 0 0 0;
}

/* ==========================================================================
   Media queries
   ========================================================================== */

@media (max-width: 999px) {
    .idk-eb-modal-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .idk-eb-modal-sidebar {
        border-right: none;
        border-bottom: 1px solid #dcdcde;
    }

    .idk-eb-modal-image {
        aspect-ratio: 16/7;
    }

    .idk-eb-sessions-table th:nth-child(3),
    .idk-eb-sessions-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 600px) {
    .idk-eb-modal {
        padding: 0;
    }

    .idk-eb-modal-box {
        border-radius: 16px;
        max-height: 95dvh;
        margin: 0 10px;
        margin-top: 25px;
    }

    .idk-eb-modal-content,
    .idk-eb-modal-sidebar-body {
        padding: 15px;
    }

    /* hide description in card, save vertical space */
    .idk-eb-detail-description {
        display: none;
    }

    .idk-eb-sessions-table {
        font-size: 13px;
    }

    .idk-eb-sessions-table th,
    .idk-eb-sessions-table td {
        padding: 10px 8px;
    }

    .idk-eb-book-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .idk-eb-modal-meta {
        gap: 0px 45px;
    }

    .idk-eb-sessions-table th,
    .idk-eb-sessions-table td {
        padding: 5px !important;
    }

    .idk-eb-booking-toggle {
        bottom: 10px !important;
        left: 25px !important;
        right: auto !important;
    }

    .idk-eb-modal-content h3:not(.idk-eb-sessions-list h3) {
        padding-right: 0;
        line-height: 20px;
    }
}

/* ── Mobile BB: Back-button + Ref-badge in ref-switcher ── */

/* Ref-badge row in ref-switcher */
.idk-eb-ref-badge-row {
    display: flex;
    align-items: center;
}

.idk-eb-ref-badge-row .idk-eb-booking-ref-badge {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}

/* Back-button: hidden on desktop, visible on mobile */
.idk-eb-booking-box-back {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px 4px 0;
    color: inherit;
    line-height: 1;
}

@media (max-width: 767px) {
    .idk-eb-booking-box {
        height: 100dvh;
        max-height: 100dvh;
    }

    .idk-eb-booking-box-back {
        display: inline-flex;
        align-items: center;
    }

    /* Hide the ref-badge from header on mobile – shown in ref-switcher */
    .idk-eb-booking-box-header .idk-eb-booking-ref-badge {
        display: none;
    }
}