.erreshop-cookie-banner[hidden],
.erreshop-cookie-modal[hidden] {
  display: none !important;
}

.erreshop-cookie-banner,
.erreshop-cookie-modal,
.erreshop-cookie-banner *,
.erreshop-cookie-modal * {
  box-sizing: border-box;
}

.erreshop-cookie-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2147483000;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #d9e1e5;
  border-radius: .4rem;
  background: #fff;
  color: #282d3b;
  box-shadow: 0 .8rem 3rem rgba(0, 0, 0, .25);
  font-size: 1.4rem;
  line-height: 1.55;
}

.erreshop-cookie-banner h2,
.erreshop-cookie-modal h2,
.erreshop-cookie-modal h3 {
  color: #282d3b;
  text-transform: none;
}

.erreshop-cookie-banner h2,
.erreshop-cookie-modal h2 {
  margin: 0 3rem 1rem 0;
  font-size: 2rem;
}

.erreshop-cookie-banner p {
  margin: 0 0 1.2rem;
}

.erreshop-cookie-banner a,
.erreshop-cookie-modal a {
  color: #006da8;
  text-decoration: underline;
}

.erreshop-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.erreshop-cookie-button {
  min-width: 14rem;
  min-height: 4.2rem;
  margin: 0;
  padding: .9rem 1.4rem;
  border: 2px solid #006da8;
  border-radius: .3rem;
  background: #006da8;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.erreshop-cookie-button:hover,
.erreshop-cookie-button:focus {
  border-color: #004f7a;
  background: #004f7a;
  color: #fff;
}

.erreshop-cookie-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #282d3b;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

.erreshop-cookie-button:focus-visible,
.erreshop-cookie-close:focus-visible,
.erreshop-cookie-switch input:focus-visible + span {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.erreshop-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, .62);
}

.erreshop-cookie-dialog {
  position: relative;
  width: 100%;
  max-width: 68rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.4rem;
  border-radius: .4rem;
  background: #fff;
  color: #282d3b;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .35);
  font-size: 1.4rem;
  line-height: 1.55;
}

.erreshop-cookie-category {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #d9e1e5;
  border-radius: .3rem;
}

.erreshop-cookie-category h3 {
  margin: 0 0 .5rem;
  font-size: 1.6rem;
}

.erreshop-cookie-category p {
  margin: 0;
}

.erreshop-cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: .6rem;
}

.erreshop-cookie-required {
  color: #28612c;
  font-weight: 700;
}

.erreshop-cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  color: #282d3b;
  font-weight: 700;
  cursor: pointer;
}

.erreshop-cookie-switch input {
  width: 2rem;
  height: 2rem;
  margin: 0;
}

body.erreshop-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .erreshop-cookie-banner {
    right: .8rem;
    bottom: .8rem;
    left: .8rem;
    padding: 1.6rem;
  }

  .erreshop-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .erreshop-cookie-button {
    width: 100%;
  }

  .erreshop-cookie-dialog {
    padding: 2rem 1.5rem;
  }

  .erreshop-cookie-category-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
