/* ==================================================
   Namaste Amelia Front-end Customisations
   Customer Panel / Class Bundle improvements
   ================================================== */

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

/* Restore breathing room around the 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 under bundle summary */
.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;
}

/* Two-column 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;
}

/* Stop hidden horizontal overflow */
.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;
}

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

/* Selected class */
.amelia-v2-booking .el-tabs__item.is-active {
    border: 2px solid #2f67ff !important;
    background: #eef7fc !important;
    font-weight: 700 !important;
}

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

/* Selected class + Buy Now button layout 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;
    }
}

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