/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  width: 100%;
  background: #ffffff;
  color: #b3b3b3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999;
}

.cookie-consent__text {
  margin: 20px 25px 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #b3b3b3;
}

.cookie-consent__text a {
  color: #ca0088;
  text-decoration: none;
}

.cookie-consent__buttons {
  display: flex;
  width: 100%;
  padding: 0 15px 15px;
  gap: 15px;
}

.cookie-consent__btn {
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 1px solid #ca0088;
  color: #ca0088;
  padding: 11.5px 17px;
  border-radius: 30px;
  display: block;
  flex: 1;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  transition: background-color 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67),
      color 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus {
  background-color: #ca0088;
  border: 1px solid #ca0088;
  color: white;
}

@media (max-width: 600px) {
  .cookie-consent__buttons {
    flex-direction: column;
    gap: 8px;
  }
}

/* Cookie floating button */
.cookie-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: white;
  color: #ca0088;
  border: 5px solid #ca0088;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cookie-floating-btn:hover {
  transform: scale(1.1);
}

.cookie-floating-btn svg {
  width: 20px;
  height: 21px;
}

@media (max-width: 600px) {
  .cookie-floating-btn {
    bottom: 10px;
    right: 10px;
    padding: 8px;
    border: 3px solid #ca0088;
  }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal__container {
  max-width: 996px;
  width: 100%;
  margin: 0 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-family: 'Libre Franklin', sans-serif;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 1.5rem;
  border-bottom: 1px solid #ccc;
  color: #545454;
}

.cookie-modal__header p {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.cookie-modal__header img {
  height: 32px;
  width: auto;
}

.cookie-modal__body {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
}

.cookie-modal__list {
  display: flex;
  flex-direction: column;
  position: relative;
  width: fit-content;
  height: fit-content;
  margin-right: 50px;
  background: #E8E8E8;
  flex-shrink: 0;
}

.cookie-modal__list label {
  cursor: pointer;
  line-height: 1;
  padding: 26px 20px;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
  font-weight: 400;
  color: #545454;
  transition: all 0.5s ease;
  z-index: 10;
  height: 48px;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.cookie-modal__list label:hover {
  color: #0F3250;
}

.cookie-modal__slider {
  position: absolute;
  width: 100%;
  height: 48px;
  background-color: #fff;
  transition: top 0.3s ease;
  border-left: 4px solid #0F3250;
  top: 0;
  left: 0;
  z-index: 5;
}

.cookie-modal__list input[type="radio"] {
  display: none;
}

.cookie-modal__tab {
  color: #545454;
  flex: 1;
  min-width: 0;
}

.cookie-modal__tab-panel {
  display: none;
}

.cookie-modal__tab-panel.is-active {
  display: block;
}

.cookie-modal__tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.cookie-modal__tab-title p {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #545454;
}

.cookie-modal__tab-words p {
  line-height: 2.25rem;
  font-weight: 300;
  color: #545454;
  margin: 0;
}

/* Toggle switch */
.cookie-modal__switch-wrap {
  display: flex;
  align-items: center;
}

.cookie-modal__switch-text {
  font-size: 16px;
  padding-right: 1rem;
  color: #545454;
  margin: 0;
}

.cookie-modal__switch {
  visibility: hidden;
  position: absolute;
}

.cookie-modal__switch + label {
  display: block;
  height: 32px;
  width: 60px;
  position: relative;
  background-color: #ddd;
  border-radius: 32px;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-modal__switch + label::before {
  display: block;
  position: absolute;
  content: "";
  left: 4px;
  top: 4px;
  border-radius: 100%;
  width: 24px;
  height: 24px;
  background-color: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.4s;
}

.cookie-modal__switch:checked + label {
  background-color: #8ce196;
}

.cookie-modal__switch:checked + label::before {
  margin-left: 28px;
}

/* Modal buttons */
.cookie-modal__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

.cookie-modal__btn {
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 1px solid #ca0088;
  color: #ca0088;
  padding: 11.5px 17px;
  border-radius: 30px;
  display: block;
  min-width: 130px;
  font-family: inherit;
  font-size: 14px;
  margin: 0 auto 10px;
  transition: background-color 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67),
      color 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.cookie-modal__btn:hover,
.cookie-modal__btn:focus {
  background-color: #ca0088;
  border: 1px solid #ca0088;
  color: white;
}

/* Modal responsive */
@media (max-width: 768px) {
  .cookie-modal__body {
    flex-direction: column;
  }
  .cookie-modal__list {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  .cookie-modal__list label {
    width: 100%;
    font-size: 14px;
    padding: 16px 14px;
    height: auto;
  }
  .cookie-modal__slider {
    height: 44px;
  }
  .cookie-modal__header p {
    font-size: 18px;
  }
  .cookie-modal__tab-title p {
    font-size: 16px;
  }
  .cookie-modal__tab-words p {
    font-size: 14px;
    line-height: 1.8rem;
  }
  .cookie-modal__container {
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ===== POPUPS (UNIONPAY / CLICKTOPAY) ===== */
.popup {
  position: fixed;
  right: 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 10px 0 0 10px;
}

.popup--unionpay {
  top: 10em;
  background: #FFFFFF;
}

.popup--clicktopay {
  top: 25em;
  background: #fcfcfc;
}

.popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.popup--unionpay .popup__content {
  margin: 30px 25px 35px;
}

.popup--clicktopay .popup__content {
  margin: 33px 31px 40px;
}

.popup__logo {
  width: 60px;
  height: auto;
}

.popup__content h3 {
  margin-top: 20px;
  font-family: 'Libre Franklin', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  color: #000000;
}

.popup__content span {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #000000;
}

.popup__links {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  margin-top: 10px;
}

.popup__link {
  display: flex;
  justify-content: center;
  flex: 1;
  color: #B3B3B3;
  text-decoration: none;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  transition: color 0.2s ease;
}

.popup__link:hover,
.popup__link:active {
  color: #ca0091;
}

.popup__link--border {
  border-left: 1.5px solid #B3B3B3;
}

.popup__close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  background: transparent;
  margin: 12.5px;
  box-shadow: none;
  color: black;
  border: none;
  padding: 0;
  line-height: 1;
}

.popup__close img {
  width: 9px;
  height: 9px;
}

/* Popup small (collapsed) */
.popup--small {
  background: #000000;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup--unionpay.popup--small:hover {
  background: #FFFFFF;
}

.popup--clicktopay.popup--small:hover {
  background: #fcfcfc;
}

.popup__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.popup--unionpay .popup__icon {
  margin: 15px;
}

.popup--clicktopay .popup__icon {
  margin: 10px;
}

.popup__icon img {
  width: 60px;
  height: auto;
}

.popup__icon-hover {
  display: none;
}

.popup--small:hover .popup__icon-default {
  display: none;
}

.popup--small:hover .popup__icon-hover {
  display: block;
}

@media (min-width: 600px) {
  .popup__close {
    margin: 10px;
  }
  .popup__close img {
    width: 12px;
    height: 12px;
  }
}
