/* Cookie Consent — banner + modal. Vezi includes/cookie_consent_ui.php pt. markup. */
.cookie-consent-line{position:fixed;left:0;right:0;bottom:0;z-index:9998;background:#fff;box-shadow:0 -4px 24px rgba(0,0,0,.12);border-top:1px solid #eee;padding:18px 20px}
.cookie-consent-line__inner{max-width:1400px;margin:0 auto;display:flex;align-items:center;gap:24px}
.cookie-consent__icon{flex:0 0 auto;color:#000;width:50px;height:50px}
.cookie-consent-line__content{flex:1 1 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cookie-consent-line__title{font-size:1rem;font-weight:700;margin:0 0 4px 0;color:#181818}
.cookie-consent-line__text{font-size:.9rem;color:#555;margin:0;line-height:1.4}
.cookie-consent-line__actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.cookie-consent-line__links{display:flex;align-items:center;gap:6px;font-size:.85rem}
.cookie-consent-line__links a{color:#000;text-decoration:underline}
.cookie-consent-line__links span{color:#999}
.cookie-consent-line__buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cookie-consent__customize,.cookie-consent__accept{border:1.5px solid #000;padding:8px 18px;font-size:.9rem;font-weight:600;cursor:pointer;border-radius:4px;transition:opacity .15s,background .15s;font-family:inherit}
.cookie-consent__customize{background:#fff;color:#000}
.cookie-consent__customize:hover{background:#f0f0f0}
.cookie-consent__accept{background:#000;color:#fff}
.cookie-consent__accept:hover{background:#333}
@media (max-width:768px){
   .cookie-consent-line{padding:14px 12px}
   .cookie-consent-line__inner{flex-direction:column;align-items:flex-start;gap:14px}
   .cookie-consent-line__content{flex-direction:column;align-items:flex-start;gap:12px}
   .cookie-consent-line__actions{flex-direction:column;align-items:stretch;width:100%;gap:12px}
   .cookie-consent-line__buttons{flex-direction:column;align-items:stretch;width:100%}
   .cookie-consent__customize,.cookie-consent__accept{width:100%}
   .cookie-consent__icon{width:40px;height:40px;align-self:flex-start}
}
.cookie-consent-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.cookie-consent-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.cookie-consent-modal__card{position:relative;z-index:1;background:#fff;max-width:640px;width:100%;max-height:90vh;overflow-y:auto;padding:28px;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.cookie-consent__close{position:absolute;top:12px;right:12px;background:transparent;border:0;padding:8px;cursor:pointer;color:#666;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .15s,color .15s;z-index:2}
.cookie-consent__close:hover{background:#f0f0f0;color:#000}
.cookie-consent__title{font-size:1.4rem;font-weight:700;margin:0 0 12px 0;color:#181818}
.cookie-consent__text{font-size:.9rem;color:#555;margin:0 0 20px 0;line-height:1.5}
.cookie-consent__text a{color:#000;text-decoration:underline}
.cookie-consent__options{display:flex;flex-direction:column;gap:10px}
.cookie-consent__category{background:#fff;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;transition:border-color .15s}
.cookie-consent__category.is-open{border-color:#c9c9c9}
.cookie-consent__cat-row{display:flex;align-items:flex-start;gap:12px;padding:14px 16px}
.cookie-consent__cat-expander{background:transparent;border:0;padding:6px;margin:-4px 0 0 -6px;cursor:pointer;color:#666;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .15s,transform .2s;flex:0 0 auto;width:26px;height:26px}
.cookie-consent__cat-expander:hover{background:#f0f0f0}
.cookie-consent__cat-expander--empty{cursor:default;pointer-events:none}
.cookie-consent__cat-expander--empty:hover{background:transparent}
.cookie-consent__category.is-open .cookie-consent__cat-expander{transform:rotate(180deg)}
.cookie-consent__cat-info{flex:1 1 auto;min-width:0}
.cookie-consent__option-title{font-size:1rem;font-weight:700;margin:0 0 4px 0;color:#181818;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.cookie-consent__badge{font-size:.78rem;font-weight:500;color:#888}
.cookie-consent__option-desc{font-size:.85rem;color:#555;line-height:1.4;margin:0 0 4px 0}
.cookie-consent__services-count{font-size:.78rem;color:#0066cc;font-weight:600;text-transform:lowercase}
.cookie-consent__services{background:#fafafa;border-top:1px solid #eee;padding:4px 16px 6px 40px}
.cookie-consent__services[hidden]{display:none}
.cookie-consent__service{padding:12px 0;border-bottom:1px solid #eee}
.cookie-consent__service:last-child{border-bottom:0}
.cookie-consent__service-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.cookie-consent__service-info{flex:1 1 auto;min-width:0}
.cookie-consent__service-name{font-size:.95rem;font-weight:600;margin:0;color:#181818}
.cookie-consent__service-desc{font-size:.82rem;color:#555;line-height:1.4;margin:0 0 8px 0}
.cookie-consent__service-meta{font-size:.78rem;color:#666;display:flex;flex-direction:column;gap:2px}
.cookie-consent__meta-label{font-weight:600;color:#333}
.cookie-consent__service-meta code{background:#eee;padding:1px 6px;border-radius:3px;font-size:.75rem;color:#000;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.cookie-consent__switch{position:relative;display:inline-block;width:44px;height:24px;flex:0 0 auto;margin-top:2px}
.cookie-consent__switch--sm{width:38px;height:20px}
.cookie-consent__switch input{opacity:0;width:0;height:0}
.cookie-consent__slider{position:absolute;cursor:pointer;inset:0;background:#ccc;transition:.3s;border-radius:24px}
.cookie-consent__slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;transition:.3s;border-radius:50%}
.cookie-consent__switch--sm .cookie-consent__slider:before{height:14px;width:14px;left:3px;bottom:3px}
.cookie-consent__switch input:checked + .cookie-consent__slider{background:#000}
.cookie-consent__switch input:checked + .cookie-consent__slider:before{transform:translateX(20px)}
.cookie-consent__switch--sm input:checked + .cookie-consent__slider:before{transform:translateX(18px)}
.cookie-consent__switch input:disabled + .cookie-consent__slider{background:#666;cursor:not-allowed}
.cookie-consent__switch input:indeterminate + .cookie-consent__slider{background:#666}
.cookie-consent__switch input:indeterminate + .cookie-consent__slider:before{transform:translateX(10px)}
.cookie-consent__switch--sm input:indeterminate + .cookie-consent__slider:before{transform:translateX(9px)}
.cookie-consent__actions{display:flex;gap:10px;margin-top:20px;justify-content:flex-end}
@media (max-width:576px){
   .cookie-consent-modal__card{padding:20px}
   .cookie-consent__actions{flex-direction:column}
   .cookie-consent__actions button{width:100%}
}
/* Dark mode — activ pe paginile care suportă toggle-ul de temă (data-theme="dark") */
[data-theme="dark"] .cookie-consent-line{background:#151c2c;border-top-color:rgba(255,255,255,.1);box-shadow:0 -4px 24px rgba(0,0,0,.4)}
[data-theme="dark"] .cookie-consent__icon{color:#e2e8f0}
[data-theme="dark"] .cookie-consent-line__title{color:#e2e8f0}
[data-theme="dark"] .cookie-consent-line__text{color:#94a3b8}
[data-theme="dark"] .cookie-consent-line__links a{color:#e2e8f0}
[data-theme="dark"] .cookie-consent-line__links span{color:#64748b}
[data-theme="dark"] .cookie-consent__customize{background:transparent;color:#e2e8f0;border-color:rgba(255,255,255,.3)}
[data-theme="dark"] .cookie-consent__customize:hover{background:rgba(255,255,255,.08)}
[data-theme="dark"] .cookie-consent__accept{background:#e2e8f0;color:#0b0f1a;border-color:#e2e8f0}
[data-theme="dark"] .cookie-consent__accept:hover{background:#cbd5e1}
[data-theme="dark"] .cookie-consent-modal__card{background:#151c2c;box-shadow:0 12px 40px rgba(0,0,0,.6)}
[data-theme="dark"] .cookie-consent__close{color:#94a3b8}
[data-theme="dark"] .cookie-consent__close:hover{background:rgba(255,255,255,.08);color:#e2e8f0}
[data-theme="dark"] .cookie-consent__title{color:#e2e8f0}
[data-theme="dark"] .cookie-consent__text{color:#94a3b8}
[data-theme="dark"] .cookie-consent__text a{color:#e2e8f0}
[data-theme="dark"] .cookie-consent__category{background:#151c2c;border-color:rgba(255,255,255,.1)}
[data-theme="dark"] .cookie-consent__category.is-open{border-color:rgba(255,255,255,.25)}
[data-theme="dark"] .cookie-consent__cat-expander{color:#94a3b8}
[data-theme="dark"] .cookie-consent__cat-expander:hover{background:rgba(255,255,255,.08)}
[data-theme="dark"] .cookie-consent__option-title{color:#e2e8f0}
[data-theme="dark"] .cookie-consent__badge{color:#64748b}
[data-theme="dark"] .cookie-consent__option-desc{color:#94a3b8}
[data-theme="dark"] .cookie-consent__services{background:#0f1626;border-top-color:rgba(255,255,255,.1)}
[data-theme="dark"] .cookie-consent__service{border-bottom-color:rgba(255,255,255,.1)}
[data-theme="dark"] .cookie-consent__service-name{color:#e2e8f0}
[data-theme="dark"] .cookie-consent__service-desc{color:#94a3b8}
[data-theme="dark"] .cookie-consent__service-meta{color:#94a3b8}
[data-theme="dark"] .cookie-consent__meta-label{color:#cbd5e1}
[data-theme="dark"] .cookie-consent__service-meta code{background:rgba(255,255,255,.1);color:#e2e8f0}
[data-theme="dark"] .cookie-consent__slider{background:rgba(255,255,255,.2)}
[data-theme="dark"] .cookie-consent__switch input:checked + .cookie-consent__slider{background:#3b82f6}
