html.newbean-tasting-open,
html.newbean-tasting-open body { overflow: hidden; }

[data-tasting-trigger] { cursor: pointer; }

dialog.newbean-tasting-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line, #ddd6d1);
  border-radius: 4px;
  color: var(--ink, #2b2b2b);
  background: var(--white, #fdfdfc);
  box-shadow: 0 24px 80px rgb(0 0 0 / 20%);
  overflow: auto;
  overscroll-behavior: contain;
}

.newbean-tasting-dialog::backdrop {
  background: rgb(43 43 43 / 60%);
  backdrop-filter: blur(3px);
}

.newbean-tasting-dialog [hidden] { display: none !important; }
.newbean-tasting-inner { position: relative; padding: 40px; }
.newbean-tasting-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.newbean-tasting-label {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: .08em;
}
.newbean-tasting-dialog h2 {
  margin: 0 20px 12px 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.newbean-tasting-intro {
  margin: 0 0 26px;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.55;
}
.newbean-tasting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.newbean-tasting-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
}
.newbean-tasting-wide { grid-column: 1 / -1; }
.newbean-tasting-grid input,
.newbean-tasting-grid select,
.newbean-tasting-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line, #ddd6d1);
  border-radius: 0;
  background: var(--white, #fdfdfc);
  font: inherit;
  font-size: 16px;
  color: inherit;
}
.newbean-tasting-grid textarea { resize: vertical; min-height: 96px; }
.newbean-tasting-grid :is(input, select, textarea):focus-visible,
.newbean-tasting-dialog button:focus-visible,
.newbean-tasting-dialog a:focus-visible,
[data-tasting-trigger]:focus-visible {
  outline: 2px solid var(--ink, #2b2b2b);
  outline-offset: 3px;
}
.newbean-tasting-honey { display: none !important; }
.newbean-tasting-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid var(--ink, #2b2b2b);
  background: var(--ink, #2b2b2b);
  color: var(--white, #fdfdfc);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
  cursor: pointer;
}
.newbean-tasting-submit:hover { background: #444; }
.newbean-tasting-submit:disabled { opacity: .6; cursor: wait; }
.newbean-tasting-note { margin-top: 12px; font-size: 11px; line-height: 1.5; }
.newbean-tasting-status { margin-top: 16px; font-size: 13px; line-height: 1.5; }
.newbean-tasting-status--error { color: #78184a; }
.newbean-tasting-fallback { margin-top: 6px; font-size: 13px; }
.newbean-tasting-fallback a { border-bottom: 1px solid currentColor; }
.newbean-tasting-success { padding: 20px 0 4px; }
.newbean-tasting-success h3 { margin-bottom: 12px; font-size: 28px; font-weight: 400; }
.newbean-tasting-success p { font-size: 15px; line-height: 1.55; }

@media (max-width: 540px) {
  .newbean-tasting-inner { padding: 30px 22px 24px; }
  .newbean-tasting-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}
