.xmla-cookie-root,
.xmla-cookie-root *,
.xmla-cookie-modal,
.xmla-cookie-modal *,
.xmla-cookie-floating {
  box-sizing: border-box;
}

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

.xmla-cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  color: #172033 !important;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
  font-family: inherit;
}

.xmla-cookie-copy h2 {
  margin: 0 0 6px;
  color: #111827 !important;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none !important;
}

.xmla-cookie-copy p {
  margin: 0;
  max-width: 760px;
  color: #334155 !important;
  font-size: 14px;
  line-height: 1.45;
  text-shadow: none !important;
}

.xmla-cookie-policy {
  display: inline-flex;
  margin-top: 8px;
  color: #215db8;
  font-size: 13px;
  text-decoration: underline;
}

.xmla-cookie-actions,
.xmla-cookie-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.xmla-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #b6c2d3;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.xmla-cookie-btn-label {
  display: inline-block;
  color: inherit !important;
  -webkit-text-fill-color: currentcolor !important;
  line-height: 1.2;
  text-shadow: none !important;
}

.xmla-cookie-btn-primary {
  color: #ffffff !important;
  background: #17635a;
  border-color: #17635a;
  text-shadow: none !important;
}

.xmla-cookie-btn-primary:hover,
.xmla-cookie-btn-primary:focus {
  color: #ffffff !important;
  background: #104c45;
  border-color: #104c45;
}

.xmla-cookie-btn-secondary {
  color: #172033 !important;
  background: #f8fafc;
  border-color: #9ca9bb;
  text-shadow: none !important;
}

.xmla-cookie-btn-secondary:hover,
.xmla-cookie-btn-secondary:focus {
  color: #172033 !important;
  background: #e8eef6;
  border-color: #748399;
}

.xmla-cookie-panel-foot .xmla-cookie-btn-secondary,
.xmla-cookie-panel-foot .xmla-cookie-btn-secondary:hover,
.xmla-cookie-panel-foot .xmla-cookie-btn-secondary:focus {
  color: #172033 !important;
  background: #e8eef6 !important;
  border-color: #748399 !important;
}

.xmla-cookie-panel-foot .xmla-cookie-btn-secondary .xmla-cookie-btn-label,
.xmla-cookie-panel-foot .xmla-cookie-btn-secondary:hover .xmla-cookie-btn-label,
.xmla-cookie-panel-foot .xmla-cookie-btn-secondary:focus .xmla-cookie-btn-label {
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  text-shadow: none !important;
}

.xmla-cookie-panel-foot .xmla-cookie-btn-primary .xmla-cookie-btn-label,
.xmla-cookie-panel-foot .xmla-cookie-btn-primary:hover .xmla-cookie-btn-label,
.xmla-cookie-panel-foot .xmla-cookie-btn-primary:focus .xmla-cookie-btn-label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

.xmla-cookie-floating {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 2147482999;
  min-width: 84px;
  min-height: 40px;
  padding: 9px 12px;
  color: #ffffff !important;
  background: #172033;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
}

.xmla-cookie-floating:hover,
.xmla-cookie-floating:focus {
  color: #ffffff !important;
  background: #26324a;
}

.xmla-cookie-icon-btn:hover,
.xmla-cookie-icon-btn:focus {
  color: #111827 !important;
  background: #f8fafc;
}

.xmla-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
}

.xmla-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.xmla-cookie-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  transform: translate(-50%, -50%);
  color: #172033 !important;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
  font-family: inherit;
  overflow: hidden;
}

.xmla-cookie-panel-head,
.xmla-cookie-panel-foot {
  padding: 16px;
  border-bottom: 1px solid #e6ebf2;
}

.xmla-cookie-panel-foot {
  border-top: 1px solid #e6ebf2;
  border-bottom: 0;
}

.xmla-cookie-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xmla-cookie-panel-head h2 {
  margin: 0;
  color: #111827 !important;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none !important;
}

.xmla-cookie-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #334155 !important;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  line-height: 30px;
  text-shadow: none !important;
}

.xmla-cookie-panel-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.xmla-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  color: #172033 !important;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fbfcfe;
  text-shadow: none !important;
}

.xmla-cookie-category strong {
  display: block;
  margin-bottom: 4px;
  color: #111827 !important;
  font-size: 14px;
  line-height: 1.25;
  text-shadow: none !important;
}

.xmla-cookie-category small {
  display: block;
  color: #526179 !important;
  font-size: 13px;
  line-height: 1.35;
  text-shadow: none !important;
}

.xmla-cookie-banner:hover h2,
.xmla-cookie-banner:hover p,
.xmla-cookie-panel:hover h2,
.xmla-cookie-panel:hover .xmla-cookie-category,
.xmla-cookie-panel:hover .xmla-cookie-category strong,
.xmla-cookie-panel:hover .xmla-cookie-category small,
.xmla-cookie-category:hover,
.xmla-cookie-category:hover strong,
.xmla-cookie-category:hover small,
.xmla-cookie-category:focus-within,
.xmla-cookie-category:focus-within strong,
.xmla-cookie-category:focus-within small,
.xmla-cookie-btn:hover,
.xmla-cookie-btn:focus,
.xmla-cookie-icon-btn:hover,
.xmla-cookie-icon-btn:focus {
  text-shadow: none !important;
}

.xmla-cookie-panel:hover h2,
.xmla-cookie-category:hover strong,
.xmla-cookie-category:focus-within strong {
  color: #111827 !important;
}

.xmla-cookie-banner:hover p,
.xmla-cookie-category:hover small,
.xmla-cookie-category:focus-within small {
  color: #526179 !important;
}

.xmla-cookie-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xmla-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  background: #c5cedb;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.xmla-cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}

.xmla-cookie-category input:checked + .xmla-cookie-switch {
  background: #17635a;
}

.xmla-cookie-category input:checked + .xmla-cookie-switch::after {
  transform: translateX(20px);
}

.xmla-cookie-category input:disabled + .xmla-cookie-switch {
  background: #7a8699;
}

.xmla-cookie-policy-block {
  padding: 16px 0;
}

.xmla-cookie-policy-block h2,
.xmla-cookie-policy-block h3 {
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .xmla-cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 15px;
  }

  .xmla-cookie-actions,
  .xmla-cookie-panel-foot {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .xmla-cookie-btn {
    width: 100%;
  }

  .xmla-cookie-floating {
    bottom: 12px;
    left: 12px;
  }

  .xmla-cookie-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
}
