/*social login in login/register modal*/
.mo-openid-app-icons {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    margin-top: -32px;
}

.mo-openid-app-icons a.login-button {
    display: flex !important;
    color: #111 !important;
    font-weight: bold !important;
    align-items: center;
}

.mo-openid-app-icons a.login-button:hover {
    cursor: pointer;
}

.mo-openid-app-icons a.login-button i {
    margin-left: 0;
    color: #fff !important;
    padding: 0 10px !important;
    width: 50px;
    font-size: 32px;
}

.cuco-social-login span {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #AAB2C3;
    font-size: 13px;
    line-height: 20px;
}

/*change checkbo to togle for keep signed in, also loginregister modal*/
/* Hide checkbox but keep it accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cuco-toggle-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-visual {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-track {
    width: 50px;
    height: 24px;
    background-color: #ddd;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* When checkbox is checked, style the next sibling .toggle-visual */
.visually-hidden:checked + .toggle-visual .toggle-track {
    background-color: #4CAF50;
}

.visually-hidden:checked + .toggle-visual .toggle-thumb {
    transform: translateX(26px);
}

/* Optional: Hover effects */
.cuco-toggle-checkbox:hover .toggle-track {
    background-color: #ccc;
}

.visually-hidden:checked + .toggle-visual .toggle-track:hover {
    background-color: #3d8b40;
}

/*VISUAL FIXES*/
/*fix sageata dubla toTop*/
button.reg-top.show {
    display: none;
}

/*fix sectiune cta footer dupa eliminare buton cta :) */
.ft-cta .cta-grid{
    display: grid;
    gap: 12px;
}

.ft-cta h2{
    line-height: 1.75;
}

.ft-cta .chips {
    margin-top:0 !important;
}

@media (min-width:980px) {
    .ft-cta .cta-grid {
        /*grid-template-columns: 1fr 1fr;*/
        grid-template-columns: 1fr;
        align-items: center;
        column-gap: 14px;
        align-items: center;
    }
}

/*adaugare text in panoul de control la miosiuni externe*/
span.me-glow{
    display: inline-block;
    margin: 0 0.25em 0 1em;
    animation: meGlowPulse 2.8s ease-in-out infinite;
}

@keyframes meGlowPulse{
    0%{
        opacity: 0.85;
        text-shadow: 0 0 0 rgba(255,255,255,0);
        transform: scale(1);
    }
    50%{
        opacity: 1;
        text-shadow: 0 0 8px rgba(255,255,255,0.35);
        transform: scale(1.02);
    }
    100%{
        opacity: 0.85;
        text-shadow: 0 0 0 rgba(255,255,255,0);
        transform: scale(1);
    }
}
@media (max-width:768px) {
    span.me-glow {
        display: block;
        margin: 0;
    }
}


