.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 0 12px;
    text-align: right
}

.tlcm-class-selector-head h4 {
    margin: 0 0 5px;
    font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
    font-size: 1.08em;
    font-weight: 800;
    line-height: 1.7;
    color: inherit
}

.tlcm-class-selector-head p {
    margin: 0;
    color: inherit;
    opacity: .72;
    line-height: 1.8
}

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

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

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

.tlcm-class-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 104px;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 16px;
    padding: 14px 46px 14px 18px;
    background: #fff;
    color: inherit;
    line-height: 1.85;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    text-align: right
}

.tlcm-class-check {
    position: absolute;
    right: 14px;
    top: 16px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    background: #fff;
    transition: all .15s ease
}

.tlcm-class-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
    text-align: right
}

.tlcm-class-title-wrap {
    text-align: right;
    white-space: normal
}

.tlcm-class-card-title {
    display: inline-block;
    margin-left: 8px;
    font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
    font-weight: 900;
    font-size: 1.06em;
    color: inherit
}

.tlcm-class-card-code {
    display: inline-block;
    font-size: .92em;
    opacity: .72;
    direction: ltr;
    unicode-bidi: embed
}

.tlcm-class-teacher {
    text-align: right;
    opacity: .78
}

.tlcm-class-mid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
    opacity: .88;
    text-align: right
}

.tlcm-class-schedule {
    display: block;
    margin-top: 7px;
    text-align: right;
    font-weight: 800;
    color: inherit;
    line-height: 1.9
}

.tlcm-class-branch {
    display: block;
    margin-top: 4px;
    text-align: right;
    font-weight: 700;
    line-height: 1.9
}

.tlcm-class-option:hover .tlcm-class-card,
.tlcm-class-option input:checked+.tlcm-class-card {
    border-color: currentColor;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .10);
    transform: translateY(-1px)
}

.tlcm-class-option input:checked+.tlcm-class-card {
    outline: 2px solid rgba(0, 0, 0, .075)
}

.tlcm-class-option input:checked+.tlcm-class-card .tlcm-class-check {
    background: currentColor;
    border-color: currentColor;
    color: #fff
}

.tlcm-card-online .tlcm-class-card {
    border-color: rgba(70, 120, 255, .25)
}

.tlcm-card-in-person .tlcm-class-card {
    border-color: rgba(20, 150, 95, .25)
}

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

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

.tlcm-class-full {
    display: inline-block;
    margin-top: 8px;
    border-radius: 999px;
    padding: 3px 10px;
    background: #f3f4f5;
    font-size: .85em
}

.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
}

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

@media(max-width:640px) {
    .tlcm-class-card {
        padding: 13px 42px 13px 14px
    }

    .tlcm-class-top,
    .tlcm-class-mid {
        grid-template-columns: 1fr;
        text-align: right
    }

    .tlcm-class-mid,
    .tlcm-class-schedule,
    .tlcm-class-branch {
        text-align: right
    }
}