.ecc-banner[hidden], .ecc-modal[hidden] { display: none !important; }

.ecc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #0000009a;
  color: #fff;
  border-radius: 0;
  padding: 16px;
  /* box-shadow: 0 10px 30px rgba(0,0,0,.25); */
  /* font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
}

.ecc-banner__content {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.ecc-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.ecc-body { font-size: 14px; line-height: 1.4; opacity: .92; }
.ecc-link { color: #fff; text-decoration: underline; }

.ecc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ecc-btn {
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.ecc-btn--primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.ecc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ecc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.ecc-modal__panel {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 8vh auto 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.ecc-modal__header, .ecc-modal__footer {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.ecc-modal__footer {
  border-top: 1px solid #eee;
  border-bottom: 0;
  display: flex;
  justify-content: flex-end;
}

.ecc-modal__title { font-weight: 800; font-size: 16px; }
.ecc-iconbtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  opacity: .8;
}
.ecc-modal__header { display:flex; align-items:center; justify-content:space-between; gap: 10px; }

.ecc-modal__body { padding: 16px; }

.ecc-cats { margin-top: 14px; display: grid; gap: 10px; }

.ecc-cat {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
}

.ecc-cat__row { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.ecc-cat__name { font-weight: 700; margin-bottom: 4px; }
.ecc-cat__desc { font-size: 13px; opacity: .85; }

.ecc-pill {
  background: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

/* switch */
.ecc-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.ecc-switch input { opacity: 0; width: 0; height: 0; }
.ecc-switch__slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #ddd; border-radius: 999px; transition: .2s;
}
.ecc-switch__slider:before {
  content:""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: white; border-radius: 50%; transition: .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ecc-switch input:checked + .ecc-switch__slider { background: #111; }
.ecc-switch input:checked + .ecc-switch__slider:before { transform: translateX(20px); }
