/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  CONSENT MAIN
\* ˍˍˍˍˍˍˍˍˍ */
.village-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;

  --text-spacing: 0 0 1.5rem;
  --title-spacing: 0 0 0.5rem;
  background-color: var(--background-contrast-grey);

  --idle: transparent;
  --hover: var(--background-contrast-grey-hover);
  --active: var(--background-contrast-grey-active);
}

.village-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: calc(100% - 8rem);
  padding: 1rem;
  overflow: auto;

  --text-spacing: 0 0 1rem;
  --title-spacing: 0 0 1rem;
  z-index: calc(var(--ground) + 1500);
  background-color: var(--background-alt-overlap-grey);

  --idle: transparent;
  --hover: var(--background-alt-overlap-grey-hover);
  --active: var(--background-alt-overlap-grey-active);
  filter: drop-shadow(var(--overlap-shadow));
  box-shadow: inset 0 0 0 1px var(--border-default-grey);
}

.village-consent-banner__title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

.village-consent-banner__buttons {
  margin-top: 1.5rem;
  margin-bottom: -1rem;
}

.village-consent-service {
  position: relative;
}

.village-consent-service > .village-fieldset {
  padding: 0 0 1.25rem;
  margin: 0;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: initial;
}

.village-consent-service:last-child > .village-fieldset {
  padding: 2rem 0 1rem;
}

.village-consent-service:last-child > .village-fieldset .village-consent-service > .village-fieldset:last-child {
  margin-bottom: 0;
}

.village-consent-service__title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5rem;
  padding: 2rem 0 0.75rem;
  margin: 0;
  color: var(--text-title-grey);
}

.village-consent-service__desc {
  font-size: 0.875rem;
  line-height: 1.5rem;

  --text-spacing: 0.75rem 0 0.5rem 0;
}

