/* Цвета, шрифты и скругления существующего уведомления Tesand. */
#site-cookie-banner[hidden], #site-cookie-modal[hidden], [data-cookie-error][hidden], [data-cookie-embed-notice][hidden] { display: none !important; }
#site-cookie-banner, .site-cookie-dialog { box-sizing: border-box; color: #11431d; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.55; }
#site-cookie-banner { display: block; position: fixed; left: 22px; bottom: 22px; width: 520px; max-width: calc(100% - 44px); max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px); padding: 22px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #d8e2dc; border-radius: 16px; box-shadow: 0 12px 34px rgba(17,67,29,.16); z-index: 10000; }
#site-cookie-banner h2, .site-cookie-dialog h2 { margin: 0 0 12px; font-family: 'Exo 2', sans-serif; font-size: 23px; line-height: 1.25; font-weight: 600; }
#site-cookie-banner p, .site-cookie-dialog p { margin: 0 0 12px; }
#site-cookie-banner a, .site-cookie-dialog a, .form-privacy-note a { color: #176c36; text-decoration: underline; text-underline-offset: 3px; }
.site-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-cookie-actions .site-cookie-button { appearance: none; box-sizing: border-box; flex: 1 1 160px; min-height: 44px; height: auto; padding: 11px 16px; border: 1px solid #1f8946; border-radius: 10px; background: #1f8946; color: #fff; font: inherit; font-weight: 600; line-height: 1.35; cursor: pointer; white-space: normal; }
.site-cookie-actions .site-cookie-button:hover { background: #11431d; border-color: #11431d; }
.site-cookie-actions .site-cookie-button--settings { flex-basis: 100%; background: #fff; color: #11431d; }
.site-cookie-actions .site-cookie-button--settings:hover { background: #edf6ef; }
.site-cookie-modal { position: fixed; inset: 0; z-index: 1000000000; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.site-cookie-backdrop { position: absolute; inset: 0; background: rgba(6,28,14,.6); }
.site-cookie-dialog { position: relative; display: flex; flex-direction: column; width: 880px; max-width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: #fff; border: 1px solid #d8e2dc; border-radius: 16px; box-shadow: 0 16px 60px rgba(0,0,0,.2); overflow: hidden; }
.site-cookie-header { display: flex; flex-shrink: 0; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #d8e2dc; }
.site-cookie-header h2 { margin: 0; }
.site-cookie-close { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0; color: #11431d; background: #edf6ef; border: 0; border-radius: 8px; font-size: 30px; cursor: pointer; }
.site-cookie-body { min-height: 0; padding: 20px 24px; overflow-y: auto; overscroll-behavior: contain; }
.site-cookie-category { border-top: 1px solid #d8e2dc; margin-top: 22px; padding-top: 18px; }
.site-cookie-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 18px; font-weight: 600; cursor: pointer; }
.site-cookie-category-heading small { display: block; font-size: 12px; font-weight: 400; }
.site-cookie-category-heading input { appearance: none; flex-shrink: 0; width: 46px; height: 26px; margin: 9px 0; background: #c4cec7; border: 2px solid #66796b; border-radius: 20px; position: relative; cursor: pointer; }
.site-cookie-category-heading input::after { content: ''; position: absolute; width: 18px; height: 18px; top: 2px; left: 2px; background: #fff; border-radius: 50%; }
.site-cookie-category-heading input:checked { background: #1f8946; border-color: #176c36; }
.site-cookie-category-heading input:checked::after { left: 22px; }
.site-cookie-category-heading input:disabled { cursor: not-allowed; opacity: .75; }
.site-cookie-modal-actions { flex-shrink: 0; margin: 0; padding: 16px 24px; border-top: 1px solid #d8e2dc; background: #fff; }
.cookie-table-wrap { width: 100%; overflow-x: auto; margin: 14px 0; }
.cookie-table { width: 100%; border-collapse: collapse; color: #11431d; font-size: 12px; line-height: 1.5; text-align: left; }
.cookie-table caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.cookie-table td, .cookie-table th { padding: 10px; border: 1px solid #d8e2dc; vertical-align: top; overflow-wrap: anywhere; }
.cookie-table thead { background: #edf6ef; }
.cookie-table th[scope='row'] { font-weight: 500; }
.cookie-table small { display: block; margin-top: 4px; font-size: 11px; }
.site-cookie-error { color: #a01919; margin-top: 12px !important; }
.form-privacy-note { display: block; flex-basis: 100%; width: 100%; box-sizing: border-box; margin: 12px 0; font-size: 12px; line-height: 1.6; color: #36543e; font-weight: 400; }
.site-footer .site-footer__newsletter form, .register-page .register-form__bottom { flex-wrap: wrap; }
.site-footer__links .site-cookie-footer-link { display: block; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.site-cookie-dialog :focus-visible, #site-cookie-banner :focus-visible, .site-cookie-footer-link:focus-visible { outline: 3px solid #11431d; outline-offset: 3px; }
.site-cookie-embed { width: 100%; height: 100%; }
.site-cookie-embed-notice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 240px; height: 100%; padding: 24px; box-sizing: border-box; text-align: center; color: #11431d; background: #edf6ef; }
.site-cookie-embed-notice p { margin: 0; max-width: 540px; }
.site-cookie-embed-notice button { font: inherit; color: inherit; background: transparent; border: 0; padding: 8px; text-decoration: underline; cursor: pointer; }
@media (max-width: 959px) {
    #site-cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 18px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .site-cookie-modal { padding: 12px; }
    .site-cookie-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .site-cookie-header, .site-cookie-body, .site-cookie-modal-actions { padding: 14px 16px; }
    .site-cookie-actions { flex-direction: column; }
    .site-cookie-actions .site-cookie-button { width: 100%; flex: 0 0 auto; }
    .site-cookie-category-heading { font-size: 16px; }
    .cookie-table { min-width: 500px; }
}
@media (max-height: 520px) {
    .site-cookie-dialog { overflow-y: auto; }
    .site-cookie-body { overflow-y: visible; flex-shrink: 0; }
    .site-cookie-header, .site-cookie-modal-actions { padding-top: 8px; padding-bottom: 8px; }
}
