/* --- Preferences modal --- */
.cc-modal {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  max-width: 720px;
  width: 100%;
  max-height: calc(100dvh - 64px);
  margin: auto;
  @media (max-width: 767px) {
    margin: auto auto 0;
  }
}
.cc-modal[open] {
  display: flex;
  flex-direction: column;
}
.cc-modal::backdrop {
  background: #1b1c1a;
  opacity: 0.45;
}
html:has(.cc-modal[open]) {
  overflow: hidden;
}
.cc-inner {
  overflow-y: auto;
  padding: 40px;
  border: 1px solid #545a55;
  border-radius: 4px;
  @media (max-width: 767px) {
    padding: 24px 20px;
    border-radius: 0;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
  }
}
.cc-line {
  display: none;
  @media (max-width: 767px) {
    display: block;
    width: 36px;
    height: 4px;
    background: #cfcac3;
    border-radius: 2px;
    margin: 0 auto 20px;
  }
}
.cc-title {
  color: #1b1c1a;
  font-weight: 600;
  font-size: 25px;
  line-height: 105%;
  margin-bottom: 12px;
  @media (max-width: 767px) {
    font-size: 24px;
    margin-bottom: 0;
  }
}
.cc-text {
  color: #545a55;
  font-weight: 400;
  font-size: 16px;
  line-height: 135%;
  @media (max-width: 767px) {
    font-size: 14px;
    margin-top: 4px;
  }
}
.cc-text--desktop {
  @media (max-width: 767px) {
    display: none;
  }
}
.cc-text--mobile {
  display: none;
  @media (max-width: 767px) {
    display: block;
  }
}
.cc-sep {
  height: 1px;
  background: #545a55;
  margin: 16px 0;
  @media (max-width: 767px) {
    margin: 12px 0;
  }
}
.cc-group {
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  @media (max-width: 767px) {
    padding: 0;
  }
}
.cc-group-content {
  margin-right: 20px;
  @media (max-width: 767px) {
    margin-right: 10px;
  }
}
.cc-group-title {
  color: #1b1c1a;
  font-weight: 500;
  font-size: 21px;
  line-height: 105%;
  margin-bottom: 4px;
  @media (max-width: 767px) {
    font-size: 24px;
  }
}
.cc-switchWrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.cc-always {
  white-space: nowrap;
  flex-shrink: 0;
  color: #545a55;
  font-weight: 500;
  font-size: 13px;
  line-height: 135%;
  text-transform: uppercase;
  @media (max-width: 767px) {
    font-size: 12px;
  }
}
.cc-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc-slider {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: #cfcac3;
  pointer-events: none;
  transition: background 0.2s ease;
}

.cc-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}
.cc-switch input:checked + .cc-slider {
  background: #1B1C1A;
}
.cc-switch input:checked:disabled + .cc-slider {
  background: #333a34;
  opacity: 0.48;
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(16px);
}
.cc-switch input:disabled {
  cursor: default;
}
.cc-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  @media (max-width: 767px) {
    flex-direction: column;
    gap: 12px;
  }
}
.cc-btn {
  display: flex;
  width: fit-content;
  min-width: 120px;
  height: 56px;
  background: transparent;
  border: 1px solid #4E534F;
  border-radius: 3px;
  padding: 30px 36px 8px 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 135%;
  color: #4E534F;
  position: relative;
  text-transform: uppercase;
  cursor: pointer;
  @media (max-width: 767px) {
    width: 100%;
    font-size: 13px;
  }
}
.cc-btn::after{
  content: '';
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  background-image: url('../img/arrow-beige.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}
.cc-btn:hover::after{
  transform: rotate(45deg);
}
.cc-btn:hover {
  background: #f3efea;
  border-color: #333a34;
  color: #333a34;
}
.cc-btn:active {
  border-color: #1b1c1a;
  color: #1b1c1a;
  background: #ffffff;
}

.cc-btn--solid {
  background: #4e534f;
  color: #ffffff;
}
.cc-btn--solid.cc-btn::after{
  background-image: url('../img/arrow-white.svg');
}
.cc-btn--solid:hover {
  background: #333a34;
  border-color: #333a34;
  color: #ffffff;
}
.cc-btn--solid:active {
  border-color: #1b1c1a;
  background: #1b1c1a;
  color: #ffffff;
}

.cc-saved {
  display: none;
}
.cc-btn--close {
  margin: 16px 0 0 0;
  @media (max-width: 767px) {
    margin: 24px 0 0;
  }
}

/* --- Consent banner --- */

.cc-banner {
  position: fixed;
  left: 32px;
  bottom: 32px;
  z-index: 100;
  background: #ffffff;
  width: 440px;
  border: 1px solid #cfcac3;
  @media (max-width: 767px) {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
}
.cc-banner-inner {
  padding: 16px;
  @media (max-width: 767px) {
    padding: 32px 20px;
  }
}
.cc-banner-text,
.cc-banner-text a {
  color: #333a34;
  font-weight: 400;
  font-size: 16px;
  line-height: 135%;
  letter-spacing: 0px;
  margin-bottom: 16px;
  @media (max-width: 767px) {
    font-size: 14px;
    margin-bottom: 24px;
  }
}
.cc-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cc-banner-actions .cc-btn {
  width: 100%;
}
.cc-btn--banner {
  padding: 12px 10px;
}
.cc-btn--link {
  display: flex;
  align-items: center;
  color: #4e534f;
  font-weight: 500;
  font-size: 15px;
  line-height: 135%;
  border: 0;
  background: none;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0 0 4px;

  border-bottom: 1.3px solid #4e534f;
}
.cc-btn--link:hover {
  color: #333a34;
}
.cc-btn--link:active {
  color: #1b1c1a;
}
