.tero-cookie-toggle[hidden],#tero-cookie-dialog:not([open]){display:none}
.tero-cookie-toggle{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));z-index:1000;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #777;border-radius:50%;background:#171817;color:#f3f2ec;cursor:pointer}
#tero-cookie-dialog{position:fixed;inset:0;box-sizing:border-box;margin:auto;width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #666;border-radius:8px;background:#202120;color:#f4f3ef;text-align:left;font:16px/1.45 AvenirNextCyr-Light,Arial,sans-serif;color-scheme:dark}
#tero-cookie-dialog::backdrop{background:rgba(0,0,0,.66)}
.tero-cookie-heading,.tero-cookie-actions{display:flex;align-items:center;gap:12px}
.tero-cookie-heading{justify-content:space-between}
#tero-cookie-dialog h2{margin:0;font-weight:600;font-family:inherit;font-size:23px;line-height:1.2}
#tero-cookie-dialog p{margin:12px 0;color:#deded7;font:inherit}
#tero-cookie-dialog a{color:inherit;text-decoration:underline}
.tero-cookie-option{padding-top:12px;margin-top:14px;border-top:1px solid #50514f}
.tero-cookie-option label{font-weight:600}.tero-cookie-option input{margin-right:8px}
#tero-cookie-dialog button{font:inherit;cursor:pointer;color:inherit}
#tero-cookie-dialog [data-settings-close]{border:0;background:transparent;width:40px;height:40px;padding:0;font-size:26px;line-height:1}
.tero-cookie-actions button,#tero-cookie-dialog [data-choice="selected"]{border:1px solid #a0a199;background:#2c2d2a;border-radius:4px;padding:8px 10px;min-height:42px}
.tero-cookie-actions button{flex:1}.tero-cookie-actions{margin-top:16px}
#tero-cookie-dialog [data-choice="selected"]{width:100%;margin-top:8px}
#tero-cookie-dialog [data-settings-status]{font-size:14px;color:#cacbc4}
.tero-cookie-toggle:focus-visible,#tero-cookie-dialog :focus-visible{outline:2px solid #eee;outline-offset:3px}

.tero-technical-storage{margin-top:18px;border-top:1px solid #50514f;padding-top:12px}
.tero-technical-storage summary{cursor:pointer;font-size:14px}
#tero-cookie-dialog .tero-technical-storage p{font-size:14px;line-height:1.5}
@media(max-width:480px){.tero-cookie-actions{flex-direction:column;align-items:stretch}.tero-cookie-actions button{width:100%;min-width:0}#tero-cookie-dialog{overflow-wrap:anywhere}#tero-cookie-dialog [data-settings-close]{flex-shrink:0}}

/* Compact privacy information, visually aligned with the portfolio. */
#tero-cookie-dialog.tero-privacy-note{width:min(520px,calc(100vw - 40px));padding:40px;border:0;border-radius:0;background:#101110;color:#efefeb;font-size:16px;line-height:1.6;box-shadow:0 18px 70px rgba(0,0,0,.18)}
#tero-cookie-dialog.tero-privacy-note::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(5px)}
.tero-privacy-note .tero-cookie-heading{align-items:flex-start;gap:24px}
#tero-cookie-dialog.tero-privacy-note h2{font-weight:400;font-size:30px;line-height:1.2;letter-spacing:-.025em}
#tero-cookie-dialog.tero-privacy-note [data-settings-close]{flex:0 0 32px;width:32px;height:32px;font-size:25px;color:#aaa;transition:color .15s}
#tero-cookie-dialog.tero-privacy-note [data-settings-close]:hover{color:#fff}
#tero-cookie-dialog.tero-privacy-note .tero-privacy-intro{margin:22px 0 28px;color:#bcbeba;font-size:16px;line-height:1.6}
.tero-privacy-note .tero-technical-info{border-top:1px solid #353733}
.tero-privacy-note .tero-technical-info summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 0;cursor:pointer;list-style:none;color:#e4e5df;font-size:15px;line-height:1.5}
.tero-privacy-note .tero-technical-info summary::-webkit-details-marker{display:none}
.tero-privacy-note .tero-technical-info summary::after{content:'+';font-size:22px;font-weight:300;line-height:1;flex-shrink:0;color:#aaa}
.tero-privacy-note .tero-technical-info[open] summary::after{content:'−'}
.tero-privacy-details{padding-top:10px}
#tero-cookie-dialog .tero-privacy-details p{margin:14px 0 0;color:#bcbeba;font-size:14px;line-height:1.65}
@media(max-width:600px){#tero-cookie-dialog.tero-privacy-note{width:calc(100vw - 32px);padding:28px 24px}#tero-cookie-dialog.tero-privacy-note h2{font-size:26px}.tero-privacy-note .tero-cookie-heading{gap:12px}}
