/* ==================================================
   Namaste Weekly Grid
   Used on public class schedule pages
   ================================================== */

.namaste-weekly-grid > .e-con-inner {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.namaste-weekly-grid .day {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
}

.namaste-weekly-grid .day--off {
    opacity: 0.65;
    background: rgba(0,0,0,0.03);
}

@media (max-width: 1024px) {
    .namaste-weekly-grid > .e-con-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .namaste-weekly-grid > .e-con-inner {
        grid-template-columns: 1fr;
    }
}

.namaste-weekly-grid .elementor-heading-title {
    font-family: var(--e-global-typography-secondary-font-family) !important;
}

.namaste-weekly-grid .day .elementor-heading-title {
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #85b5cc;
}

.namaste-weekly-grid .class-block {
    margin: 0 0 12px;
}

.namaste-weekly-grid .class-block:last-child {
    margin-bottom: 0;
}

.namaste-weekly-grid .class-block + .class-block {
    border-top: 1px solid #85b5cc;
    padding-top: 8px;
    margin-top: 8px;
}

.namaste-weekly-grid .class-time {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.2;
}

.namaste-weekly-grid .class-name {
    display: block;
    background: transparent !important;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
    position: relative;
    padding-left: 18px;
}

.namaste-weekly-grid .class-name::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 0.2em;
    background: transparent;
}

.namaste-weekly-grid .lvl-1  .class-name::before { background-color: #6fbf73; }
.namaste-weekly-grid .lvl-2  .class-name::before { background-color: #85b5cc; }
.namaste-weekly-grid .lvl-3  .class-name::before { background-color: #f2b705; }
.namaste-weekly-grid .lvl-34 .class-name::before { background-color: #d97c7c; }
.namaste-weekly-grid .lvl-all .class-name::before { background-color: #d372d1; }


/* ==================================================
   Amelia Customer Panel
   Class bundle usability improvements
   ================================================== */

/* Centre Amelia panel on desktop */
.amelia-v2-booking #amelia-container.am-cap__wrapper {
    margin: 0 auto !important;
}

/* Hide the Bundle Cancel button */
.amelia-v2-booking .am-cappa__actions.am-button--danger {
    display: none !important;
}

/* Restore breathing room around bundle panel */
.amelia-v2-booking .am-cappa {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
}

/* Add spacing below bundle summary */
.amelia-v2-booking .am-cappa__info {
    padding-bottom: 22px !important;
}

/* Subtle instruction text */
.amelia-v2-booking .am-cappa__info::after {
    content: "Choose a class and click 'Buy Now' to select a date and reserve your place. This will use one session from your bundle. When you select a class, any you have previously booked using this bundle will be displayed below.";
    display: block;
    white-space: normal;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* Class selection grid */
.amelia-v2-booking .el-tabs__nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px 16px !important;
    width: 100% !important;
    transform: none !important;
    margin-top: 18px !important;
    margin-bottom: 24px !important;
}

/* Remove Amelia's scrolling behaviour */
.amelia-v2-booking .el-tabs__nav-scroll {
    overflow: visible !important;
}

/* Remove moving underline */
.amelia-v2-booking .el-tabs__active-bar {
    display: none !important;
}

/* Individual class buttons */
.amelia-v2-booking .el-tabs__item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    border: 1px solid #d9dee5 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-weight: 600 !important;
    transition: all .2s ease;
}

.amelia-v2-booking .el-tabs__item:hover {
    border-color: #85b5cc !important;
    background: #fafcff !important;
}

.amelia-v2-booking .el-tabs__item.is-active {
    border: 2px solid #2f67ff !important;
    background: #eef7fc !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(61,109,242,0.15);
}

/* Divider below class choices */
.amelia-v2-booking .el-tabs__header {
    border-bottom: 1px solid #d9dee5 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
}

/* Keep selected class + Buy Now button side-by-side on tablet/desktop */
@media (min-width: 768px) {
    .amelia-v2-booking .am-cappa__service-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 18px !important;
    }

    .amelia-v2-booking .am-cappa__service-right {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .amelia-v2-booking .am-cappa__service-book {
        width: auto !important;
        min-width: 120px !important;
        max-width: 180px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
}

/* Customer Panel phone layout */
@media (max-width: 767px) {
    .amelia-v2-booking .el-tabs__nav {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .amelia-v2-booking #amelia-container.am-cap__wrapper {
        width: 100% !important;
        height: 100vh !important;
    }
}