.village-consent-service__collapse {
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.village-consent-service__collapse .village-consent-service__collapse-btn {
  font-size: 0.875rem;
  line-height: 1.5rem;
  padding: 0 0;
  overflow: initial;
  max-width: 100%;
  max-height: none;
}

.village-consent-service__collapse .village-consent-service__collapse-btn::after {

  --icon-size: 1rem;
  margin-right: -0.125rem;
  margin-left: 0.25rem;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/system/arrow-down-s-line.svg");
  mask-image: url("../../icons/system/arrow-down-s-line.svg");
  content: "";
}

.village-consent-service__collapse .village-consent-service__collapse-btn::before {
  content: none;
}

.village-consent-service__radios {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.village-consent-service .village-radio-group {
  position: relative;
}

.village-consent-service .village-radio-group:not(:last-child) {
  margin-right: 3rem;
}

.village-consent-service .village-radio-group:not(:first-child)::before {
  content: "";
  display: block;
  width: 1px;
  height: 1.5rem;
  position: absolute;
  top: 0;
  left: calc(-1.5rem - 1px);
}

.village-consent-service .village-consent-service__collapse-btn {
  --text-spacing: 0;
  --title-spacing: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;

  --underline-img: none;
  --hover-tint: var(--hover);
  background: transparent;
  padding: 0 0.25rem 0 0;
  color: inherit;

  --hover-tint: var(--idle);
  --active-tint: var(--idle);
  background-image: var(--underline-img), var(--underline-img);
  background-position: var(--underline-x) 100%, var(--underline-x) calc(100% - var(--underline-thickness));
  background-repeat: no-repeat, no-repeat;
  transition: background-size 0s;
  background-size: var(--underline-hover-width) calc(var(--underline-thickness) * 2), var(--underline-idle-width) var(--underline-thickness);
  color: var(--text-action-high-village-primary);
}

.village-consent-service .village-consent-service__collapse-btn::before,
.village-consent-service .village-consent-service__collapse-btn::after {
  display: block;
}

.village-consent-service .village-consent-service__collapse-btn:hover,
.village-consent-service .village-consent-service__collapse-btn:active {
  --underline-hover-width: var(--underline-max-width);
}

.village-consent-service .village-consent-service__collapse-btn::after {
  margin-right: -1.25rem;
  transition: transform 0.3s;
}

.village-consent-service .village-consent-service__collapse-btn[aria-expanded=true]::after {
  transform: rotate(-180deg);
}

.village-consent-services {
  margin-top: 0.5rem;
  margin-bottom: -0.5rem;
  width: 100%;
}

.village-consent-services .village-consent-service > .village-fieldset,
.village-consent-services .village-consent-service:last-child > .village-fieldset {
  padding: 0;
}

.village-consent-services .village-consent-service:last-child > .village-fieldset {
  margin-bottom: 1.25rem;
}

.village-consent-services .village-consent-service__title {
  padding-top: 0.75rem;
}

.village-consent-services .village-consent-service__radios {
  top: 0;
}

.village-consent-services .village-consent-service__desc {
  --text-spacing: 0.25rem 0 0.75rem 0;
}

.village-consent-manager__header {
  padding-top: 0;
}

.village-consent-manager__header .village-consent-service__title {
  width: 100%;
  padding: 0 0 0.75rem 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.village-consent-manager__header .village-consent-service__radios {
  width: 100%;
  justify-content: flex-start;
  top: 0;
  position: initial;
}

.village-consent-manager__buttons {
  margin-bottom: -3rem;
  margin-top: 1rem;
}

.village-consent-manager__header,
.village-consent-service {
  box-shadow: inset 0 -1px 0 0 var(--border-default-grey);
  color: var(--text-default-grey);
}

.village-consent-manager__header .village-radio-group + .village-radio-group::before,
.village-consent-service .village-radio-group + .village-radio-group::before {
  box-shadow: inset 0 0 0 1px var(--border-default-grey);
}

.village-consent-service:last-of-type,
.village-consent-service .village-consent-service {
  box-shadow: none;
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */
  .village-consent-banner {
    padding: 2rem;
    bottom: 2.5rem;
    left: 2.5rem;
    max-width: 40rem;
    max-height: calc(100% - 5rem);
  }

  .village-consent-banner__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .village-consent-banner__buttons {
    margin-top: 2rem;
  }

  .village-consent-service > .village-fieldset {
    padding: 0 0 1.25rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .village-consent-service:last-child > .village-fieldset {
    padding: 1.25rem 0 1rem;
  }

  .village-consent-service__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    width: 50%;
  }

  .village-consent-service__desc {
    --text-spacing: 0.25rem 1.5rem 0.5rem 0;
    width: 60%;
  }

  .village-consent-service__radios {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    top: 1.25rem;
    right: 0;
    width: 50%;
  }

  .village-consent-services .village-consent-service + .village-consent-service {
    margin-top: -0.25rem;
  }

  .village-consent-services .village-consent-service__desc {
    --text-spacing: 0.25rem 0 0.5rem 0;
  }

  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */
  .village-consent-manager__header .village-consent-service__title {
    width: 44%;
  }

  .village-consent-manager__header .village-consent-service__radios {
    width: 56%;
    position: absolute;
    justify-content: flex-end;
  }

  /*! media lg */
}
@media (min-width: 78em) {
  /*! media xl */
  .village-consent-manager__header .village-consent-service__title {
    width: 50%;
  }

  .village-consent-manager__header .village-consent-service__radios {
    width: 50%;
  }

  /*! media xl */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .village-consent-service__collapse .village-consent-service__collapse-btn {
    text-decoration: underline;
  }

  .village-consent-service__collapse .village-consent-service__collapse-btn::before,
  .village-consent-service__collapse .village-consent-service__collapse-btn::after {
    background-color: transparent;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/arrow-down-s-line.svg");
    width: 1rem;
    height: 1rem;
  }

  .village-consent-service__collapse .village-consent-service__collapse-btn[aria-expanded=true]::before,
  .village-consent-service__collapse .village-consent-service__collapse-btn[aria-expanded=true]::after {
    background-color: transparent;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/arrow-up-s-line.svg");
    width: 1rem;
    height: 1rem;
  }

  .village-consent-placeholder {
    background-color: #eee;
  }

  .village-consent-banner {
    z-index: 1500;
    background-color: #f6f6f6;
    box-shadow: inset 0 0 0 1px #ddd;
  }

  .village-consent-manager__header,
  .village-consent-service {
    box-shadow: inset 0 -1px 0 0 #ddd;
    color: #3a3a3a;
  }

  .village-consent-manager__header .village-radio-group + .village-radio-group::before,
  .village-consent-service .village-radio-group + .village-radio-group::before {
    box-shadow: inset 0 0 0 1px #ddd;
  }

  .village-consent-service__title {
    color: #161616;
  }

  .village-consent-service:last-of-type,
  .village-consent-service .village-consent-service {
    box-shadow: none;
  }

  .village-consent-service .village-consent-service__collapse-btn {
    color: hsl(180, 75%, 25%);
  }
}
@media print {
  .village-consent-placeholder {
    background-color: #eee;
  }

  .village-consent-banner {
    background-color: #f6f6f6;
    box-shadow: inset 0 0 0 1px #ddd;
    display: none;
  }

  .village-consent-manager__header,
  .village-consent-service {
    box-shadow: inset 0 -1px 0 0 #ddd;
    color: #3a3a3a;
  }

  .village-consent-manager__header .village-radio-group + .village-radio-group::before,
  .village-consent-service .village-radio-group + .village-radio-group::before {
    box-shadow: inset 0 0 0 1px #ddd;
  }

  .village-consent-service__title {
    color: #161616;
  }

  .village-consent-service .village-consent-service__collapse-btn {
    color: hsl(180, 75%, 25%);
  }
}
@media print and (-ms-high-contrast: none), print and (-ms-high-contrast: active) {
  .village-consent-banner {
    z-index: 1500;
  }

  .village-consent-service:last-of-type,
  .village-consent-service .village-consent-service {
    box-shadow: none;
  }
}
