/*!
 * Bieffe Co - banner e pannello consenso cookie.
 */
.bf-cookie[hidden], .bf-cookie [hidden] { display: none !important; }

.bf-cookie__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
    padding: 16px 56px 16px 24px;
    background: #ffffff; color: #333333;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .15);
    font-size: 13px; line-height: 1.6;
}
.bf-cookie__message { flex: 1 1 480px; margin: 0; }
.bf-cookie__message a { text-decoration: underline; }
.bf-cookie__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-cookie__close {
    position: absolute; top: 6px; right: 10px;
    width: 34px; height: 34px; padding: 0;
    border: 0; background: none; color: #555; font-size: 26px; line-height: 34px; cursor: pointer;
}
.bf-cookie__close:hover { color: #000; }

.bf-cookie__btn {
    display: inline-block; padding: 8px 16px;
    border: 1px solid #1d71b8; border-radius: 3px;
    background: #ffffff; color: #1d71b8;
    font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; cursor: pointer;
}
.bf-cookie__btn:hover, .bf-cookie__btn:focus-visible { background: #eef5fb; color: #1d71b8; }
.bf-cookie__btn--primary { background: #1d71b8; color: #ffffff; }
.bf-cookie__btn--primary:hover, .bf-cookie__btn--primary:focus-visible { background: #165a93; color: #ffffff; }
.bf-cookie__btn--ghost { border-color: transparent; text-decoration: underline; }

.bf-cookie__modal {
    position: fixed; inset: 0; z-index: 99995;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .55); padding: 16px;
}
.bf-cookie__dialog {
    position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto;
    background: #ffffff; color: #000000; padding: 28px 28px 20px;
    border-radius: 4px; font-size: 14px;
}
.bf-cookie__dialog h4 { margin: 0 30px 12px 0; }
.bf-cookie__overview { font-size: 13px; color: #444; }
.bf-cookie__modal-close {
    position: absolute; top: 8px; right: 12px; width: 34px; height: 34px;
    border: 0; background: none; font-size: 28px; line-height: 34px; cursor: pointer;
}
.bf-cookie__categories { list-style: none; margin: 18px 0; padding: 0; }
.bf-cookie__category { background: #f2f2f2; margin-bottom: 6px; border-radius: 3px; }
.bf-cookie__category details > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600;
}
.bf-cookie__category details > summary::-webkit-details-marker { display: none; }
.bf-cookie__category details > summary::before {
    content: ""; width: 7px; height: 7px; margin-right: 4px;
    border-right: 1px solid #000; border-bottom: 1px solid #000; transform: rotate(-45deg);
    transition: transform .2s; flex: 0 0 auto;
}
.bf-cookie__category details[open] > summary::before { transform: rotate(45deg); }
.bf-cookie__category-title { flex: 1 1 auto; }
.bf-cookie__category details > p { margin: 0; padding: 0 16px 14px 32px; font-size: 13px; color: #333; }
.bf-cookie__always { font-size: 12px; font-weight: 600; color: #28a745; }

.bf-cookie__switch { position: relative; display: inline-block; width: 46px; height: 24px; margin: 0; flex: 0 0 auto; }
.bf-cookie__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.bf-cookie__slider { position: absolute; inset: 0; background: #e3e1e8; border-radius: 24px; transition: background .2s; }
.bf-cookie__slider::before {
    content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
    background: #fff; border-radius: 50%; transition: transform .2s;
}
.bf-cookie__switch input:checked + .bf-cookie__slider { background: #28a745; }
.bf-cookie__switch input:checked + .bf-cookie__slider::before { transform: translateX(22px); }
.bf-cookie__switch input:focus-visible + .bf-cookie__slider { outline: 2px solid #1d71b8; outline-offset: 2px; }
.bf-cookie__modal-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

@media (max-width: 600px) {
    .bf-cookie__bar { padding: 14px 44px 14px 14px; }
    .bf-cookie__buttons { width: 100%; }
    .bf-cookie__buttons .bf-cookie__btn { flex: 1 1 auto; text-align: center; }
}
