.mc-newsletter-banner-wrap {
  width: 100%;
}

.mc-newsletter-banner-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.mc-newsletter-banner-trigger:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.mc-newsletter-banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.mc-newsletter-modal[hidden] {
  display: none;
}

.mc-newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mc-newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mc-newsletter-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px 28px 24px;
  background: #f7f1ea;
  color: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.mc-newsletter-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mc-newsletter-modal-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}

.mc-newsletter-modal-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

.mc-newsletter-field {
  margin-bottom: 16px;
}

.mc-newsletter-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mc-newsletter-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9bfb3;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  outline: none;
  box-shadow: none;
}

.mc-newsletter-field input:focus,
.mc-newsletter-field input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: #111;
}

.mc-newsletter-modal-close:focus,
.mc-newsletter-modal-close:focus-visible,
.mc-newsletter-submit:focus,
.mc-newsletter-submit:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Override Bricks global :focus-visible ring inside the popup only */
body.bricks-is-frontend.bricks-is-frontend .mc-newsletter-modal :focus,
body.bricks-is-frontend.bricks-is-frontend .mc-newsletter-modal :focus-visible {
  outline: none !important;
  outline-width: 0 !important;
  outline-color: transparent !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

body.bricks-is-frontend.bricks-is-frontend .mc-newsletter-modal .mc-newsletter-field input:focus,
body.bricks-is-frontend.bricks-is-frontend .mc-newsletter-modal .mc-newsletter-field input:focus-visible {
  border-color: #111;
}

.mc-newsletter-message {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.mc-newsletter-message.is-error {
  color: #b00020;
}

.mc-newsletter-message.is-success {
  color: #1b5e20;
}

.mc-newsletter-submit {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.mc-newsletter-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mc-newsletter-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
}
