.aya27-open { overflow: hidden; }

.aya27-overlay,
.aya27-overlay * { box-sizing: border-box; }

.aya27-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(12, 16, 12, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.aya27-overlay.is-visible { opacity: 1; visibility: visible; }

.aya27-modal {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  overflow: hidden;
  padding: 32px 38px 27px;
  color: #171917;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0, rgba(94, 113, 68, .12), transparent 31%),
    linear-gradient(180deg, #fff 0%, #f8f8f4 100%);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, .38);
  transform: translateY(14px) scale(.985);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  isolation: isolate;
}

.aya27-overlay.is-visible .aya27-modal { transform: translateY(0) scale(1); }

.aya27-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #263625, #61754a, #263625);
}

.aya27-modal::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -65px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(80, 101, 58, .13);
  border-radius: 50%;
}

.aya27-close {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  color: #202420;
  font: 300 26px/1 Arial, sans-serif;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #d9ddd5;
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.aya27-close:hover,
.aya27-close:focus-visible {
  color: #fff;
  background: #263625;
  border-color: #263625;
  transform: rotate(4deg);
}

.aya27-logo {
  display: block;
  width: 164px;
  height: auto;
  margin: 0 auto 15px;
}

.aya27-eyebrow {
  margin: 0 0 10px;
  color: #61754a;
  font: 700 10px/1.45 Montserrat, Arial, sans-serif;
  letter-spacing: .16em;
}

.aya27-modal h2 {
  margin: 0;
  color: #171917;
  font: 700 clamp(28px, 5vw, 39px)/1.08 Montserrat, Arial, sans-serif;
  letter-spacing: -.035em;
}

.aya27-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px auto;
}

.aya27-rule::before,
.aya27-rule::after {
  content: "";
  width: 34px;
  height: 1px;
  background: #b9c3ae;
}

.aya27-rule span {
  width: 5px;
  height: 5px;
  background: #61754a;
  transform: rotate(45deg);
}

.aya27-text {
  max-width: 430px;
  margin: 0 auto;
  color: #484d47;
  font: 400 14px/1.55 Montserrat, Arial, sans-serif;
}

.aya27-note {
  margin: 10px 0 0;
  color: #747b72;
  font: 600 9px/1.45 Montserrat, Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.aya27-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.aya27-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  font: 600 12px/1.2 Montserrat, Arial, sans-serif;
  text-decoration: none !important;
  border-radius: 7px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.aya27-button:hover,
.aya27-button:focus-visible { transform: translateY(-2px); }

.aya27-primary {
  color: #fff !important;
  background: #566b43;
  border: 1px solid #566b43;
  box-shadow: 0 8px 20px rgba(71, 92, 54, .25);
}

.aya27-primary:hover,
.aya27-primary:focus-visible {
  background: #2e402b;
  border-color: #2e402b;
  box-shadow: 0 10px 25px rgba(46, 64, 43, .32);
}
.aya27-primary svg { width: 17px; flex: 0 0 17px; fill: currentColor; }

.aya27-secondary {
  color: #455a36 !important;
  background: #fff;
  border: 1px solid #8d9d7e;
}

.aya27-secondary:hover,
.aya27-secondary:focus-visible {
  color: #fff !important;
  background: #6b7f57;
  border-color: #6b7f57;
  box-shadow: 0 8px 20px rgba(71, 92, 54, .2);
}

.aya27-location {
  margin: 17px 0 0;
  color: #858b83;
  font: 600 9px/1.4 Montserrat, Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .aya27-overlay { padding: 12px; }

  .aya27-modal {
    width: calc(100vw - 24px);
    padding: 28px 20px 22px;
    border-radius: 15px;
  }

  .aya27-logo { width: 140px; margin-bottom: 11px; }
  .aya27-eyebrow { margin-bottom: 8px; font-size: 9px; letter-spacing: .12em; }
  .aya27-modal h2 { font-size: clamp(25px, 8.3vw, 33px); }
  .aya27-rule { margin: 11px auto; }
  .aya27-text { font-size: 12.5px; line-height: 1.5; }
  .aya27-note { margin-top: 8px; font-size: 8px; }

  .aya27-actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 7px;
    margin-top: 15px;
  }

  .aya27-button {
    min-width: 0;
    min-height: 43px;
    padding: 9px 10px;
    font-size: 10.5px;
  }

  .aya27-location { margin-top: 13px; font-size: 8px; }
}

@media (max-height: 660px) {
  .aya27-modal { padding-top: 24px; padding-bottom: 18px; }
  .aya27-logo { width: 125px; margin-bottom: 8px; }
  .aya27-eyebrow { margin-bottom: 6px; }
  .aya27-modal h2 { font-size: 27px; }
  .aya27-rule { margin: 9px auto; }
  .aya27-text { font-size: 12px; line-height: 1.4; }
  .aya27-note { margin-top: 7px; }
  .aya27-actions { margin-top: 12px; }
  .aya27-location { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .aya27-overlay,
  .aya27-modal,
  .aya27-button,
  .aya27-close { transition: none; }
}
