/* IOM Print Products — cookie consent (scoped, independent of Nicepage) */
.iom-cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(26, 26, 46, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.iom-cc-backdrop.iom-cc--visible {
  opacity: 1;
  visibility: visible;
}

.iom-cc-dialog {
  position: fixed;
  z-index: 2147483001;
  left: 1.25rem;
  right: auto;
  top: auto;
  /* Room for FAB below when reopening preferences */
  bottom: calc(1.25rem + 56px + 12px);
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom left;
  width: min(92vw, 440px);
  max-height: min(70vh, 560px);
  overflow: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  font-family: "Open Sans", "Roboto", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #212529;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(26, 26, 46, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

/* First visit: no FAB yet — panel sits in the corner */
.iom-cc-dialog.iom-cc-dialog--first {
  bottom: 1.25rem;
}

.iom-cc-dialog.iom-cc--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.iom-cc-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.iom-cc-dialog p {
  margin: 0 0 1.25rem;
  color: #3d3d4a;
}

.iom-cc-dialog a {
  color: #ea5d1d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iom-cc-dialog a:hover,
.iom-cc-dialog a:focus {
  color: #d95114;
}

.iom-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.iom-cc-btn {
  flex: 1 1 auto;
  min-width: calc(33.333% - 0.35rem);
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid #ea5d1d;
  background: #fff;
  color: #ea5d1d;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.iom-cc-btn:hover,
.iom-cc-btn:focus {
  background: rgba(234, 93, 29, 0.08);
  outline: none;
}

.iom-cc-btn:focus-visible {
  outline: 2px solid #ea5d1d;
  outline-offset: 2px;
}

.iom-cc-btn--primary {
  background: #ea5d1d;
  color: #fff;
  border-color: #ea5d1d;
}

.iom-cc-btn--primary:hover,
.iom-cc-btn--primary:focus {
  background: #d95114;
  border-color: #d95114;
  color: #fff;
}

.iom-cc-custom {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8e8ed;
}

.iom-cc-custom.iom-cc--open {
  display: block;
}

.iom-cc-custom h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.iom-cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.iom-cc-row p {
  margin: 0;
  font-size: 0.875rem;
  color: #3d3d4a;
}

.iom-cc-switch {
  flex-shrink: 0;
  position: relative;
  width: 48px;
  height: 26px;
}

.iom-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.iom-cc-switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c5c5cf;
  border-radius: 26px;
  transition: background 0.2s ease;
}

.iom-cc-switch span::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.iom-cc-switch input:checked + span {
  background: #ea5d1d;
}

.iom-cc-switch input:checked + span::before {
  transform: translateX(22px);
}

.iom-cc-switch input:focus-visible + span {
  outline: 2px solid #ea5d1d;
  outline-offset: 2px;
}

.iom-cc-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
}

.iom-cc-table {
  width: 100%;
  border-collapse: collapse;
  color: #3d3d4a;
}

.iom-cc-table th,
.iom-cc-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #e8e8ed;
  vertical-align: top;
}

.iom-cc-table th {
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}

.iom-cc-fab {
  position: fixed;
  z-index: 2147482999;
  bottom: 1.25rem;
  left: 1.25rem;
  right: auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ea5d1d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(234, 93, 29, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.iom-cc-fab.iom-cc--visible {
  display: flex;
}

.iom-cc-fab:hover,
.iom-cc-fab:focus {
  background: #d95114;
  transform: scale(1.05);
  outline: none;
}

.iom-cc-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.iom-cc-fab svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 520px) {
  .iom-cc-actions {
    flex-direction: column;
  }

  .iom-cc-btn {
    min-width: 100%;
  }

  .iom-cc-dialog {
    left: 1rem;
    bottom: calc(1rem + 52px + 10px);
    max-height: min(65vh, 520px);
  }

  .iom-cc-dialog.iom-cc-dialog--first {
    bottom: 1rem;
  }

  .iom-cc-fab {
    bottom: 1rem;
    left: 1rem;
    width: 52px;
    height: 52px;
  }
}
