:root {
  --fresh-catch-ink: #5f6a5a;
  --fresh-catch-green: #7fa66a;
  --fresh-catch-cream: #fffcf7;
}

.fresh-catch-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.fresh-catch-open,
html.fresh-catch-open body {
  overflow: hidden;
}

#fresh-catch-launcher {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  min-width: 44px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid rgba(95, 106, 90, 0.18);
  border-radius: 999px;
  background: var(--fresh-catch-cream);
  color: var(--fresh-catch-ink);
  box-shadow: 0 8px 28px rgba(67, 78, 61, 0.2);
  font: 700 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, visibility 160ms ease;
}

#fresh-catch-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 32px rgba(67, 78, 61, 0.25);
}

#fresh-catch-launcher:focus-visible,
#fresh-catch-close:focus-visible {
  outline: 3px solid #2f5f22;
  outline-offset: 3px;
}

#fresh-catch-dialog {
  width: min(620px, calc(100vw - 28px));
  height: min(760px, calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--fresh-catch-cream);
  color: var(--fresh-catch-ink);
  box-shadow: 0 24px 90px rgba(28, 35, 25, 0.35);
}

#fresh-catch-dialog::backdrop {
  background: rgba(37, 43, 34, 0.58);
  backdrop-filter: blur(4px);
}

.fresh-catch-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background: var(--fresh-catch-cream);
}

.fresh-catch-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid rgba(95, 106, 90, 0.12);
  background: rgba(255, 252, 247, 0.98);
}

.fresh-catch-modal__header h2,
.fresh-catch-modal__header p {
  margin: 0;
}

.fresh-catch-modal__header h2 {
  font: 700 20px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fresh-catch-modal__header p {
  margin-top: 2px;
  color: #6c7567;
  font: 500 12px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#fresh-catch-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(127, 166, 106, 0.14);
  color: var(--fresh-catch-ink);
  font: 400 30px/1 sans-serif;
  cursor: pointer;
}

#fresh-catch-frame-slot {
  position: relative;
  min-height: 0;
  background: var(--fresh-catch-cream);
}

#fresh-catch-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--fresh-catch-cream);
}

.fresh-catch-loading,
.fresh-catch-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fresh-catch-error {
  color: #9b4f49;
}

@media (max-width: 600px), (max-height: 620px) {
  #fresh-catch-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .fresh-catch-modal__header {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

@media (max-width: 600px) {
  html.cookie-notice-open #fresh-catch-launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #fresh-catch-launcher {
    transition: none;
  }
}
