.noscroll {
  overflow: hidden;
}

aside#hsccNotice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: grid;
  justify-content: center;
  align-content: center;

  /**
   * Needs to be this high to cover WordPress bar for logged in users
   */
  z-index: 999999;
}

aside#hsccNotice {
  grid-template-columns: 1024px;
  grid-template-rows: 512px;

  background-color: #fffd;
  backdrop-filter: blur(4px);
}

aside#hsccBanner {
  position: fixed;
  bottom: 0;

  width: 100%;
  padding: 1em;

  background-color: #f4f4f4;
  border-top: 1px solid #d9d9d9;

  z-index: 9;
}

aside.hscc.hide,
aside.hscc .hide {
  display: none !important;
}

aside.hscc p {
  padding: 0;
  margin: 0 0 1em 0;
}

aside.hscc p:last-of-type {
  padding: 0;
  margin: 0;
}

aside.hscc .sectionWrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto max-content;
  align-content: space-between;

  background-color: #f4f4f4;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12),
              0 2px 2px rgba(0,0,0,0.12),
              0 4px 4px rgba(0,0,0,0.12),
              0 8px 8px rgba(0,0,0,0.12),
              0 16px 16px rgba(0,0,0,0.12);
  overflow: hidden;
}

aside.hscc section.main,
aside.hscc section.moreInformation,
aside.hscc section.actions {
  padding: 1.8em;
}

aside.hscc section.main {
  background-color: #fff;

  overflow: auto;
}

aside.hscc section.main .overview {
  margin-bottom: 1em;
}

aside.hscc section.moreInformation {
  overflow: auto;
}

aside.hscc section.actions {
  grid-column: 1 / 3;

  display: grid;
  grid-gap: 1em;
  grid-template-columns: repeat(2, max-content);
  grid-auto-rows: max-content;

  border-top: 1px dashed #d9d9d9;
  background-color: inherit;
}

aside.hscc h1,
aside.hscc h2,
aside.hscc h3,
aside.hscc h4,
aside.hscc h5,
aside.hscc h6 {
  padding: 0;
  margin-bottom: 0.4em;
}

aside.hscc h3 {
  margin-top: 1em;
}

aside.hscc ul {
  all: revert;

  margin: 0;

  list-style-type: disclosure-closed;
}

aside.hscc p {
  line-height: 1.7;
}

aside.hscc details {
  margin-bottom: 1em;

  border-radius: 4px;
  color: #fff;
  background-color: #333;
}

aside.hscc details[open],
aside.hscc details:hover {
  background-color: #444;
}

aside.hscc details summary,
aside.hscc details div {
  padding: 1rem;
}

aside.hscc details h4 {
  margin: 1em 0 0 0;

  font-size: 1.08em;
  font-weight: bolder;
}

aside.hscc details summary {
  user-select: none;
  cursor: pointer;
}

aside.hscc details div {
  color: #555;
  background-color: #fff;
}

aside.hscc details h4:first-of-type {
  margin: 0;
}

aside.hscc .status {
  padding: 1em;
  margin-bottom: 1em;

  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;

  overflow: hidden;
}

aside.hscc .status h3 {
  margin-top: 0;
  padding: 1em;
  margin: -1em -1em 1em -1em;

  font-size: 1em;
  text-transform: uppercase;
  color: #fff;
  background-color: #333;
  cursor: default;
}

aside.hscc .status#trackingDisabled h3 {
  background-color: gray;
}

aside.hscc .status#trackingEnabled h3 {
  background-color: var(--color-green);
}

aside.hscc .button,
aside.hscc button {
  display: inline-block;

  padding: 1em 2em;
  font-size: 1em;

  color: #fff;
  cursor: pointer;
  background-color: gray;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

aside.hscc .button.small {
  padding: 0.2em 0.8em;
  height: 100%;
}

aside.hscc .button.primary,
aside.hscc button.primary {
  background-color: var(--color-green);
}

aside.hscc button[disabled] {
  opacity: 0.2;

  cursor: default;
}

/**
 * Icons
 */
 .hscc .icon::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;

  position: relative;
  top: -2px;

  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  vertical-align: middle;
}

.hscc .icon.invert::before {
  filter: invert(100%);
}

.hscc .icon.enabled::before {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiB3aWR0aD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGg0OHY0OEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0yNCA0QzEyLjk1IDQgNCAxMi45NSA0IDI0YzAgMTEuMDQgOC45NSAyMCAyMCAyMCAxMS4wNCAwIDIwLTguOTYgMjAtMjAgMC0xMS4wNS04Ljk2LTIwLTIwLTIwem0tNCAzMEwxMCAyNGwyLjgzLTIuODNMMjAgMjguMzRsMTUuMTctMTUuMTdMMzggMTYgMjAgMzR6Ii8+PC9zdmc+);
}

.hscc .icon.disabled::before {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiB3aWR0aD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGg0OHY0OEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0yNCA0QzEyLjk1IDQgNCAxMi45NSA0IDI0czguOTUgMjAgMjAgMjAgMjAtOC45NSAyMC0yMFMzNS4wNSA0IDI0IDR6bTAgMzZjLTguODQgMC0xNi03LjE2LTE2LTE2IDAtMy43IDEuMjctNy4wOSAzLjM3LTkuOEwzMy44IDM2LjYzQzMxLjA5IDM4LjczIDI3LjcgNDAgMjQgNDB6bTEyLjYzLTYuMkwxNC4yIDExLjM3QzE2LjkxIDkuMjcgMjAuMyA4IDI0IDhjOC44NCAwIDE2IDcuMTYgMTYgMTYgMCAzLjctMS4yNyA3LjA5LTMuMzcgOS44eiIvPjwvc3ZnPg==);
}


/**
 * Animations
 */
.hscc .fadeIn {
  animation: fadeIn 0.8s;
}

@keyframes fadeIn {
  0% {
    display: block;
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/**
 * Media Queries
 */
@media (max-width: 1024px), (max-height: 512px) {
  aside#hsccNotice {
    grid-template-columns: 100vw;
    grid-template-rows: 100vh;
  }
}

@media (max-width: 768px) {
  aside.hscc {
    --sizeFactor: calc(0.8vw + 0.8vh);

    overflow: auto;
  }

  aside.hscc section.main,
  aside.hscc section.moreInformation,
  aside.hscc section.actions {
    padding: 0.8em;
  }

  aside.hscc section.moreInformation {
    border-top: 1px dashed #d9d9d9;
  }

  aside.hscc .sectionWrapper {
    grid-template-columns: auto;
    grid-template-rows: repeat(3, max-content);

    overflow: auto;
  }

  aside.hscc section.actions {
    grid-template-columns: repeat(2, minmax(min-content, max-content));
    grid-column: unset;

    position: sticky;
    bottom: 0;
  }

  aside.hscc .status {
    padding: var(--sizeFactor);
    margin-bottom: var(--sizeFactor);
  }

  aside.hscc .status h3 {
    padding: var(--sizeFactor);
    margin: calc(var(--sizeFactor) * -1) calc(var(--sizeFactor) * -1) var(--sizeFactor) calc(var(--sizeFactor) * -1);
  }

  aside.hscc details summary,
  aside.hscc details div {
    padding: var(--sizeFactor);
  }

  aside.hscc details h4 {
    margin: var(--sizeFactor) 0 0 0;
  }

  aside.hscc button {
    padding: var(--sizeFactor) calc(var(--sizeFactor) * 2);
  }
}
