/*! biscuitman-legacy.js 0.6.0 */
@supports selector(:has(a)) {
  .biscuitman {
    all: initial;
  }

  .biscuitman *, .biscuitman :before, .biscuitman :after {
    all: revert;
  }
}

.biscuitman {
  --bm-ui: 0, 0, 0;
  --bm-tx: #444;
  --bm-bg: #fff;
  --bm-c: #105d89;
  background: #fff;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 3;
  width: 100%;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  display: none;
  position: fixed;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .16);
}

.bm-show .biscuitman {
  display: block;
}

.biscuitman * {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  color: #444;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4em;
}

.biscuitman:has([open]) {
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
}

.biscuitman article {
  position: relative;
}

@media (min-width: 770px) {
  .biscuitman article {
    padding-right: calc(max(300px, 30vw) + 20px);
  }

  .biscuitman article .bm-buttons {
    width: 30vw;
    min-width: 300px;
    position: absolute;
    bottom: 50%;
    right: 0;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
  }
}

.biscuitman article p {
  margin: 10px 0;
  font-size: 13px;
}

@media (min-width: 575px) {
  .biscuitman article p {
    font-size: 14px;
  }
}

.biscuitman button {
  background: #fff;
  border: 2px solid #105d89;
  color: #105d89;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 10px;
  padding: .8em;
  font-size: 13px;
  line-height: 1em;
}

.biscuitman button[data-id="accept"] {
  background: #105d89;
  color: #fff !important;
}

.biscuitman button[data-id="close"] {
  color: rgba(0,0,0, .5);
  opacity: .6;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 2;
  background: none;
  border: none;
  padding: 10px;
  font-size: 24px;
  position: absolute;
  top: 0;
  right: 10px;
}

.biscuitman button[disabled] {
  display: none;
}

.biscuitman button:hover {
  opacity: .8;
}

.biscuitman .bm-buttons {
  display: -webkit-flex;
  display: flex;
}

@media (min-width: 576px) {
  .biscuitman .bm-buttons {
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;
    gap: 10px;
    width: 100%;
  }

  .biscuitman .bm-buttons button {
    -webkit-flex-grow: 1;
    flex-grow: 1;
  }
}

@media (max-width: 575px) {
  .biscuitman .bm-buttons {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-grow: 1;
    flex-grow: 1;
  }
}

.biscuitman dialog {
  background: #fff;
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}

@media (min-width: 576px) {
  .biscuitman dialog {
    border-radius: 10px;
    width: 90vw;
    max-width: 860px;
    max-height: 80vh;
    margin: auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, .3);
  }
}

@media (min-width: 576px) and (min-height: 1134px) {
  .biscuitman dialog {
    max-height: 950px;
  }
}

.biscuitman dialog .bm-buttons {
  position: relative;
}

.biscuitman .bm-dialog {
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  display: -webkit-flex;
  display: flex;
}

.biscuitman .bm-dialog b {
  padding-bottom: 8px;
  position: relative;
}

.biscuitman .bm-dialog > b:after {
  content: "";
  pointer-events: none;
  width: 100%;
  height: 25px;
  position: absolute;
  left: 0;
}

.biscuitman .bm-dialog .bm-buttons:after {
  content: "";
  pointer-events: none;
  width: 100%;
  height: 25px;
  position: absolute;
  left: 0;
}

.biscuitman .bm-dialog > b:after {
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0));
  z-index: 1;
  margin-bottom: -24px;
  bottom: 0;
}

.biscuitman .bm-dialog .bm-buttons:after {
  background: linear-gradient(0deg, #fff 20%, rgba(255, 255, 255, 0));
  top: -24px;
}

.biscuitman .bm-sections {
  scrollbar-color: rgba(0,0,0, .2) #fff;
  height: 100%;
  padding: 15px 0;
  position: relative;
  overflow-y: scroll;
}

@media (min-width: 576px) {
  .biscuitman .bm-sections {
    margin-right: -18px;
    padding-right: 4px;
  }
}

.biscuitman .bm-sections > p {
  padding-right: 30px;
  font-size: 13px;
  line-height: 18px;
}

@media (min-width: 576px) {
  .biscuitman .bm-sections > p {
    font-size: 14px;
  }
}

.biscuitman .bm-sections > p span {
  font-size: inherit;
  padding-bottom: 5px;
  display: inline-block;
}

.biscuitman .bm-sections > p [data-id="more"] ~ span {
  display: none;
}

.biscuitman a {
  font-size: inherit;
  color: #105d89;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.biscuitman a:hover {
  text-decoration: underline;
}

.biscuitman section {
  margin-bottom: 10px;
  position: relative;
}

.biscuitman section:first-of-type {
  margin-top: 10px;
}

.biscuitman details {
  border: 1px solid rgba(0,0,0, .2);
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.biscuitman details[open] summary b:after {
  margin: -3px 0 0 -2px;
  -webkit-transform: rotate(45deg) scale(.3);
  transform: rotate(45deg) scale(.3);
}

.biscuitman summary {
  cursor: pointer;
  anchor-name: --bm;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100%;
  padding: 5px 80px 10px 10px;
  display: -webkit-flex;
  display: flex;
  position: relative;
}

.biscuitman summary b {
  margin-bottom: 3px;
}

.biscuitman summary b:after {
  content: "";
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  border: 5px solid rgba(0,0,0, .4);
  border-top-color: rgba(0, 0, 0, 0);
  border-left-color: rgba(0, 0, 0, 0);
  border-radius: 2px;
  width: 1em;
  height: 1em;
  margin: -2px 0 0 -4px;
  display: block;
  -webkit-transform: rotate(-45deg) scale(.3);
  transform: rotate(-45deg) scale(.3);
}

.biscuitman summary p {
  font-size: 14px;
}

.biscuitman summary > * {
  display: -webkit-inline-flex;
  display: inline-flex;
}

.biscuitman summary::-webkit-details-marker {
  display: none;
}

.biscuitman dl {
  background: rgba(0,0,0, .08);
  margin: 10px;
  padding: 10px;
  display: -webkit-flex;
  display: flex;
}

.biscuitman dl dt {
  font-size: 12px;
}

.biscuitman dl dd {
  font-size: 12px;
}

.biscuitman dl dt {
  min-width: 120px;
  padding-right: 30px;
  font-weight: bold;
}

.biscuitman label {
  top: 15px;
  top: calc(anchor(--bm center) - 14px);
  position: absolute;
  right: 31px;
}

.biscuitman label i {
  --bm-h: 1.2em;
  --bm-w: 2.3em;
  height: 1.2em;
  width: 2.3em;
  background-color: rgba(0,0,0, .3);
  border-radius: 1.2em;
  font-size: 20px;
  display: block;
  position: relative;
}

.biscuitman label i:before {
  content: "";
  background: #fff;
  height: 1.2em;
  width: 1.2em;
  border-radius: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%) scale(.8);
  transform: translateY(-50%) scale(.8);
}

.biscuitman label input {
  opacity: 0;
  position: absolute;
}

.biscuitman label :checked + i {
  background-color: #105d89;
}

.biscuitman label :checked + i:before {
  left: auto;
  right: 0;
}

.biscuitman label :disabled + i {
  opacity: .5;
}

.biscuitman label :focus-visible + i {
  outline: auto highlight;
}

.bm-dialog-polyfill .biscuitman dialog {
  position: fixed;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
