/* suggestion-menu.css */

/* 1) Fixed menu width = 240px (as you specified) */
#suggestionMenu {
    position: absolute;
    z-index: 9999;
    padding: 4px;
    display: none;        /* hidden by default */
    overflow-y: auto;
    border-radius: 8px;
    background: #FFF;
    min-width: 270px;
    /* default */
    box-shadow: 0px 327px 91px 0px rgba(0, 0, 0, 0.00), 0px 209px 84px 0px rgba(0, 0, 0, 0.01), 0px 118px 71px 0px rgba(0, 0, 0, 0.05), 0px 52px 52px 0px rgba(0, 0, 0, 0.09), 0px 13px 29px 0px rgba(0, 0, 0, 0.10);
}

/* 2) Each suggestion-item is a flex container with space-between */
.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
}

/* 3) Hover state */
.suggestion-item:hover {
    background-color: #f0f0f0;
}

/* 4) When an item is “focused” via keyboard, give it a different background */
.suggestion-item.focused {
    background-color: #e6f2ff;    /* light blue highlight */
}

/* 5) Left and right spans, with custom colors */
.suggestion-left,
.suggestion-right {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}
.suggestion-left {
    color: #646D78;
    margin-right: 20px;
}
.suggestion-right {
    color: #227AFF;
}

.smart-tag-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.smart-tag-button {
    position: absolute;
    bottom: -6px;
    right: 10px;
    z-index: 1;
    background-color: #2d3748;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.smart-tag-button:hover {
    background-color: #1a202c;
}

.smart-tag-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.smart-tag-button.open .smart-tag-icon {
    transform: rotate(180deg);
}

.smart-tag-button.open .smart-tag-icon {
    transform: rotate(180deg);
}

.smart-tag-tip {
    margin: 6px 0 0;
    font-size: 13px;
    color: #646D78;
}

#suggestionMenu {
    position: absolute;
    z-index: 9999;
    padding: 4px;
    display: none;
    overflow-y: auto;
    border-radius: 8px;
    background: #FFF;
    min-width: 270px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: opacity 0.15s ease;
}
.stm_metaboxes_grid__inner #instructors .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #lessons .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #enterprise .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #upcoming-course-status .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #order .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #certificates .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #course .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #assignment .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #reports .wpcfto-field-description.wpcfto-field-description__before.description,
.stm_metaboxes_grid__inner #account .wpcfto-field-description.wpcfto-field-description__before.description {
    position: absolute;
    left: 39%;
    top: 40px;
    font-size: 13px;
    color: #4D5E6F;
}
#order {
    .wpcfto-box-child.column-1.wpcfto-box-text.stm_lms_new_order_title.wpcfto-box-of-stm_lms_new_order_title.text,
    .wpcfto-box-child.column-1.wpcfto-box-text.stm_lms_new_order_accepted_title.wpcfto-box-of-stm_lms_new_order_accepted_title.text,
    .wpcfto-box-child.column-1.wpcfto-box-text.stm_lms_new_order_instructor_title.wpcfto-box-of-stm_lms_new_order_instructor_title.text {
        margin-bottom: 20px;
    }
    .wpcfto-box-child.column-1.wpcfto-box-text.stm_lms_new_order_accepted_subject.wpcfto-box-of-stm_lms_new_order_accepted_subject.text .wpcfto-field-description.wpcfto-field-description__before.description,
    .wpcfto-box-child.column-1.wpcfto-box-text.stm_lms_new_order_instructor_subject.wpcfto-box-of-stm_lms_new_order_instructor_subject.text .wpcfto-field-description.wpcfto-field-description__before.description,
    .wpcfto-box-child.column-1.wpcfto-box-text.stm_lms_new_order_subject.wpcfto-box-of-stm_lms_new_order_subject.text .wpcfto-field-description.wpcfto-field-description__before.description {
        top: 102px !important;
    }
}

.wpcfto-box-trumbowyg{
    margin-top: 20px !important;
}
