#silktide-banner {
  position: fixed;
  z-index: 9999;
  display: none;
  max-width: 420px;
}
.st-pos-bottomLeft {
  left: 16px;
  bottom: 16px;
}
.st-pos-bottomRight {
  right: 16px;
  bottom: 16px;
}
.st-banner {
  background: #6d6d6d;
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.st-banner a {
  color: #4db6ff;
  text-decoration: underline;
}
.st-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.st-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.st-outline {
  background: transparent;
  color: #0ea5e9;
  border: 1px solid #0ea5e9;
}
.st-link {
  background: transparent;
  color: #fff;
}
.st-cookie-icon {
  position: fixed;
  z-index: 9998;
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 10px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.st-cookie-img {
  width: 32px;
  height: 32px;
  display: block;
}
.st-btn:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  #silktide-banner {
    max-width: 80vw;
  }
  .st-pos-bottomLeft {
    left: max(8px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
  }
  .st-pos-bottomRight {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
  }
  .st-banner {
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.25;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    max-height: 180px;
    overflow-y: auto;
  }
  .st-banner p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .st-actions {
    flex-direction: column;
    gap: 6px;
    position: sticky;
    bottom: 0;
    background: #6d6d6d;
    padding-top: 8px;
  }
  .st-btn {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 40px;
    width: 100%;
  }
  .st-outline {
    width: 100%;
  }
  .st-link {
    padding: 6px 8px;
    align-self: center;
  }
}
.st-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.st-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.st-modal-content {
  position: relative;
  margin: 64px auto;
  background: #fff;
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
}
.st-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}
.st-modal-body {
  padding: 16px 20px;
}
.st-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 12px 0;
}
.st-row-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.st-row-control input {
  width: 20px;
  height: 20px;
}
.st-modal-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #eee;
}
