.tlcm-class-selector,
.tlcm-class-selector * {
    box-sizing: border-box;
    font-family: var(--e-global-typography-text-font-family, inherit) !important;
}

.tlcm-class-selector {
    direction: rtl;
    width: 100%;
    margin: 18px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: right;
}

.tlcm-class-selector-head {
    margin: 0;
    text-align: center;
}

.tlcm-class-selector-title,
.tlcm-class-selector-head h4 {
    margin: 0 0 4px;
    font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    color: #111;
}

.tlcm-class-selector-desc,
.tlcm-class-selector-head p {
    margin: 0;
    color: #111;
    opacity: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

.tlcm-class-selector-divider {
    width: 100%;
    height: 1px;
    margin: 28px 0 32px;
    background: rgba(0, 0, 0, .08);
}

.tlcm-class-options {
    display: grid;
    gap: 30px;
}

.tlcm-class-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    color: inherit;
    text-align: right;
}

.tlcm-class-radio,
.tlcm-class-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tlcm-class-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 166px;
    border: 0;
    border-radius: 22px;
    padding: 8px 14px 12px;
    background: #f1f1f1;
    color: #111;
    line-height: 1.85;
    box-shadow: none;
    transition: background .15s ease, transform .15s ease;
    text-align: right;
}

.tlcm-class-option:hover .tlcm-class-card {
    background: #ededed;
}

.tlcm-class-check {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 3px solid #e1e1e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: transparent;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    z-index: 2;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.tlcm-class-check-icon {
    display: block;
    transform: translateY(-1px);
}

.tlcm-class-option input:checked+.tlcm-class-card .tlcm-class-check,
.tlcm-class-option .tlcm-class-radio:checked+.tlcm-class-card .tlcm-class-check {
    border-color: #15a300;
    background: #fff;
    color: #15a300;
}

.tlcm-class-title-pill {
    display: block;
    width: calc(100% - 50px);
    min-height: 36px;
    margin: 0 42px 12px 0;
    padding: 3px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .025);
    text-align: center;
}

.tlcm-class-card-title {
    display: block;
    margin: 0;
    font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.6;
    color: #111;
}

.tlcm-class-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 42px;
    row-gap: 8px;
    padding: 0 4px;
    direction: rtl;
}

.tlcm-class-info-item {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    text-align: right;
    white-space: nowrap;
}

.tlcm-class-info-item b {
    color: #111;
    font-weight: 900;
}

.tlcm-class-info-item span {
    color: #111;
    font-weight: 400;
}

.tlcm-class-meta-row,
.tlcm-class-schedule,
.tlcm-class-branch {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    padding: 0 4px;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    text-align: center;
}

.tlcm-class-meta-row b,
.tlcm-class-schedule b,
.tlcm-class-branch b {
    color: #111;
    font-weight: 900;
}

.tlcm-class-meta-row span,
.tlcm-class-schedule span,
.tlcm-class-branch span {
    color: #111;
    font-weight: 400;
}

.tlcm-class-option input:checked+.tlcm-class-card,
.tlcm-class-option .tlcm-class-radio:checked+.tlcm-class-card {
    background: #f1f1f1;
    outline: none;
    box-shadow: none;
    transform: none;
}

.tlcm-card-online .tlcm-class-card,
.tlcm-card-in-person .tlcm-class-card {
    border-color: transparent;
}

.tlcm-class-option.is-full {
    opacity: .55;
    cursor: not-allowed;
}

.tlcm-class-option.is-full .tlcm-class-card {
    pointer-events: none;
}

.tlcm-class-full-badge,
.tlcm-class-full {
    display: inline-block;
    margin-top: 8px;
    border-radius: 999px;
    padding: 3px 10px;
    background: #fff;
    color: #d63638;
    font-size: 12px;
    font-weight: 900;
}

.tlcm-capacity-full {
    color: #d63638 !important;
    font-weight: 900 !important;
}

.tlcm-class-selector.has-selection {
    opacity: 1;
}

