.aaa-es-open {
  overflow: hidden !important;
}

.aaa-es-feedback-button {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 2147482900;
  display: grid;
  gap: 1px;
  min-width: 116px;
  padding: 11px 16px;
  border: 1px solid rgba(44, 36, 36, 0.15);
  border-radius: 999px;
  background: #2c2424;
  box-shadow: 0 10px 32px rgba(44, 36, 36, 0.25);
  color: #fff;
  font: 600 13px/1.2 Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  cursor: pointer;
}

.aaa-es-feedback-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 500;
}

.aaa-es-feedback-button:hover,
.aaa-es-feedback-button:focus-visible {
  background: #4a3c3c;
  transform: translateY(-1px);
}

.aaa-es-overlay[hidden],
.aaa-es-feedback-button[hidden],
.aaa-es-other[hidden],
.aaa-es-choices[hidden] {
  display: none !important;
}

.aaa-es-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(28, 22, 22, 0.52);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.aaa-es-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid rgba(44, 36, 36, 0.1);
  border-radius: 22px;
  background: #fffdfb;
  box-shadow: 0 28px 90px rgba(30, 22, 22, 0.28);
  color: #2c2424;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: aaa-es-enter 180ms ease-out both;
}

.aaa-es-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eeea;
  color: #5f5350;
  font: 400 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.aaa-es-close:hover,
.aaa-es-close:focus-visible {
  background: #eadfda;
  color: #2c2424;
}

.aaa-es-eyebrow {
  margin: 0 48px 8px 0 !important;
  color: #bf5f6a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.4 !important;
}

.aaa-es-title {
  margin: 0 46px 7px 0 !important;
  color: #2c2424 !important;
  font-size: clamp(21px, 3vw, 28px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.3 !important;
}

.aaa-es-subtitle {
  margin: 0 42px 22px 0 !important;
  color: #766a66 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.aaa-es-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.aaa-es-choice {
  display: grid;
  gap: 3px;
  min-height: 65px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #e6deda;
  border-radius: 12px;
  background: #fff;
  color: #2c2424;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.aaa-es-choice span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.aaa-es-choice small {
  color: #80736f;
  font-size: 11px;
  line-height: 1.3;
}

.aaa-es-choice:hover,
.aaa-es-choice:focus-visible {
  border-color: #df8e97;
  background: #fff4f4;
  outline: 2px solid rgba(223, 142, 151, 0.18);
}

.aaa-es-choice.is-selected {
  border-color: #c95f6b;
  background: #fff0f1;
  box-shadow: inset 0 0 0 1px #c95f6b;
}

.aaa-es-choice.is-selected::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 11px;
  color: #b43f4c;
  font-size: 16px;
  font-weight: 800;
}

.aaa-es-choice {
  position: relative;
  padding-right: 36px;
}

.aaa-es-other {
  display: grid;
  gap: 12px;
}

.aaa-es-other-input {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #d9cfca;
  border-radius: 12px;
  background: #fff;
  color: #2c2424;
  font: 14px/1.5 inherit;
  resize: vertical;
}

.aaa-es-other-input:focus {
  border-color: #d77580;
  outline: 3px solid rgba(215, 117, 128, 0.16);
}

.aaa-es-other-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.aaa-es-choice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.aaa-es-selection-hint {
  color: #80736f;
  font-size: 11px;
  line-height: 1.4;
}

.aaa-es-submit:disabled {
  border-color: #d9cfca;
  background: #e8e2df;
  color: #958985;
  cursor: not-allowed;
}

.aaa-es-secondary,
.aaa-es-submit {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font: 700 13px/1 inherit;
  cursor: pointer;
}

.aaa-es-secondary {
  border: 1px solid #d9cfca;
  background: #fff;
  color: #5f5350;
}

.aaa-es-submit {
  border: 1px solid #2c2424;
  background: #2c2424;
  color: #fff;
}

.aaa-es-status {
  min-height: 0;
  margin-top: 12px;
  color: #756965;
  font-size: 13px;
}

.aaa-es-status:empty {
  display: none;
}

.aaa-es-success {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: 14px;
  background: #f2f8f3;
  color: #245d35;
  text-align: center;
}

.aaa-es-success strong {
  font-size: 18px;
}

.aaa-es-success span {
  font-size: 13px;
}

.aaa-es-error {
  color: #ad2734;
  font-weight: 650;
}

.aaa-es-privacy {
  margin: 16px 0 0 !important;
  color: #958985 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  text-align: center;
}

@keyframes aaa-es-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .aaa-es-feedback-button {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    min-width: 164px;
    padding: 14px 20px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 48px rgba(44, 36, 36, 0.34);
    font-size: 15px;
  }

  .aaa-es-feedback-button:hover,
  .aaa-es-feedback-button:focus-visible {
    transform: translate(-50%, calc(-50% - 1px));
  }

  .aaa-es-overlay {
    place-items: center;
    padding: 16px;
  }

  .aaa-es-dialog {
    width: min(100%, 520px);
    max-height: calc(100vh - 32px);
    padding: 24px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .aaa-es-close {
    top: 12px;
    right: 12px;
  }

  .aaa-es-title {
    margin-right: 42px !important;
    font-size: 21px !important;
  }

  .aaa-es-subtitle {
    margin-right: 28px !important;
    margin-bottom: 17px !important;
    font-size: 13px !important;
  }

  .aaa-es-choices {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .aaa-es-choice {
    min-height: 54px;
    padding: 9px 12px;
  }

  .aaa-es-choice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .aaa-es-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aaa-es-dialog {
    animation: none;
  }
}
