/* iClick Subscription Manager */
.icsm-locked {
  margin: 1.5em 0;
  padding: 1.25em;
  border: 1px solid #dfe5f2;
  border-radius: 8px;
  background: #f5f8fd;
  text-align: center;
}

.icsm-locked__text {
  margin: 0 0 0.75em;
  font-weight: 600;
}

.icsm-button {
  display: inline-block;
  padding: 0.6em 1.4em;
  border: 0;
  border-radius: 6px;
  background: var(--primary, #426dc7);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.icsm-button:hover,
.icsm-button:focus-visible {
  filter: brightness(0.92);
  color: #fff;
}

.icsm-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.icsm-popup[hidden] {
  display: none;
}

.icsm-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.icsm-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.icsm-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 24px 20px;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-family: var(--primary-font, inherit);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.icsm-popup__close {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: #666;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.icsm-popup__title {
  margin: 0 0 0.4em;
  font-size: 1.35em;
  line-height: 1.3;
}

.icsm-popup__text {
  margin: 0 0 1em;
  color: #555;
}

.icsm-form input[type="text"],
.icsm-form input[type="email"] {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0.6em 0.75em;
  border: 1px solid #ccd3e0;
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}

.icsm-form__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0 14px;
  font-size: 0.9em;
  line-height: 1.4;
}

.icsm-form__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.icsm-form .icsm-button {
  width: 100%;
}

.icsm-form__message {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: #1a7f37;
  font-size: 0.95em;
}

.icsm-form__message.is-error {
  color: #c62828;
}

/* Class rules above set display, which would otherwise override [hidden]. */
.icsm-popup [hidden] {
  display: none !important;
}

.icsm-sent__text {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #eef7f0;
  color: #1a5c2e;
}

.icsm-sent .icsm-button {
  width: 100%;
}

.icsm-link-button {
  display: block;
  margin: 10px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--primary, #426dc7);
  font: inherit;
  font-size: 0.95em;
  text-decoration: underline;
  cursor: pointer;
}

.icsm-popup .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icsm-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.icsm-popup-open {
  overflow: hidden;
}
