/* Shared modal chrome + close control for Absolute marketing modals */

.aa-modal-chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex: 0 0 auto;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    1.15rem
    0.85rem;
  border-bottom: 1px solid rgba(12, 27, 51, 0.1);
  background: #fff;
  position: relative;
  z-index: 3;
}

.aa-modal-chrome > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.aa-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1.5px solid #0c1b33;
  border-radius: 50%;
  background: #fff;
  color: #0c1b33;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 4;
}

.aa-modal-close svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.aa-modal-close:hover,
.aa-modal-close:focus-visible {
  background: #0c1b33;
  color: #fff;
  outline: none;
}