form.cart.tlcm-cart-with-class-selector,
form.cart:has(.tlcm-class-selector),
.elementor-add-to-cart form.cart:has(.tlcm-class-selector),
.elementor-widget-woocommerce-product-add-to-cart form.cart:has(.tlcm-class-selector),
.dialog-lightbox-message form.cart:has(.tlcm-class-selector),
.dialog-widget-content form.cart:has(.tlcm-class-selector) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 14px !important;
    align-items: stretch !important;
}

form.cart.tlcm-cart-with-class-selector .tlcm-class-selector,
form.cart:has(.tlcm-class-selector) .tlcm-class-selector {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
}

form.cart.tlcm-cart-with-class-selector .quantity,
form.cart:has(.tlcm-class-selector) .quantity {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

form.cart.tlcm-cart-with-class-selector .single_add_to_cart_button,
form.cart:has(.tlcm-class-selector) .single_add_to_cart_button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
    font-family: var(--e-global-typography-accent-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
}

form.cart:has(.tlcm-class-selector) .tlcm-class-selector,
form.cart:has(.tlcm-class-selector) .quantity {
    grid-column: 1 / -1 !important;
}

form.cart:has(.tlcm-class-selector) .single_add_to_cart_button {
    grid-column: auto !important;
    width: 100% !important;
}

form.cart:has(.tlcm-class-selector) .tlcm-cart-actions,
form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
}

form.cart:has(.tlcm-class-selector) .tlcm-cart-actions .single_add_to_cart_button,
form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions .single_add_to_cart_button,
form.cart:has(.tlcm-class-selector) .tlcm-cart-actions .tlcm-popup-cancel,
form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions .tlcm-popup-cancel {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

form.cart:has(.tlcm-class-selector) .tlcm-cart-actions .single_add_to_cart_button,
form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions .single_add_to_cart_button {
    background: #c0189b !important;
    border: 2px solid #c0189b !important;
    color: #fff !important;
}

form.cart:has(.tlcm-class-selector) .tlcm-cart-actions .tlcm-popup-cancel,
form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions .tlcm-popup-cancel {
    background: #fff !important;
    border: 2px solid #c0189b !important;
    color: #222 !important;
    cursor: pointer !important;
}

form.cart:has(.tlcm-class-selector) .tlcm-cart-actions .tlcm-popup-cancel span,
form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions .tlcm-popup-cancel span {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #f5acd9 !important;
    color: #b60086 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

@media(max-width:460px) {

    form.cart:has(.tlcm-class-selector) .tlcm-cart-actions,
    form.cart.tlcm-cart-with-class-selector .tlcm-cart-actions {
        grid-template-columns: 1fr !important;
    }
}


@media(max-width:640px) {

    .tlcm-class-selector-title,
    .tlcm-class-selector-head h4 {
        font-size: 20px;
    }

    .tlcm-class-selector-divider {
        margin: 22px 0 26px;
    }

    .tlcm-class-options {
        gap: 22px;
    }

    .tlcm-class-card {
        min-height: auto;
        padding: 8px 12px 12px;
        border-radius: 22px;
    }

    .tlcm-class-check {
        right: 9px;
        top: 10px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .tlcm-class-title-pill {
        width: calc(100% - 46px);
        margin-right: 40px;
        margin-bottom: 12px;
    }

    .tlcm-class-info-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
        row-gap: 6px;
        padding: 0 2px;
    }

    .tlcm-class-info-item,
    .tlcm-class-meta-row,
    .tlcm-class-schedule,
    .tlcm-class-branch {
        font-size: 13px;
    }
}

@media(max-width:460px) {
    .tlcm-class-info-grid {
        grid-template-columns: 1fr;
    }

    .tlcm-class-info-item {
        white-space: normal;
    }

    .tlcm-class-meta-row,
    .tlcm-class-schedule,
    .tlcm-class-branch {
        justify-content: flex-start;
        text-align: right;
    }
}