/* 
 Theme Name:   hello-child
 Theme URI:    
 Description:  
 Author:       taw-admin
 Author URI:   http://tsm.test
 Template:     hello-elementor
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

#account_company_logo{
    border: 1px solid #666;
    color: transparent;
    
}
#account_company_logo::-webkit-file-upload-button {
display: none;
}
.placeholder-image{
    position: absolute;
    top: 50%;
    right: 50%;
    z-index: -1;
    opacity: 0.2;
}
#colorCode{
    display: none;
    position: absolute;
    top: 50%;
    right: 40%;
    color: black;
    z-index: 2;
}
.placeholder-edit{
position: absolute;
top: 34%;
right: 2%;
z-index: 2;
    }

        .placeholder-edit-cl{
    position: absolute;
        top: 34%;
    right: 2%;
    z-index: 2;
        }
.placeholder-trash{
padding: 3px 5px;
    background: white;
position: absolute;
color: black;
border-radius: 10px;
bottom: 5%;
right: 2%;
z-index: 2;
}
.placeholder-reset-cl{
bottom: 10%;
right: 2%;
z-index: 2;
}
.accounts-icons{
    padding: 3px 5px;
    background: white;
position: absolute;
color: black;
border-radius: 10px;
}

    input[type="color"] {
width: 100%;
height: 100%;
-webkit-appearance: none;
appearance: none;
border: 1px solid #666;
padding: 0; /* Remove any padding */
margin: 0; /* Remove any margin */
background: transparent; /* Set a transparent background */
}
input[type="color"]::-webkit-color-swatch {
border: none;
    padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
border: none;
padding: 0;
}
.popup_for_delete {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;

}

.company_logo_delete_popup_main_container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index:1000000000000;
}

.company_logo_delete_popup_container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.delete_alert_btns{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.delete_alert_btns span{
    cursor: pointer;

    border-radius: 20px;
    padding: 5px 15px;

}
.delete_alert_title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.trashIcon{
    background: #dc262630;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 7px;
}
    .colorPickerContainer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000000000000; /* Ensure it's on top of other elements */
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    }

    .color-container {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: #ffffff;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    }
    .color-container input{
        border: none;
        outline: none;
        width: 100%;

    }

    .config {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .config-title {
        text-align: center;
        padding: 15px 0 0 0;
        font-family: sans-serif;
        font-weight: bold;
    }

    .selected-color-text {
        text-align: center;
        font-family: monospace;
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .selected-color,
    .saved-color {
        height: 40px;
        border: 1px solid #000000;
        border-radius: 3px;
        cursor: pointer;
        border-radius: 50%;
        width: 40px;
    }

    .saved-color:not(:last-of-type) {
        margin-bottom: 5px;
    }

/* ── Compact nav for mid-range desktop (1025–1279px) ── */
@media only screen and (min-width: 1025px) and (max-width: 1279px) {
  #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link {
    font-size: 13px !important;
    padding: 0 6px !important;
    line-height: 55px !important;
    height: 55px !important;
  }
}

@media only screen and (max-width: 1024px) {
  #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item {
    margin: 10px !important;
  }

    #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link {
            border-top: none !important;  /* Remove top border */
    border-bottom: 2px solid #B20014 !important; 
        line-height: 10px !important;
            padding: 30px 20px !important;
                text-decoration: none !important; /* Remove any underline */

    }
    #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-megamenu > ul.mega-sub-menu {
   box-shadow: none !important; /* Remove shadow */

    }
      #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-megamenu > ul.mega-sub-menu {
         padding: 20px !important;
      }
    
    #mega-menu-wrap-menu-1 .mega-menu-toggle + #mega-menu-menu-1 {
   
    width: 100%;
    max-width:none !important;
    height: auto !important;
    max-height: 100vh;
    top: none !important;
    margin-top: 8px !important;
  }
  #mega-menu-wrap-menu-1 .mega-menu-toggle + #mega-menu-menu-1 {
    /* left: -300px; */
    left: -1550px !important;

  }
}

@media only screen and (max-width: 767px) {

    /* ── Top bar: single row, vertically centred ── */
    .elementor-nav-menu--layout-horizontal ul#menu-1-eebe9cc {
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    ul#menu-1-eebe9cc > li {
        margin: 0 !important;
        order: 0 !important;
    }

    ul#menu-1-eebe9cc > li > a {
        font-size: 11px !important;
        padding: 4px 6px !important;
        white-space: nowrap;
        line-height: 1.3 !important;
    }

    /* Keep Catalogue hidden */
    ul#menu-1-eebe9cc > .menu-item-47829 {
        display: none !important;
    }

    /* ── Logged-out layout: Login left, lang switchers right ── */
    ul#menu-1-eebe9cc > .menu-item-23515 {
        margin-right: auto !important;
    }

    /* ── Logged-in layout ── */
    /* Order: Logout(1) → Download Pricelist(2) → My Account(3) → flag(4) → Google(5) */
    .logged-in .elementor-nav-menu--layout-horizontal ul#menu-1-eebe9cc {
        justify-content: space-between !important;
        gap: 4px !important;
    }

    .logged-in ul#menu-1-eebe9cc > .menu-item-23515 {
        order: -1 !important;
        margin-right: 0 !important;
    }

    .logged-in ul#menu-1-eebe9cc > li > a {
        padding: 4px 3px !important;
    }

    /* Download Pricelist — tighter padding, hide icon */
    .logged-in ul#menu-1-eebe9cc > .menu-item-ssp-pricelist > a.ssp-pricelist-btn {
        padding: 4px 7px !important;
    }

    ul#menu-1-eebe9cc > .menu-item-ssp-pricelist > a > .fas {
        display: none !important;
    }

    /* Google Translate — shrinkable when logged-in to handle loading state overflow */
    ul#menu-1-eebe9cc > .menu-item-google-translate {
        flex-shrink: 0;
    }

    .logged-in ul#menu-1-eebe9cc > .menu-item-google-translate {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    /* Google Translate select — smaller font, G icon hidden, dropdown arrow visible */
    .goog-te-gadget .goog-te-combo {
        font-size: 10px !important;
        height: 22px !important;
        padding: 2px 18px 2px 4px !important;
        max-width: 90px !important;
        box-sizing: border-box !important;
    }

    .goog-te-gadget > span,
    .goog-te-gadget a,
    .goog-te-gadget img {
        display: none !important;
    }

    /* ── WPML switcher: flag only ── */
    .menu-item-type-wpml_ls_menu_item {
        position: relative;
    }

    .menu-item-type-wpml_ls_menu_item > a > .wpml-ls-display {
        display: none !important;
    }

    .menu-item-type-wpml_ls_menu_item > a > .wpml-ls-flag {
        margin-right: 0 !important;
    }

    /* Make the Swedish flag in dropdown match the main flag size */
    .menu-item-type-wpml_ls_menu_item .sub-menu .wpml-ls-flag {
        width: 18px !important;
        height: 12px !important;
        max-width: none !important;
    }

    .menu-item-type-wpml_ls_menu_item > .sub-menu,
    .menu-item-type-wpml_ls_menu_item > .elementor-nav-menu--dropdown {
        left: 0 !important;
        right: auto !important;
        top: calc(100% + 6px) !important;
        margin-top: 0 !important;
        min-width: 0 !important;
        width: fit-content !important;
        z-index: 9999;
    }

    .menu-item-type-wpml_ls_menu_item > .sub-menu a,
    .menu-item-type-wpml_ls_menu_item > .elementor-nav-menu--dropdown a {
        white-space: nowrap;
  }
}