/*
 * Shared cookie banner styles for /public/fp/* landing pages.
 * Self-contained: no Bootstrap, no SCSS vars, no main site bundles.
 * Mirrors resources/styles/components/cookies-block.scss with plain values.
 */

/* ============== Banner ============== */
.cookie-block-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  font-family: sans-serif;
}

.cookie-block-wrapper.is-hidden { display: none !important; }

.cookie-block-wrapper .cookiesBlock {
  position: relative;
  bottom: 0;
  margin: 0 1rem;
  padding: 30px;
  width: -moz-fit-content;
  width: fit-content;
  max-height: calc(100vh - 1rem);
  overflow-y: auto;
  background: rgba(5, 5, 5, 0.8);
  box-shadow: 0 2px 25px 0 rgba(5, 5, 5, 0.2);
  color: #fff;
  z-index: 99999;
}

.cookie-block-wrapper .cookies-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-block-wrapper .cookies-text {
  max-width: 840px;
  padding: 0 1rem;
  margin-right: 0;
  font-size: 20px;
}

.cookie-block-wrapper .cookies-text p {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
}

.cookie-block-wrapper .cookies-text a { color: #ff6900; }

.cookie-block-wrapper .cookies-buttons {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0;
  margin: 0 auto;
}

.cookie-block-wrapper .cookies-buttons > .cookie-nix-btn + .cookie-nix-btn {
  margin-top: 1rem;
}

@media (min-width: 1200px) {
  .cookie-block-wrapper .cookies-buttons {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }
}

.cookie-nix-btn {
  display: inline-block;
  padding: 10px 30px;
  border: none;
  background: linear-gradient(91.02deg, #ff8200 0.43%, #ff5000 99.69%);
  color: #fff;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.36;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
  flex: 0 0 auto;
}

.cookie-nix-btn:hover {
  background: linear-gradient(271.77deg, #ff8200 0.48%, #ff5000 99.55%);
  color: #fff;
}

.cookie-nix-btn:disabled { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 1199.98px) {
  .cookie-block-wrapper .cookies-container { display: block; }
  .cookie-block-wrapper .cookies-text { margin-right: 30px; }
  .cookie-block-wrapper .cookie-nix-btn {
    margin-top: 10px;
    padding: 10px 15px;
  }
}

@media (max-width: 767.98px) {
  .cookie-block-wrapper .cookiesBlock { padding: 20px 0; }
}

/* ============== Modal ============== */
.cookie-modal-wrapper-custom {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.01);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  overscroll-behavior: contain;
  overflow-y: auto;
  font-family: sans-serif;
}

.cookie-modal-wrapper-custom.hidden { display: none !important; }

.cookie-modal {
  margin: 0 1rem;
  padding: 50px 30px;
  max-width: 1100px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  overflow-y: auto;
  background: #2b1510;
  color: #fff;
}

.cookie-modal.hidden { display: none !important; }

.cookie-modal__header-wrap { padding-bottom: 30px; }

.cookie-modal__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.cookie-modal__title {
  margin: 0;
  color: #fff;
  font-family: sans-serif;
  font-size: 24px;
  line-height: 1.4;
}

.cookie-modal__close {
  margin-top: -30px;
  padding: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 25px;
  font-weight: 200;
  cursor: pointer;
  align-self: flex-start;
}

.cookie-modal__text {
  max-width: 1000px;
  color: #fff;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.cookie-modal__text a { color: #ff6900; }

.cookie-modal__body {
  padding-bottom: 50px;
  line-height: 1.5;
}

.cookie-modal__body a {
  color: #ff6900;
  text-decoration: underline;
}

.cookie-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-accordion__item {
  padding: 25px 50px 25px 13px;
  background: #1a0804;
}

@media (max-width: 575.98px) {
  .cookie-accordion__item { padding: 25px 20px 25px 13px; }
}

.cookie-accordion__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-left: 22px;
  color: #fff;
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
}

.cookie-accordion__header-text {
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .cookie-accordion__header-text { max-width: 86px; }
}

.cookie-accordion__right {
  display: flex;
  gap: 20px;
}

@media (max-width: 575.98px) {
  .cookie-accordion__right { gap: 10px; }
  .cookie-accordion__right-text { max-width: 70px; }
}

.cookie-accordion__status {
  color: #fff;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.cookie-accordion__arrow {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.4s;
}

.cookie-accordion__content {
  max-height: 0;
  margin-top: 0;
  padding-left: 22px;
  overflow: hidden;
  color: #fff;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.4;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.cookie-accordion__item.open .cookie-accordion__content {
  max-height: 500px;
  margin-top: 20px;
}

.cookie-accordion__item.open .cookie-accordion__arrow {
  transform: translateY(-50%) rotate(45deg);
}

/* ============== Switch ============== */
.switch-cookie {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch-cookie input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider-cookie-custom {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: #fff;
  border-radius: 20px;
  transition: background-color 0.2s;
}

.slider-cookie-custom::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 16px;
  height: 16px;
  background-color: #000;
  border-radius: 50%;
  transition: transform 0.3s;
}

.switch-cookie input:checked + .slider-cookie-custom {
  background-color: #03db59;
}

.switch-cookie input:checked + .slider-cookie-custom::before {
  transform: translateX(20px);
  background-color: #fff;
}

/* ============== Modal footer buttons ============== */
.cookie-modal__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1199.98px) {
  .cookie-modal__footer { flex-direction: column; }
}

.cookie-modal-btn {
  padding: 14px 30px;
  border: none;
  background: linear-gradient(91.02deg, #ff8200 0.43%, #ff5000 99.69%);
  color: #fff;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.36;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  flex: 0 0 auto;
}

.cookie-modal-btn:hover {
  background: linear-gradient(271.77deg, #ff8200 0.48%, #ff5000 99.55%);
}

.cookie-modal-btn:disabled {
  background: #ffffff;
  color: rgba(9, 9, 9, 0.5);
}

@media (max-width: 1199.98px) {
  .cookie-modal-btn { width: 100%; }
}
