@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html {
  font-family: "Open Sans", sans-serif;
}

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

dialog h1,
dialog h2,
dialog h3,
dialog h4,
dialog h5,
dialog h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button, 
[type='button'], 
[type='reset'], 
[type='submit'] {
  -webkit-appearance: button;
  appearance: button;
}

/* Design: Bottom Full-Width Banner with Bigger Cookie Logo */
.cookie-banner-center {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2d3748; /* Новый темный фон */
  border-top: 2px solid #4a90e2; /* Новый цвет обводки */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  z-index: 9999;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.cookie-banner-center[dir="rtl"] {
  direction: rtl;
}

.cookie-banner-center.fade-in {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-center.fade-out {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-logo {
  width: 4rem;
  height: 4rem;
  background-color: #4a90e2; /* Новый цвет логотипа */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-logo svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: #ffffff; /* Белый цвет иконки */
}

/* Cookie Icon on Left */
.cookie-icon {
  position: fixed;
  bottom: 6rem; /* Выше баннера */
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: #4a90e2; /* Новый цвет кнопки */
  border: 2px solid #2d3748; /* Новый цвет обводки */
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: background-color 0.3s ease;
}

.cookie-icon:hover {
  background-color: #357abd; /* Новый цвет при наведении */
}

.cookie-icon[dir="rtl"] {
  left: auto;
  right: 1.5rem;
}

.cookie-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: #ffffff; /* Белый цвет иконки */
}

/* Common styles */
.cookie-accept {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.text-container {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0;
  text-align: center;
}

.accept-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff; /* Белый цвет текста */
}

.accept-text {
  font-size: 0.875rem;
  color: #a0aec0; /* Светло-серый цвет текста */
  line-height: 1.3;
}

.agree-button {
  background-color: #4a90e2; /* Новый цвет кнопки */
  color: #ffffff; /* Белый текст */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.agree-button:hover {
  background-color: #357abd; /* Новый цвет при наведении */
}

.manage-settings {
  font-size: 0.875rem;
  color: #a0aec0; /* Светло-серый цвет */
  cursor: pointer;
  text-decoration: underline;
}

.manage-settings:hover {
  color: #ffffff; /* Белый цвет при наведении */
}

.cookie-settings {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
}

.cookie-settings.active {
  display: flex;
}

.settings-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff; /* Белый цвет */
}

.settings-intro {
  font-size: 0.875rem;
  color: #a0aec0; /* Светло-серый цвет */
}

.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.summary-content {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff; /* Белый цвет */
}

.category-desc {
  font-size: 0.875rem;
  color: #a0aec0; /* Светло-серый цвет */
}

.toggle-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  width: 2.25rem;
  height: 1.25rem;
  background-color: #4a90e2; /* Новый цвет переключателя */
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background-color: #ffffff; /* Белый ползунок */
  border-radius: 9999px;
  transition: transform 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
  background-color: #357abd; /* Новый цвет при включении */
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(1.25rem);
}

.save-preferences-button {
  background-color: #4a90e2; /* Новый цвет кнопки */
  color: #ffffff; /* Белый текст */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-preferences-button:hover {
  background-color: #357abd; /* Новый цвет при наведении */
}

.policy-link {
  font-size: 0.875rem;
  color: #a0aec0; /* Светло-серый цвет */
  text-decoration: underline;
}

.policy-link:hover {
  color: #ffffff; /* Белый цвет при наведении */
}

.back-to-banner {
  font-size: 0.875rem;
  color: #a0aec0; /* Светло-серый цвет */
  cursor: pointer;
  text-decoration: underline;
}

.back-to-banner:hover {
  color: #ffffff; /* Белый цвет при наведении */
}

@media (min-width: 640px) {
  .cookie-banner-center {
    padding: 2rem;
  }
  .cookie-icon {
    bottom: 7rem;
  }
}

@media (prefers-color-scheme: dark) {
  .cookie-banner-center {
    background-color: #1a202c; /* Темнее для темной темы */
    border-color: #4a90e2;
  }
  .cookie-icon {
    background-color: #4a90e2;
    border-color: #1a202c;
  }
  .cookie-icon:hover {
    background-color: #357abd;
  }
  .accept-heading,
  .settings-heading,
  .summary-content {
    color: #f7fafc; /* Очень светлый серый */
  }
  .accept-text,
  .settings-intro,
  .category-desc,
  .manage-settings,
  .policy-link,
  .back-to-banner {
    color: #e2e8f0; /* Светло-серый */
  }
  .manage-settings:hover,
  .policy-link:hover,
  .back-to-banner:hover {
    color: #f7fafc;
  }
  .agree-button,
  .save-preferences-button {
    background-color: #4a90e2;
  }
  .agree-button:hover,
  .save-preferences-button:hover {
    background-color: #357abd;
  }
  .toggle-slider {
    background-color: #4a90e2;
  }
  .toggle-input:checked + .toggle-slider {
    background-color: #357abd;
  }
}


.pt-cus {
    padding-top: 110px;
    padding-bottom: 80px;
    padding-left: 35px;
    padding-right: 35px;
    background: #F0F8FF;
    border: 2px dashed #87CEEB;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

@media screen and (max-width: 776px) {
    .pt-cus {
        padding-top: 70px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 20px;
    }
}

.pt-cus h1,
.pt-cus h2,
.pt-cus h3,
.pt-cus h4,
.pt-cus h5 {
    font-family: 'Poppins', sans-serif;
    color: #4169E1;
    text-transform: capitalize;
}

.pt-cus h1 {
    font-size: 2.7rem;
    margin-bottom: 2rem;
    background: #87CEEB;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: left;
    display: inline-block;
}

.pt-cus h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 30px;
}

.pt-cus h2::before {
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5rem;
}

.pt-cus p,
.pt-cus li {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
}

.pt-cus ul {
    list-style-type: circle;
}

.pt-cus li {
    margin-bottom: 0.8rem;
    padding: 5px;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 5px;
}

.pt-cus p > a {
    color: #FF4500;
    text-decoration: underline wavy #FF4500;
    transition: all 0.3s ease;
}

.pt-cus p > a:hover {
    color: #FF6347;
    background-color: #FFEFD5;
    padding: 3px 6px;
    border-radius: 5px;
    text-decoration: none;
}
