/* ------------------------------------------------------------------------- *
 * Cookie-Consent-Popup 
 * ------------------------------------------------------------------------- */

.pshop-cookie-consent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 1rem;
  background: rgba(33, 37, 41, .55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pshop-cookie-consent.pshop-cookie-hidden {
  display: none;
}

.pshop-cookie-dialog {
  width: 100%;
  max-width: 56rem;
  max-height: 92vh;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Kopfbereich mit Intro und Hauptaktionen ---------------------------- */

.pshop-cookie-head {
  padding: 1.5rem 1.5rem 0 1.5rem;
  position: relative;
}

.pshop-cookie-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
}

.pshop-cookie-close:hover {
  color: #212529;
}

.pshop-cookie-head h2 {
  margin: 0 0 .75rem 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.pshop-cookie-head p {
  margin: 0 0 1rem 0;
  font-size: .95rem;
  line-height: 1.5;
}

.pshop-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.pshop-cookie-actions .btn {
  flex: 1 1 10rem;
  margin: 0 .75rem .75rem 0;
  padding: .65rem 1rem;
  font-size: 1rem;
}

.pshop-cookie-actions .btn:last-child {
  margin-right: 0;
}

/* ---- Aufklappbarer Detailbereich je Kategorie --------------------------- */

.pshop-cookie-details {
  display: none;
  overflow-y: auto;
  padding: 0 1.5rem;
  border-top: 1px solid #dee2e6;
}

.pshop-cookie-details.pshop-cookie-details-open {
  display: block;
}

.pshop-cookie-group {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.pshop-cookie-group:last-child {
  border-bottom: 0;
}

.pshop-cookie-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pshop-cookie-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-right: .5rem;
}

.pshop-cookie-badge {
  padding: .1rem .6rem;
  font-size: .8rem;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 1rem;
}

.pshop-cookie-toggle {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 400;
  cursor: pointer;
}

.pshop-cookie-toggle input {
  margin-right: .4rem;
}

.pshop-cookie-toggle input[disabled] {
  cursor: default;
}

.pshop-cookie-group p {
  margin: .5rem 0 .25rem 0;
  font-size: .9rem;
  line-height: 1.45;
  color: #495057;
}

.pshop-cookie-group ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: .875rem;
  color: #495057;
}

/* ---- Fussbereich: Speichern-Button nur im Detailmodus ------------------- */

.pshop-cookie-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid #dee2e6;
}

.pshop-cookie-foot .pshop-cookie-legal {
  margin-top: .75rem;
  font-size: .8rem;
  color: #6c757d;
}

#pshop-cookie-save {
  display: none;
}

.pshop-cookie-details-open ~ .pshop-cookie-foot #pshop-cookie-save {
  display: inline-block;
}

@media (max-width: 575.98px) {
  .pshop-cookie-actions .btn {
    flex: 1 1 100%;
    margin-right: 0;
  }
}
