/** Shopify CDN: Minification failed

Line 226:0 Expected "}" to go with "{"

**/
/* assets/component-custom-widget.css */

/* Globale Variablen für Farben, Größen, Abstände */
:root {
  --cw-bg-color: #000;                /* Icon‑Button Hintergrund */
  --cw-cta-bg:   #000;                /* Anmelden/Erstellen Button */
  --cw-cta-color:#fff;                /* Button‑Text */
  --cw-link-color:#000;               /* Registrieren Link */
  --cw-modal-bg: #fff;
  /* …und alle anderen Variablen aus dem letzten CSS‑Block… */
}

/* Der Floating‑Button */
.custom-widget {
  position: fixed;
  /* Position per inline‑Style im Liquid gesetzt */
  width:  var(--cw-widget-width,80px);
  height: var(--cw-widget-height,80px);
  background-color: var(--cw-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

/* Icon im Button */
.custom-widget__icon {
  width: 60%;
  height: 60%;
}
.custom-widget__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal unsichtbar standard */
.custom-widget-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.custom-widget-modal[aria-hidden="false"] {
  display: flex;
}

/* Backdrop */
.custom-widget-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* Modal Window */
.custom-widget-modal__window {
  background: var(--cw-modal-bg);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.2);
  width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  font-family: inherit;
}

/* Close Button */
.custom-widget-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Header */
.custom-widget-modal__header {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  position: relative;
}
.custom-widget-modal__header h2 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Body */
.custom-widget-modal__body {
  padding: 24px;
}
.cw-modal__form label {
  display: block;
  margin-top: 8px;
  font-weight: 500;
}
.cw-modal__form input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cw-modal__cta {
  display: block;
  width: 100%;
  margin: 16px 0;
  padding: 12px;
  background-color: var(--cw-cta-bg);
  color:            var(--cw-cta-color);
  text-align:       center;
  border:           none;
  border-radius:    8px;
  font-weight:      600;
  cursor:           pointer;
}
.cw-modal__small {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 8px;
}
.cw-modal__small a {
  color: var(--cw-link-color);
  text-decoration: underline;
}

/* Profil‑Liste */
.cw-modal__profile {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.cw-modal__profile li + li {
  margin-top: 8px;
}
.cw-modal__profile a {
  display: block;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

/* No‑scroll wenn Modal offen */
.no-scroll { overflow: hidden; }
/* assets/component-custom-widget.css */

.custom-widget {
  /* Mobile Default */
  width: var(--cw-mobile-width);
  height: var(--cw-mobile-height);
  /* Position, Hintergrund, etc. bereits inline gesetzt */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

@media screen and (min-width: 750px) {
  .custom-widget {
    /* Desktop */}
.custom-widget-modal__window {
  position: relative;
  z-index: 2;
}

.custom-widget-modal__window {
  position: relative !important;
  z-index: 1050 !important;
}

/* X-Button immer sichtbar – auch bei Header-Bild! */
.custom-widget-modal__close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  background: rgba(255,255,255,0.97) !important;
  color: #191919 !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 2rem !important;
  font-weight: bold !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1100 !important; /* Sehr hoch! */
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  transition: background 0.12s;
}
.custom-widget-modal__close:hover {
  background: #eee !important;
  color: #000 !important;
}

/* Header darf das X niemals überdecken */
.custom-widget-modal__header {
  position: relative !important;
  z-index: 1 !important;
}
