.shopstor-cookie-consent[hidden],
.shopstor-cookie-settings[hidden] {
  display: none !important;
}

.shopstor-cookie-consent {
  position: fixed;
  z-index: 100000;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  padding: 16px;
  border-top: 1px solid rgba(14, 13, 15, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #0e0d0f;
  box-shadow: 0 -12px 40px rgba(14, 13, 15, 0.12);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.shopstor-cookie-consent *,
.shopstor-cookie-settings {
  box-sizing: border-box;
}

.shopstor-cookie-consent__panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.shopstor-cookie-consent__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.shopstor-cookie-consent__text {
  margin: 0;
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.5;
}

.shopstor-cookie-consent__text a {
  color: #6b3c2b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shopstor-cookie-consent__categories {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.shopstor-cookie-consent__category {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.shopstor-cookie-consent__category input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #6b3c2b;
}

.shopstor-cookie-consent__category input:disabled {
  cursor: not-allowed;
}

.shopstor-cookie-consent__category-copy {
  display: grid;
  gap: 2px;
}

.shopstor-cookie-consent__category-title {
  font-weight: 700;
}

.shopstor-cookie-consent__category-description {
  color: rgba(14, 13, 15, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.shopstor-cookie-consent__actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.shopstor-cookie-consent__button,
.shopstor-cookie-settings {
  min-height: 44px;
  border: 1px solid #6b3c2b;
  border-radius: 5px;
  padding: 10px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.shopstor-cookie-consent__button--primary {
  background: #6b3c2b;
  color: #fff;
}

.shopstor-cookie-consent__button--primary:hover {
  background: #4b291e;
}

.shopstor-cookie-consent__button--secondary {
  background: transparent;
  color: #6b3c2b;
}

.shopstor-cookie-consent__button--secondary:hover {
  background: rgba(107, 60, 43, 0.08);
}

.shopstor-cookie-consent__button:focus-visible,
.shopstor-cookie-settings:focus-visible,
.shopstor-cookie-consent__text a:focus-visible,
.shopstor-cookie-consent__category input:focus-visible {
  outline: 3px solid #c39168;
  outline-offset: 3px;
}

.shopstor-cookie-settings {
  position: fixed;
  z-index: 99998;
  bottom: 16px;
  left: 16px;
  background: #fff;
  color: #6b3c2b;
  box-shadow: 0 2px 12px rgba(14, 13, 15, 0.16);
}

.shopstor-cookie-settings:hover {
  background: #f7f2ef;
}

@media (max-width: 760px) {
  .shopstor-cookie-consent {
    padding: 12px;
  }

  .shopstor-cookie-consent__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-height: min(82vh, 620px);
    overflow-y: auto;
    padding: 4px 2px 2px;
  }

  .shopstor-cookie-consent__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .shopstor-cookie-consent__button {
    padding: 10px 8px;
  }

  .shopstor-cookie-settings {
    bottom: 12px;
    left: 12px;
  }
}

@media (max-width: 380px) {
  .shopstor-cookie-consent__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
