/* Cookie modal click fix — loaded after the minified bundle so browsers
   pick it up even when design/dbch/*.css is cached. Wrapper used to be
   position:relative with height 0 (fixed child), while ::before covered
   the whole viewport and stole clicks from Accept / Personalizează. */

#cookie-box-wrapper.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-height: none;
    opacity: 1;
    z-index: 999996;
    pointer-events: auto;
}

#cookie-box-wrapper.active::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3);
    z-index: 0;
    pointer-events: none;
}

#cookie-box-wrapper.active #cookie-box,
.cookie-v2.active #cookie-box {
    position: relative !important;
    z-index: 1;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    pointer-events: auto;
    margin: 10px auto;
}

#cookie-box-buttons button {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
