/* ========================================================= COOKIE BOX — MODERN ========================================================= */ .box-cookies, .box-cookies * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .hidden { display: none !important; } /* ========================================================= ОСНОВНОЙ КОНТЕЙНЕР ========================================================= */ .box-cookies { position: fixed; z-index: 9999; left: 0; bottom: 0; right: 0; width: 100%; margin: 0; padding: 0; border: 0; display: none; } .box-cookies.active { display: block; } /* Позиции */ .box-cookies.top { top: 0; bottom: auto; } .box-cookies.bottom { bottom: 0; top: auto; } .box-cookies.left { bottom: 0; left: 0; right: auto; top: auto; width: 390px; } .box-cookies.right { bottom: 0; left: auto; right: 0; top: auto; width: 390px; } /* ========================================================= ОСНОВНАЯ КАРТОЧКА ========================================================= */ .box-cookies .box-cookies-wrapper { position: relative; width: calc(100% - 30px); max-width: 920px; margin: 15px auto; padding: 18px 20px; display: flex; align-items: center; gap: 18px; color: #2c3249; background: #ffffff; border: 1px solid rgba(44, 50, 73, 0.08); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05); font-size: 14px; animation: cookieShow .35s ease-out; } /* Боковые варианты */ .box-cookies.left .box-cookies-wrapper, .box-cookies.right .box-cookies-wrapper { width: calc(100% - 30px); max-width: 350px; display: block; margin-bottom: 15px; text-align: left; } /* ========================================================= ОСНОВНОЙ КОНТЕНТ ========================================================= */ .box-cookie-main { display: flex; align-items: center; flex: 1; min-width: 0; } /* ========================================================= ИКОНКА ========================================================= */ .box-cookie-icon { width: 52px; height: 52px; flex: 0 0 52px; margin-right: 14px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #fff7d6; overflow: hidden; } .box-cookie-icon img { display: block; max-width: 42px; max-height: 42px; margin: 0; } .box-cookie-icon-default { font-size: 27px; } /* Боковой вариант */ .box-cookies.left .box-cookie-main, .box-cookies.right .box-cookie-main { display: block; } .box-cookies.left .box-cookie-icon, .box-cookies.right .box-cookie-icon { margin: 0 0 12px 0; } /* ========================================================= ТЕКСТ ========================================================= */ .box-cookie-info { min-width: 0; } .box-cookie-title { padding: 0 !important; margin: 0 0 6px 0 !important; font-size: 17px !important; line-height: 1.25 !important; font-weight: 700; color: inherit; } .box-cookie-text { font-size: 13px; line-height: 1.5; opacity: .78; } .box-cookie-text p { margin: 0 0 5px 0; } .box-cookie-text p:last-child { margin-bottom: 0; } .box-cookie-text a { color: inherit; text-decoration: underline; } /* ========================================================= КНОПКИ ========================================================= */ .box-cookie-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-shrink: 0; } .box-cookies a.tap { display: inline-flex; align-items: center; justify-content: center; min-width: auto; height: 40px; padding: 0 16px; margin: 0; border: 1px solid rgba(44, 50, 73, .13); border-radius: 10px; color: #2c3249; background: #ffffff; text-decoration: none; text-align: center; font-size: 13px; font-weight: 600; transition: background .2s ease, border-color .2s ease, transform .15s ease; } .box-cookies a.tap:hover { text-decoration: none; background: #f5f6f8; border-color: rgba(44, 50, 73, .25); } .box-cookies a.tap:active { transform: scale(.97); } /* Принять */ .box-cookies .box-cookie-allow { color: #ffffff; background: #ffc107; border-color: #ffc107; font-weight: 700; } .box-cookies .box-cookie-allow:hover { color: #ffffff; background: #e5a900; border-color: #e5a900; } /* Настроить */ .box-cookies .box-cookie-settings { background: #f5f6f8; } /* Дополнительная кнопка */ .box-cookies .box-cookie-more { background: transparent; } /* Боковой вариант */ .box-cookies.left .box-cookie-buttons, .box-cookies.right .box-cookie-buttons { margin-top: 16px; justify-content: stretch; } .box-cookies.left .box-cookie-buttons, .box-cookies.right .box-cookie-buttons { flex-wrap: wrap; } .box-cookies.left .box-cookie-buttons .tap, .box-cookies.right .box-cookie-buttons .tap { flex: 1; } /* ========================================================= ПАНЕЛЬ НАСТРОЕК ========================================================= */ .box-cookie-settings-panel { display: none; width: 100%; margin-top: 17px; padding-top: 17px; border-top: 1px solid rgba(44, 50, 73, .10); } .box-cookie-settings-panel.active { display: block; animation: cookiePanelShow .25s ease-out; } /* При открытых настройках */ .box-cookies.cookie-settings-open .box-cookie-main { display: none; } .box-cookies.cookie-settings-open .box-cookie-buttons { display: none; } .box-cookies.cookie-settings-open .box-cookie-settings-panel { display: block; } /* Заголовок настроек */ .box-cookie-settings-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; } .box-cookie-settings-header strong { display: block; font-size: 16px; line-height: 1.3; } .box-cookie-settings-header span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; opacity: .65; } /* Кнопка закрытия */ .box-cookie-settings-close { width: 30px; height: 30px; flex: 0 0 30px; margin: -4px -4px 0 10px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 23px; line-height: 30px; cursor: pointer; opacity: .55; transition: background .2s ease, opacity .2s ease; } .box-cookie-settings-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); } /* ========================================================= ОПЦИИ COOKIE ========================================================= */ .cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(44, 50, 73, .07); } .cookie-option:last-of-type { border-bottom: 0; } .cookie-option-info { min-width: 0; } .cookie-option-info strong { display: block; margin-bottom: 3px; font-size: 13px; line-height: 1.3; } .cookie-option-info span { display: block; max-width: 620px; font-size: 11px; line-height: 1.4; opacity: .62; } /* ========================================================= ПЕРЕКЛЮЧАТЕЛЬ ========================================================= */ .cookie-switch { position: relative; display: block; width: 43px; height: 24px; flex: 0 0 43px; cursor: pointer; } .cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; } .cookie-switch span { position: absolute; left: 0; top: 0; width: 43px; height: 24px; border-radius: 20px; background: #d7dbe1; transition: background .2s ease; } .cookie-switch span:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s ease; } .cookie-switch input:checked + span { background: #ffc107; } .cookie-switch input:checked + span:before { transform: translateX(19px); } /* Заблокированный переключатель */ .cookie-switch.is-disabled { opacity: .7; cursor: default; } .cookie-switch.is-disabled span { background: #ffc107; } .cookie-switch.is-disabled span:before { transform: translateX(19px); } /* ========================================================= КНОПКИ НАСТРОЕК ========================================================= */ .box-cookie-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 15px; } .box-cookie-settings-actions button { height: 39px; padding: 0 15px; border-radius: 10px; border: 1px solid rgba(44, 50, 73, .12); background: #f5f6f8; color: #2c3249; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s ease, transform .15s ease; } .box-cookie-settings-actions button:hover { background: #e9ebef; } .box-cookie-settings-actions button:active { transform: scale(.97); } .box-cookie-settings-actions .box-cookie-save { color: #ffffff; background: #ffc107; border-color: #ffc107; } .box-cookie-settings-actions .box-cookie-save:hover { background: #e5a900; } /* ========================================================= LIGHT ========================================================= */ .box-cookies.light .box-cookies-wrapper { background: #ffffff; color: #2c3249; } /* ========================================================= DARK ========================================================= */ .box-cookies.dark .box-cookies-wrapper { background: #252a3d; color: #eeeeee; border-color: rgba(255,255,255,.08); box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2); } .box-cookies.dark .box-cookie-icon { background: rgba(255,193,7,.12); } .box-cookies.dark .box-cookie-text { opacity: .75; } .box-cookies.dark a.tap { color: #eeeeee; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); } .box-cookies.dark a.tap:hover { background: rgba(255,255,255,.12); } .box-cookies.dark .box-cookie-allow { color: #222222; background: #ffc107; border-color: #ffc107; } .box-cookies.dark .box-cookie-settings-panel { border-color: rgba(255,255,255,.1); } .box-cookies.dark .cookie-option { border-color: rgba(255,255,255,.08); } .box-cookies.dark .box-cookie-settings-actions button { color: #eeeeee; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); } /* ========================================================= МОБИЛЬНАЯ ВЕРСИЯ ========================================================= */ @media (max-width: 767px) { .box-cookies { left: 0; right: 0; width: 100%; } .box-cookies.left, .box-cookies.right { width: 100%; left: 0; right: 0; } .box-cookies .box-cookies-wrapper, .box-cookies.left .box-cookies-wrapper, .box-cookies.right .box-cookies-wrapper { width: calc(100% - 20px); max-width: none; margin: 10px; padding: 15px; border-radius: 16px; display: block; text-align: left; } /* Основной контент */ .box-cookie-main { align-items: flex-start; } .box-cookie-icon { width: 44px; height: 44px; flex-basis: 44px; margin-right: 11px; border-radius: 12px; } .box-cookie-icon img { max-width: 35px; max-height: 35px; } .box-cookie-icon-default { font-size: 23px; } .box-cookie-title { font-size: 16px !important; } .box-cookie-text { font-size: 12px; line-height: 1.45; } /* Кнопки */ .box-cookie-buttons, .box-cookies.left .box-cookie-buttons, .box-cookies.right .box-cookie-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; padding: 0; } .box-cookies a.tap { width: 100%; height: 38px; padding: 0 10px; font-size: 12px; } .box-cookies .box-cookie-more { grid-column: 1 / -1; } /* Панель */ .box-cookie-settings-panel { margin-top: 14px; padding-top: 14px; } .box-cookie-settings-header strong { font-size: 15px; } .cookie-option { gap: 10px; padding: 10px 0; } .cookie-option-info strong { font-size: 12px; } .cookie-option-info span { font-size: 10px; } .box-cookie-settings-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; } .box-cookie-settings-actions button { width: 100%; padding: 0 8px; font-size: 11px; } } /* ========================================================= СОВСЕМ МАЛЕНЬКИЕ ЭКРАНЫ ========================================================= */ @media (max-width: 380px) { .box-cookies .box-cookies-wrapper { width: calc(100% - 12px); margin: 6px; padding: 13px; border-radius: 14px; } .box-cookie-buttons { grid-template-columns: 1fr; } .box-cookies .box-cookie-more { grid-column: auto; } .box-cookie-settings-actions { grid-template-columns: 1fr; } } /* ========================================================= АНИМАЦИЯ ========================================================= */ @keyframes cookieShow { 0% { opacity: 0; transform: translateY(15px) scale(.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } } @keyframes cookiePanelShow { 0% { opacity: 0; transform: translateY(-5px); } 100% { opacity: 1; transform: translateY(0); } } 