/* Custom Child Theme CSS */

/* Mobil - Dimensiunea "care a fost bine" (180px) */
.home-action .head-line .h-img {
    height: 180px !important;
    width: 180px !important;
    background-size: 170% !important;
    background-position: center center !important;
    margin: 0 auto !important;
}

/* Desktop - Dimensiuni mărite + Zoom */
@media screen and (min-width: 768px) {
    .home-action .head-line .h-img {
        height: 200px !important;
        width: 200px !important;
        background-size: 190% !important;
    }
}

/* Ajustare fundal Search - Poziționare */
#main-search {
    /* Prima valoare (center) e orizontală, a doua (20%) e verticală.
       0% = Poza e sus de tot.
       50% = Poza e la mijloc.
       100% = Poza e jos de tot.
       Modifică procentul pentru a "ridica" sau "coborî" imaginea. */
    background-position: center 16% !important;
}


/* ----------------------------------------------------------- */
/* 3. ASCUNDERE AUTOMATĂ ALERTE (după 5 secunde) */
/* ----------------------------------------------------------- */
/* Se aplică pentru containerele de flash messages */
#flash-message .flashmessage,
.flashmessage,
.flash-message,
.js-flash-message {
    animation: fadeOutAlert 1s ease-in-out 5s forwards;
    pointer-events: auto !important;
    position: relative;
    z-index: 9999;
}

#flashbox {
    position: fixed !important;
    top: 70px !important;
    right: 16px !important;
    left: auto !important;
    width: auto !important;
    max-width: 400px !important;
    height: auto !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

#flashbox .wrap,
#flashbox .wrap2 {
    position: static !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

#flashbox .flashmessage {
    pointer-events: auto !important;
}

@keyframes fadeOutAlert {
    0% {
        opacity: 1;
        max-height: 100px;
        /* Sau o înălțime aproximativă */
        margin-bottom: 10px;
    }

    100% {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
        overflow: hidden;
        visibility: hidden;
    }
}


/* ----------------------------------------------------------- */
/* 5. PREMIUM LEGAL PAGES STYLES (Update-proof)               */
/* ----------------------------------------------------------- */
.premium-legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2d3436;
    line-height: 1.8;
}

.legal-header {
    border-bottom: 2px solid #f1f2f6;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--mb-color-primary, #0984e3);
    margin-bottom: 10px;
}

.last-updated {
    font-style: italic;
    color: var(--mb-color4, #636e72);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--mb-color2, #2d3436);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--mb-color-primary, #0984e3);
}

.legal-content p,
.legal-content li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--mb-color3, #2d3436);
}

.legal-content ul {
    list-style-type: none;
    padding-left: 0;
}

.legal-content li::before {
    content: "•";
    color: var(--mb-color-primary, #0984e3);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

@media (max-width: 768px) {
    .premium-legal-container {
        padding: 30px;
        margin: 20px 10px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }
}

/* ----------------------------------------------------------- */
/* 8. BLOG SIDEBAR CUSTOMIZATION                              */
/* ----------------------------------------------------------- */

/* Hide 'Add new article' button in blog sidebar */
.blg-side-block.blg-add-post {
    display: none !important;
}

/* Remove Caps Lock (Uppercase) from blog sidebar headers */
.blg-side-header {
    text-transform: none !important;
    font-weight: 700;
}

/* Fix pentru footer flotant pe pagina Empty Companies */
.content.loc-custom.sec-bpr-home {
    min-height: 60vh;
}

/* Fix: Google login button styling pe pagina login/register */
.box .social {
    margin-bottom: 20px;
    text-align: center;
}

.box .social a.google {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 12px 24px;
    background: #fff !important;
    color: #444 !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    border: 1px solid #dadce0 !important;
    font-weight: 500;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 15px;
    transition: background-color .2s, box-shadow .2s;
    cursor: pointer;
    box-sizing: border-box;
}

.box .social a.google:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.30);
    color: #202124 !important;
}

.box .social a.google i {
    font-size: 18px;
    color: #333;
}

/* Fix: social media footer pe pagina contact (protejat de update tema) */
body.pre-account footer .social a {
    border: none !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: #d4d4d4 !important;
    background: transparent !important;
    display: block !important;
    height: auto !important;
    border-radius: 0 !important;
    line-height: 24px !important;
    margin: 0 0 12px 0 !important;
}

body.pre-account footer .social a:hover {
    box-shadow: none !important;
    color: #d299ff !important;
}

body.pre-account footer .social a.facebook:not(.fjl-button) {
    color: #d4d4d4 !important;
    border-color: transparent !important;
}
/* Fix overlap text in search list cards */
.products.list .simple-prod .top-wrap {
    display: none !important;
}

.mo-button-new {
  background: #ff2d46 !important;
  border: 1px solid #ff2d46 !important;
  color: #fff !important;
}

.mo-button-new:hover {
  background: #e4253d !important;
  border-color: #e4253d !important;
}

.pre-account > .content > section.container:after,
.pre-account.contact > .content > section.container:after {
  background-image: none !important;
}

/* Header icons (locatie + alerte) pe verde */
header .links a.location.mini-btn i,
header .links a.location.mini-btn svg,
header .links a.alerts.mini-btn i,
header .links a.alerts.mini-btn svg {
  color: #0F876E !important;
  fill: #0F876E !important;
}

/* Sa ramana verde si in dark mode */
html[mode="dark"] header .links a.location.mini-btn i,
html[mode="dark"] header .links a.location.mini-btn svg,
html[mode="dark"] header .links a.alerts.mini-btn i,
html[mode="dark"] header .links a.alerts.mini-btn svg {
  color: #0F876E !important;
  fill: #0F876E !important;
}

