/* Single-card pages: uninstall, feedback and 404 */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.bye {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.bye-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.bye-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bye-icon {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
}

.bye-icon img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.bye-icon span {
  position: absolute;
  right: -8px;
  bottom: -6px;
  font-size: 22px;
  line-height: 1;
}

.bye-head h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.bye-head p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.removed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.removed svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.feedback {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.feedback h2 {
  font-size: 16px;
}

.feedback > p {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 14px;
}

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.reason input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reason label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.reason label:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.reason label::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: border 0.15s;
}

.reason input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.reason input:checked + label::before {
  border: 4px solid var(--accent);
}

.reason input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.comment {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.comment:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}

.feedback-actions .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.feedback-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.feedback-actions .btn[aria-busy="true"] {
  cursor: progress;
}

.feedback-actions small {
  color: var(--text-3);
  font-size: 13px;
}

.comeback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.comeback h2 {
  font-size: 16px;
}

.comeback p {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 14px;
}

.comeback .stores {
  gap: 8px;
}

.comeback .store-btn {
  min-width: 0;
  padding-block: 8px;
  padding-inline: 10px 16px;
  border-radius: 12px;
}

.comeback .browser-logo {
  width: 26px;
  height: 26px;
}

.comeback .store-btn strong {
  font-size: 15px;
}

/* Only the store the extension was removed from; all three when it is not known (see uninstall.html) */
:root[data-store] .comeback .store-btn {
  display: none;
}

:root[data-store="chrome"] .comeback .store-btn.for-chrome,
:root[data-store="edge"] .comeback .store-btn.for-edge,
:root[data-store="firefox"] .comeback .store-btn.for-firefox {
  display: inline-flex;
}

.bye-foot {
  padding: 0 0 24px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.bye-foot a {
  color: var(--text-2);
}

@media (max-width: 560px) {
  .bye {
    padding: 16px 0;
    place-items: start center;
  }

  .bye-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .bye-head {
    align-items: flex-start;
  }

  .bye-head h1 {
    font-size: 21px;
  }

  .reasons {
    grid-template-columns: 1fr;
  }

  .comeback .stores,
  .comeback .store-btn {
    width: 100%;
  }
}


/* ---------- Feedback form ---------- */

.stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.stars legend,
.field > span {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stars label {
  padding: 2px 4px;
  border-radius: 8px;
  color: var(--border-strong);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.stars label.on,
.stars input:checked + label {
  color: var(--gold);
}

.stars input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field {
  display: block;
  margin-top: 12px;
}

.field .comment {
  margin-top: 0;
}

.field input {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  align-items: end;
}

.field-row > [hidden] + .field {
  grid-column: 1 / -1;
}

.optional {
  color: var(--text-3);
  font-weight: 400;
}

/* Left empty by people; bots that fill it are dropped */
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tip {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.form-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.done:focus {
  outline: none;
}

.done svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.done h2 {
  font-size: 16px;
}

.done p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 14px;
}

.public-review {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.public-review a {
  font-weight: 600;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
