/**
 * IBRA Cookie Consent — self-contained banner styles. Everything is scoped
 * under .icc-* and uses logical properties, so it renders correctly on any
 * theme in both RTL and LTR. The accent color comes from the settings via
 * the --icc-accent custom property.
 */
.icc-banner {
  position: fixed;
  bottom: 16px;
  z-index: 99990;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 680px;
  padding: 24px;
  border: 1px solid rgba(20, 21, 25, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(20, 21, 25, 0.4);
  color: #141519;
  font-size: 16px;
  line-height: 1.5;
}

.icc-banner[hidden],
.icc-choices[hidden],
.icc-actions [hidden] {
  display: none;
}

.icc-bottom-center { inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"].icc-bottom-center { transform: translateX(50%); }
.icc-bottom-right { right: 16px; }
.icc-bottom-left { left: 16px; }

.icc-title {
  font-size: 1.0625em;
  font-weight: 600;
}

.icc-text {
  margin: 8px 0 0;
  font-size: 0.84375em;
  line-height: 1.6;
  color: #3d414a;
}

.icc-text a {
  color: inherit;
  text-decoration: underline;
}

.icc-choices {
  margin-top: 16px;
  border-top: 1px solid rgba(20, 21, 25, 0.08);
  padding-top: 16px;
}

.icc-choice {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  cursor: pointer;
}

.icc-choice input {
  flex-shrink: 0;
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--icc-accent, #141519);
}

.icc-choice-label {
  display: block;
  font-size: 0.875em;
  font-weight: 500;
}

.icc-choice-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.78125em;
  line-height: 1.5;
  color: #5a5f6b;
}

.icc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.icc-button {
  cursor: pointer;
  border-radius: 980px;
  padding: 10px 24px;
  font: inherit;
  font-size: 0.90625em;
  line-height: 1.2;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.icc-primary {
  border: 1px solid var(--icc-accent, #141519);
  background: var(--icc-accent, #141519);
  color: #fff;
}

.icc-primary:hover { opacity: 0.85; }

.icc-secondary {
  border: 1px solid rgba(20, 21, 25, 0.2);
  background: transparent;
  color: inherit;
}

.icc-secondary:hover { border-color: currentColor; }

.icc-customize {
  margin-inline-start: auto;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 10px 0;
  font: inherit;
  font-size: 0.84375em;
  color: #5a5f6b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icc-customize:hover { color: var(--icc-accent, #141519); }

.icc-settings-link {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icc-floating {
  position: fixed;
  bottom: 16px;
  z-index: 99989;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 1px solid rgba(20, 21, 25, 0.12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(20, 21, 25, 0.4);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 600px) {
  .icc-banner { padding: 20px; }
}
