/* =========================
   Live Workshops – Frontend
   ========================= */

/* --- Hero wrapper --- */
.lw-hero {
    background: #d9d9d9;
    padding: 18px;
}

.lw-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width:900px) {
    .lw-hero__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Hero media --- */
.lw-hero__left {
    overflow: hidden;
    border-radius: 20px;
}

.lw-hero__img {
    width: 100%;
    height: auto;
    border-radius: 20px !important;
    display: block;
}

.lw-hero__img--placeholder {
    background: #eee;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

/* Right column: vertically center all content */
.lw-hero__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* --- Title --- */
.lw-hero__title {
    font-size: 24px;
    line-height: 1.1;
}

/* =========================
 Price Card (v2)
 ========================= */
.lw-hero__pricecard.v2 {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

/* Top band */
.lw-priceband {
    background: #232a36;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 14px 24px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.lw-priceband__col {
    display: flex;
    flex-direction: column;
}

.lw-priceband__col--right {
    text-align: left;
}

.lw-priceband__price {
    font-weight: 900;
    font-size: 24px;
    line-height: 1.1;
}

.lw-priceband__price--old {
    text-decoration: line-through;
    opacity: .7;
    font-weight: 700;
}

.lw-priceband__note {
    font-size: 14px;
    opacity: .9;
}

/* Bottom row */
.lw-pricerow {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    align-items: center;
}

.lw-pricerow__left {
    display: flex;
    align-items: center;
    flex: 0 0 40%;
}

.lw-pricerow__right {
    display: flex;
    align-items: center;
    flex: 0 0 60%;
}

.lw-pricerow__blurb {
    margin: 0;
    color: #111827;
    font-size: 12px;
    line-height: 1.1;
}

/* Legal links in price row */
.lw-pricerow__legal {
    margin-top: 8px;
    text-align: right;
    font-size: 11px;
    color: #6b7280;
}

/* Legal links in separate row */
.lw-legal-row {
    padding: 4px 15px;
    border-top: 1px solid #e5e7eb;
}

.lw-legal-links {
    text-align: right;
    font-size: 11px;
    color: #6b7280;
}

.lw-legal-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lw-legal-link:hover {
    color: #374151;
    text-decoration: underline;
}

.lw-legal-separator {
    margin: 0 6px;
    color: #9ca3af;
}

/* CTA button */
.lw-hero__btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 5px;
    background: #57a3a1;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    width: 100%;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, filter .2s ease;
}

.lw-hero__btn:hover,
.lw-hero__btn:active,
.lw-hero__btn.active,
.lw-hero__btn.is-active,
.lw-hero__btn[aria-pressed="true"],
.lw-hero__btn:focus,
.lw-hero__btn:focus-visible {
    background: #000;
    color: #fff;
    filter: none;
}

.lw-hero__btn:focus-visible {
    outline: 2px solid #0ea5a3;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(14, 165, 163, .25);
}

/* Responsive tweaks for price card */
@media (max-width:900px) {
    .lw-priceband {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .lw-priceband__col--right {
        align-items: flex-start;
        text-align: left;
    }

    .lw-pricerow {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lw-pricerow__left {
        order: 1;
    }

    .lw-pricerow__right {
        order: 2;
    }

    .lw-hero__btn {
        width: 100%;
        text-align: center;
    }
}

/* Responsive tweaks for tabs */
@media (max-width:768px) {
    .lw-session-tabs {
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .lw-tab-btn {
        padding: 10px 12px;
        min-height: 44px;
        font-size: 13px;
    }

    .lw-tab-icon {
        width: 20px;
        height: 20px;
    }
}

/* Responsive tweaks for date/time selection */
@media (max-width:768px) {
    .lw-slots {
        flex-direction: column;
        gap: 20px;
    }

    .lw-date-display {
        justify-content: center;
    }

    .lw-selection-right {
        align-items: left;
    }
}

@media (max-width:480px) {
    .lw-priceband__price {
        font-size: 20px;
    }

    .lw-priceband__note {
        font-size: 13px;
    }
}

/* =========================
 Description (read more)
 ========================= */
.lw-hero__desc {
    margin-top: 24px;
}

.lw-hero__more {
    margin-top: 6px;
    background: transparent;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline,
}


/* Sessions list */
/* Wrapper Layout */
.lw-sessions-wrap {
    display: flex;
    gap: 10px;
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;

}

/* LEFT PANEL */
.lw-sessions-left-wrapper {
    flex: 0 0 35%;
}

.lw-sessions-left-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 58px 0;
    color: #000;
    padding: 0 5px;
}

.lw-sessions-left {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #D9D9D9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lw-sessions-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lw-session-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #D9D9D9;
    min-height: 70px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.lw-session-item:hover {
    background: #f8f9fa;
}


/* Current session (next upcoming) */
.lw-session-item.current {
    color: #2A3242;
    border: 1px solid #D9D9D9;
}

.lw-session-item.current .lw-session-title {
    color: #2A3242;
}

/* Upcoming sessions (remaining items) */
.lw-session-item.upcoming {
    background: #fff;
    color: #2A3242;
    border: 1px solid #D9D9D9;
}

.lw-session-item.upcoming .lw-session-title {
    color: #2A3242;
}

/* Active/Selected session state */
.lw-session-item.active {
    background: #8FD8B5 !important;
    border-color: #8FD8B5;
    color: #2A3242;
}

.lw-session-item.active .lw-session-title {
    color: #2A3242;
}

.lw-session-item.active .lw-session-index {
    background: #fff !important;
    color: #2A3242 !important;
    border-color: #8FD8B5;
}

.lw-session-index {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}



/* Current session index */
.lw-session-item.current .lw-session-index {
    background: #fff;
    color: #2A3242;
    border: 1px solid #D9D9D9;
}

/* Upcoming session index */
.lw-session-item.upcoming .lw-session-index {
    background: #fff;
    color: #2A3242;
    border: 1px solid #D9D9D9;
}

.lw-session-title {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

/* Session Header */
.lw-session-header {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.lw-session-header h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #2A3242;
}

.lw-course-link {
    margin: 8px 0;
    font-size: 14px;
}

.lw-course-link a {
    color: #007cba;
    text-decoration: none;
}

.lw-course-link a:hover {
    text-decoration: underline;
}

.lw-capacity {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.lw-session-time {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.lw-join-link {
    margin: 8px 0;
    font-size: 14px;
}

.lw-join-link a {
    margin-left: 8px;
}

.lw-scroll-down {
    text-align: center;
    padding-top: 20px;
    cursor: pointer;
    color: #666;
}

.lw-scroll-down .dashicons {
    width: 40px;
    height: 40px;
    border: 1px solid #D9D9D9;
    border-radius: 50%;
    padding: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2A3242;
}

/* Responsive design */
@media (max-width: 768px) {
    .lw-sessions-wrap {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .lw-sessions-left-wrapper {
        flex: none;
        width: 100%;
    }

    .lw-sessions-right {
        flex: none;
        width: 100%;
    }




    .lw-session-item {
        padding: 14px 16px;
        min-height: 60px;
    }

    .lw-session-title {
        font-size: 14px;
    }

    .lw-session-header {
        padding: 20px;
    }
}


.lw-sessions-right {
    flex: 0 0 65%;
}


/* Tabs */
.lw-session-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Custom scrollbar for webkit browsers */
.lw-session-tabs::-webkit-scrollbar {
    height: 6px;
}

.lw-session-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.lw-session-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.lw-session-tabs::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Ensure tabs don't shrink when scrolling */
.lw-session-tabs .lw-tab-btn {
    flex-shrink: 0;
    min-width: fit-content;
}

/* Container isolation to prevent width issues */
.lw-session-detail {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.lw-tab-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 18px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    transition: all 0.3s ease;
    min-height: 48px;
}

.lw-tab-btn:hover {
    background: #8FD8B5 !important;
    border-color: #8FD8B5;
    color: #2A3242;
}

.lw-tab-btn.active {
    background: #8FD8B5 !important;
    border-color: #8FD8B5;
    color: #2A3242;
}

.lw-tab-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Date & Time Slots and CTA - Shared Background */
.lw-slots {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
}

.lw-slots-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
}

/* Dynamic Month/Day Button */
.lw-date-display {
    display: flex;
    flex-shrink: 0;
}

.lw-date-main-btn {
    background: #FBBF59;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    cursor: pointer;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lw-date-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lw-month {
    font-size: 16px;
    color: #2A3242;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.lw-day {
    font-size: 24px;
    color: #2A3242;
    font-weight: 700;
}

/* Right side container for weekday and time slots */
.lw-selection-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* Day of Week Selection */
.lw-weekday-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lw-weekday-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #2A3242;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.lw-weekday-btn:hover {
    background: #00BF63;
    border-color: #ddd;
}

.lw-weekday-btn.active {
    background: #00BF63;
    color: #2A3242;
    border-color: #ddd;
}

.lw-time-pills {
    display: flex;
    gap: 8px;
}


.lw-time-btn:hover {
    background: #00BF63;
}

/* CTA Buttons */
.lw-session-cta {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 0;
}

.lw-btn {
    padding: 8px 14px;
    border-radius: 6px !important;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.lw-btn-primary {
    background: #3498db;
    color: #2A3242;
}

.lw-btn-secondary {
    background: #95a5a6;
    color: #2A3242;
}

.lw-btn-success {
    background: #2ecc71;
    color: #2A3242;
}

.lw-btn-danger {
    background: #e74c3c;
    color: #2A3242;
}

.lw-btn-chat {
    background: #D9D9D9;
    color: #2A3242;
}

/* Chat Support Button and Dropdown */
.lw-chat-wrap {
    position: relative;
    display: inline-block;
}

.lw-btn-chat-support {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    background: #D9D9D9 !important;
    color: #2A3242 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    border: 1px solid transparent !important;
    transition: background-color .2s ease, color .2s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-height: 44px !important;
    width: auto !important;
    text-align: left !important;
}

.lw-btn-chat-support:hover,
.lw-btn-chat-support:focus {
    background: #2A3242 !important;
    color: #fff !important;
}

.lw-btn-chat-support:hover .lw-chat-line1,
.lw-btn-chat-support:focus .lw-chat-line1 {
    color: #fff !important;
}

.lw-btn-chat-support:hover .lw-chat-line2,
.lw-btn-chat-support:focus .lw-chat-line2 {
    color: #fff !important;
}

.lw-btn-chat-support .lw-chat-icon {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    display: block !important;
    float: none !important;
}

.lw-btn-chat-support .lw-chat-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    text-align: left !important;
    flex: 1 !important;
}

.lw-btn-chat-support .lw-chat-line1 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2A3242 !important;
    display: block !important;
    line-height: 1.2 !important;
}

.lw-btn-chat-support .lw-chat-line2 {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #2A3242 !important;
    margin-top: 1px !important;
    display: block !important;
    line-height: 1.2 !important;
}

.lw-chat-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    padding: 6px;
    z-index: 50;
}

.lw-chat-link,
.lw-chat-empty {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #2A3242;
    text-decoration: none;
    font-size: 14px;
}

.lw-chat-link:hover {
    background: #F5F5F5;
}

/* Tab Content */
.lw-tab-content {
    display: none;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #d9d9d9;
    margin-top: 10px;
}

.lw-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Session Detail - Only show active one */
.lw-session-detail {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: relative;
}

.lw-session-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure first session is visible by default */
.lw-session-detail:first-child.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lw-tab-content h4 {
    margin-top: 0;
}

.lw-date-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.lw-date-card {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
    border: 1px solid transparent;
}

.lw-date-card.active {
    background: #3498db;
    color: #2A3242;
    border-color: #2980b9;
}

.lw-month {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.lw-day {
    font-size: 18px;
    font-weight: bold;
    margin-top: 2px;
}

.lw-weekday {
    font-size: 11px;
    margin-top: 2px;
}

.lw-time-slots {
    margin-top: 0;
}

.lw-time-group {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
}

.lw-time-group.active {
    display: flex;
}

.lw-time-btn {
    color: black;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}



.lw-time-btn.active {
    background: #00BF63;
    color: #2A3242;
    border-color: #ddd;
}

.lw-time-btn.selected {
    background: #00BF63;
    color: #2A3242;
    border-color: #ddd;
}

/* Tab content h4 with icons */
.lw-tab-content h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2A3242;
}

.lw-tab-content-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lw-tab-content h4 span[class*="dashicons"],
.lw-tab-content h4 span[class*="fa-"],
.lw-tab-content h4 span[class*="icon-"] {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-center {
    align-items: start !important;
}

/* Responsive Vimeo embed */
.lw-vimeo-content {
    margin-top: 12px;
}

.lw-vimeo-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.lw-vimeo-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

.lw-session-detail .fluid-width-video-wrapper {
    position: static !important;
}

.lw-session-detail.is-preview .lw-selection-right,
.lw-weekday-tabs.is-disabled,
.lw-time-slots.is-disabled {
    position: relative;
}

/* Prevent interaction in preview mode */
.lw-session-detail.is-preview .lw-selection-right * {
    pointer-events: none !important;
}

/* Specific buttons: visually disabled */
.lw-session-detail.is-preview .lw-weekday-btn,
.lw-session-detail.is-preview .lw-time-btn,
.lw-weekday-tabs.is-disabled .lw-weekday-btn,
.lw-time-slots.is-disabled .lw-time-btn {
    cursor: not-allowed !important;
    opacity: .6 !important;
}

.lw-tooltip {
    position: relative;
    display: inline-block;
}

.lw-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2A3242;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* Tooltip arrow */
.lw-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2A3242 transparent transparent transparent;
}

/* Show on hover and focus */
.lw-tooltip:hover .lw-tooltip-bubble,
.lw-tooltip:focus-within .lw-tooltip-bubble {
    opacity: 1;
}

.lw-selection-right.is-locked {
    position: relative;
}

.lw-selection-right.is-locked * {
    pointer-events: none !important;
}

.lw-selection-right.is-locked .lw-weekday-btn,
.lw-selection-right.is-locked .lw-time-btn {
    opacity: .6 !important;
    cursor: not-allowed !important;
}