.__drag_popup {
    position: fixed;

    left: 0;
    top: 0;

    will-change: transform;

    display: none;


    width: 340px;
    min-height: 220px;

    touch-action: none;


    background: rgba(14, 14, 16, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 5px 20px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    color: #fff;

    overflow: visible;

    z-index: 99999;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    user-select: none;
}

.__drag_popup.active {
    display: block;
}


/* =========================================================
   HEADER / ÁREA DE ARRASTE
========================================================= */

.__drag_popup_header {

    height: 52px;

    padding: 0 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    cursor: grab;

}


.__drag_popup_header:active {

    cursor: grabbing;

}


.__drag_popup_title {

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 0.2px;

    color: rgba(255, 255, 255, 0.86);

}


/* =========================================================
   BOTÃO FECHAR
========================================================= */

.__drag_popup_close {

    width: 27px;
    height: 27px;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: rgba(255, 255, 255, 0.45);

    font-size: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;

}


.__drag_popup_close:hover {

    background: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.9);

}


/* =========================================================
   CONTEÚDO
========================================================= */

.__drag_popup_content {

    padding: 20px 18px 18px;

}


.__drag_popup_description {

    margin: 0 0 18px;

    font-size: 12px;

    line-height: 1.6;

    color: rgba(255, 255, 255, 0.48);

}


/* =========================================================
   SELECT CONTAINER
========================================================= */

.__drag_select {

    position: relative;

    width: 100%;

}


/* =========================================================
   BOTÃO DO SELECT
========================================================= */

.__drag_select_button {

    width: 100%;

    height: 42px;

    padding: 0 13px;

    border-radius: 8px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.035);

    color: rgba(255, 255, 255, 0.82);

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    font-size: 12px;

    transition:
        border-color .2s ease,
        background .2s ease;

}


.__drag_select_button:hover {

    background: rgba(255, 255, 255, 0.055);

    border-color: rgba(255, 255, 255, 0.14);

}


.__drag_select_button.active {

    border-color: rgba(255, 255, 255, 0.18);

}


/* =========================================================
   SETA
========================================================= */

.__drag_select_arrow {

    width: 6px;
    height: 6px;

    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);

    transform: rotate(45deg);

    transition: transform .2s ease;

}


.__drag_select_button.active .__drag_select_arrow {

    transform: rotate(225deg);

}


/* =========================================================
   MENU
========================================================= */

.__drag_select_options {

    position: absolute;

    left: 0;

    bottom: calc(100% + 7px);

    width: 100%;

    padding: 5px;

    border-radius: 9px;

    background: rgba(18, 18, 20, 0.98);

    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(7px) scale(.98);

    transform-origin: bottom;

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s;

    z-index: 100;

}


.__drag_select_options.open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0) scale(1);

}


/* =========================================================
   OPTION
========================================================= */

.__drag_select_option {

    height: 36px;

    padding: 0 10px;

    display: flex;

    align-items: center;

    border-radius: 6px;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.58);

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;

}


.__drag_select_option:hover {

    background: rgba(255, 255, 255, 0.07);

    color: rgba(255, 255, 255, 0.95);

}


.__drag_select_option.selected {

    background: rgba(255, 255, 255, 0.06);

    color: #fff;

}


/* =========================================================
   INDICADOR INFERIOR
========================================================= */

.__drag_popup_indicator {

    margin-top: 17px;

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 10px;

    color: rgba(255, 255, 255, 0.25);

}


.__drag_popup_dot {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.3);

}


/* =========================================================
   RESPONSIVO
========================================================= */




.custom-range {
    position: relative;
    width: 70%;
    height: 40px;
    touch-action: none;
    /* <- Adicione isso para movimentos touch suaves */
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 6px;
    width: 0%;
    background: orange;
    border-radius: 3px;
}

.range-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0;
    /* Added this for proper left-based positioning */
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 10;
    /* <- ESSENCIAL */
}


.container_text_element_change_font_size_hide {
    width: 100%;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#size_hide_text_font {
    font-size: 12px;
}

@media (max-width: 500px) {

    .__drag_popup {

        width: calc(100vw - 30px);

    }

}






/* =========================================================
   LIXEIRA DO DRAG
========================================================= */

.__drag_trash {

    position: fixed;

    left: 50%;
    bottom: 28px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform:
        translateX(-50%) translateY(15px) scale(.85);

    opacity: 0;
    visibility: hidden;

    border-radius: 50%;

    background: rgba(18, 18, 20, .94);

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .45),
        0 4px 15px rgba(0, 0, 0, .25);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    z-index: 100000;

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


/* LIXEIRA VISÍVEL DURANTE O DRAG */

.__drag_trash.visible {

    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%) translateY(0) scale(1);

}


/* ÍCONE */

.__drag_trash svg {

    width: 22px;
    height: 22px;

    fill: none;

    stroke: rgba(255, 255, 255, .55);

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .18s ease,
        stroke .18s ease;

}


/* QUANDO O POPUP ESTÁ SOBRE A LIXEIRA */

.__drag_trash.hover {

    background: rgba(190, 35, 35, .9);

    border-color: rgba(255, 90, 90, .35);

    box-shadow:
        0 18px 50px rgba(120, 0, 0, .35),
        0 0 0 8px rgba(190, 35, 35, .08);

    transform:
        translateX(-50%) translateY(0) scale(1.12);

}


.__drag_trash.hover svg {

    stroke: #fff;

    transform:
        scale(1.08) translateY(1px);

}




.marcador {
    --cor-texto: #e8d5a5;
    --cor-marcador: #a9823f;



    color: var(--cor-texto);
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;

    background-image: linear-gradient(90deg,
            var(--cor-marcador),
            var(--cor-marcador));

    background-repeat: no-repeat;
    background-position: left 82%;
    background-size: 0% 42%;

    transition:
        background-size 0.8s cubic-bezier(.65, 0, .25, 1),
        color 0.4s ease;

    cursor: pointer;

    
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: underline;
}

.marcador:hover {
    background-size: 100% 42%;
    color: #24130e;
}