@media (max-width:1024px){
    .hdr-menu-mobile .elementor-menu-toggle{
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 8px !important;
        z-index: 10;
        padding: 0 !important;
        transition: background 0.25s ease !important;
        position: relative !important;
        transform: none !important;
        rotate: none !important;
        animation: none !important;
    }

    /* BLOCHEZ orice rotații când e activ */
    .hdr-menu-mobile .elementor-menu-toggle.elementor-active{
        transform: none !important;
        rotate: none !important;
        animation: none !important;
        background: transparent !important;
    }

    /* Ascundem iconițele default Elementor */
    .hdr-menu-mobile .elementor-menu-toggle i,
    .hdr-menu-mobile .elementor-menu-toggle svg,
    .hdr-menu-mobile .elementor-menu-toggle .eicon,
    .hdr-menu-mobile .elementor-menu-toggle [class*="icon"] {
        display: none !important;
        transform: none !important;
        rotate: none !important;
    }

    /* SVG custom ca background - HAMBURGER */
    .hdr-menu-mobile .elementor-menu-toggle::before{
        content: '';
        display: block;
        width: 60px;
        height: 60px;
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><rect x="15" y="15" width="30" height="3" rx="1.5" fill="%23D4AF37"/><rect x="15" y="23.5" width="30" height="3" rx="1.5" fill="%23D4AF37"/><rect x="15" y="32" width="30" height="3" rx="1.5" fill="%23D4AF37"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23D4AF37" text-anchor="middle">Meniu</text></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: none !important;
        rotate: none !important;
        animation: none !important;
    }

    /* SVG custom când e ACTIV - X */
    .hdr-menu-mobile .elementor-menu-toggle.elementor-active::before{
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><line x1="18" y1="15" x2="42" y2="35" stroke="%23D4AF37" stroke-width="3" stroke-linecap="round"/><line x1="42" y1="15" x2="18" y2="35" stroke="%23D4AF37" stroke-width="3" stroke-linecap="round"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23D4AF37" text-anchor="middle">Meniu</text></svg>');
        transform: none !important;
        rotate: none !important;
    }

    /* HOVER */
    .hdr-menu-mobile .elementor-menu-toggle:hover{
        background: rgba(212, 175, 55, 0.15) !important;
    }

    .hdr-menu-mobile .elementor-menu-toggle:hover::before{
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><rect x="15" y="15" width="30" height="3" rx="1.5" fill="%23F6D773"/><rect x="15" y="23.5" width="30" height="3" rx="1.5" fill="%23F6D773"/><rect x="15" y="32" width="30" height="3" rx="1.5" fill="%23F6D773"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23F6D773" text-anchor="middle">Meniu</text></svg>');
    }

    .hdr-menu-mobile .elementor-menu-toggle.elementor-active:hover::before{
        background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g><line x1="18" y1="15" x2="42" y2="35" stroke="%23F6D773" stroke-width="3" stroke-linecap="round"/><line x1="42" y1="15" x2="18" y2="35" stroke="%23F6D773" stroke-width="3" stroke-linecap="round"/></g><text x="30" y="48" font-family="Inter, sans-serif" font-size="11" font-weight="600" fill="%23F6D773" text-anchor="middle">Meniu</text></svg>');
    }

    /* Ascundem textul ::after dacă exista */
    .hdr-menu-mobile .elementor-menu-toggle::after{
        display: none !important;
    }
}

.elementor-983 .elementor-element.elementor-element-5a3941d img {
    padding: 3px;
    border-width: 2px;
}

/**/
/* WooCommerce Product Thumbnails - Mobile Horizontal Scroll */
/* ------------------- */
/* WooCommerce Product Thumbnails - Mobile Horizontal Scroll */
@media (max-width: 768px) {
    .flex-control-nav.flex-control-thumbs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
        padding: 15px 0;
        margin: 0 -15px;
        padding-left: 15px;
        gap: 10px;
        white-space: nowrap;
    }

    .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
        height: 4px;
    }

    .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-track {
        background: transparent;
    }

    .flex-control-nav.flex-control-thumbs::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .flex-control-nav.flex-control-thumbs li {
        flex: 0 0 auto;
        width: 60px;
        margin: 0;
        padding: 0;
        float: none;
        display: inline-block;
    }

    .flex-control-nav.flex-control-thumbs img {
        width: 80px !important;
        height: auto !important;
        min-width: 80px;
        object-fit: contain;
        border: 2px solid transparent;
        border-radius: 8px;
        padding: 3px;
        /*background: #f8f8f8;*/
        transition: all 0.2s ease;
    }

    .flex-control-nav.flex-control-thumbs img:hover {
        border-color: #D6B46C;
        transform: scale(1.05);
    }

    .flex-control-nav.flex-control-thumbs .flex-active {
        border-color: #D6B46C;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Fix for Elementor/other conflicts */
    .elementor-page .flex-control-nav.flex-control-thumbs,
    .page-template-default .flex-control-nav.flex-control-thumbs {
        margin: 0;
        padding-left: 0;
    }
}