.ti-cookie-banner,
.ti-cookie-panel {
  box-sizing: border-box;
  color: #18343a;
  font-family: Manrope, Arial, sans-serif;
}

.ti-cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  width: min(560px, calc(100vw - 40px));
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(36, 124, 140, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(24, 52, 58, 0.18);
}

.ti-cookie-banner h2,
.ti-cookie-panel h2 {
  margin: 0 0 8px;
  color: #247c8c;
  font-size: 18px;
  line-height: 1.25;
}

.ti-cookie-banner p,
.ti-cookie-panel p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
}

.ti-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ti-cookie-btn {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #247c8c;
  border-radius: 6px;
  background: #247c8c;
  color: #ffffff;
  cursor: pointer;
  font: 700 14px/1.2 Manrope, Arial, sans-serif;
}

.ti-cookie-btn:hover {
  background: #1d6572;
  border-color: #1d6572;
}

.ti-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 30, 34, 0.42);
}

.ti-cookie-backdrop.is-open {
  display: flex;
}

.ti-cookie-panel {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(12, 30, 34, 0.28);
}

.ti-cookie-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(36, 124, 140, 0.16);
}

.ti-cookie-row strong {
  display: block;
  margin-bottom: 4px;
  color: #18343a;
}

.ti-cookie-row span {
  display: block;
  color: #4d6970;
  font-size: 13px;
  line-height: 1.45;
}

.ti-cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.ti-cookie-switch input {
  position: absolute;
  opacity: 0;
}

.ti-cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #9aaeb3;
  transition: background 0.2s ease;
}

.ti-cookie-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.ti-cookie-switch input:checked + .ti-cookie-slider {
  background: #247c8c;
}

.ti-cookie-switch input:checked + .ti-cookie-slider::before {
  transform: translateX(20px);
}

.ti-cookie-switch input:disabled + .ti-cookie-slider {
  opacity: 0.75;
}

.ti-cookie-settings-link {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99998;
  padding: 8px 10px;
  border: 1px solid rgba(36, 124, 140, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #247c8c;
  cursor: pointer;
  font: 700 12px/1.2 Manrope, Arial, sans-serif;
}

@media (max-width: 520px) {
  .ti-cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .ti-cookie-actions,
  .ti-cookie-btn {
    width: 100%;
  }
}
