.consent-container:empty,
.cart-summary__consent[hidden] {
  display: none;
}

.consent-section {
  padding-block: 16px 24px;
  color: var(--text-black);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.consent-section .consent-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.consent-section .consent-heading {
  flex: 1 1 220px;
  margin: 0;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 16.5px;
  letter-spacing: 0.55px;
text-transform: uppercase;
  overflow-wrap: anywhere;
}

.consent-section .consent-language {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: auto;
  max-width: 100%;
  color: var(--primary-color);
}

.consent-section .consent-language-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: url('../icons/globe.svg') no-repeat center / contain;
}

.consent-section .consent-language-select {
  position: relative;
  display: block;
  min-width: 0;
}

.consent-section .selected-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--primary-color);
  background: transparent;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.consent-section .selected-option::after {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: url('../icons/chevron-down.svg') no-repeat center / contain;
}

.consent-section .dropdown-options {
  position: absolute;
  z-index: 10;
  display: none;
  flex-direction: column;
  min-width: 140px;
  max-width: min(240px, calc(100vw - 48px));
  max-height: min(240px, 40dvh);
  overflow: auto;
  inset-inline-start: 0;
  padding: 4px;
  border: 1px solid var(--border-color);
  background: var(--tertiary-color);
  box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
}

.consent-section .dropdown-options.open-below {
  top: 100%;
  margin-top: 4px;
}

.consent-section .dropdown-options.open-above {
  bottom: 100%;
  margin-bottom: 4px;
}

.consent-section .dropdown-options.align-right {
  left: auto;
  right: 0;
}

.consent-section custom-option {
  display: block;
  padding: 8px 12px;
  color: var(--text-black);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.consent-section custom-option:hover,
.consent-section custom-option.selected {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.consent-section .consent-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.consent-section .consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.consent-section .consent-checkbox .consent-checkbox-input {
  position: static;
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--neutrals-bars-unselected, #ccc);
  border-radius: 0;
  background: transparent;
  background-clip: content-box;
  cursor: pointer;
}

.consent-section .consent-checkbox-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consent-section .consent-checkbox .consent-checkbox-input:checked {
  background-color: #171c8f;
}

.consent-section .consent-checkbox .consent-checkbox-input:checked::after {
  content: none;
}

.consent-section :is(.consent-checkbox-input, .selected-option, custom-option, .consent-description-trigger):focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.consent-section .consent-checkbox-text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px;
  overflow-wrap: anywhere;
}

.consent-section .consent-required {
  color: var(--out-of-stock-red);
}

.consent-section .consent-bold {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
}

.consent-section .consent-description {
  margin: 0;
  color: var(--tertiary-deep-grey);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 13.5px;
  overflow-wrap: anywhere;
}

.consent-section .consent-description-trigger {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (width >= 1024px) {
  .consent-section .consent-heading {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
  }

  .consent-section .consent-checkbox-text {
    font-weight: 400;
    line-height: 16px;
  }

  .consent-section .consent-bold {
    line-height: 16px;
  }

  .consent-section .consent-description {
    font-size: 10px;
    line-height: 14px;
  }
}

/* @media (width < 1024px) {
  .cart-summary .sticky-section:has(.cart-summary__consent:not([hidden]) .consent-section) {
    position: static;
  }
} */
