/* KR Tapetenfinder 2 – Rückweg aus den Herstellerkatalogen (ab 0.2.15). Nur aktiv mit .krtf2-has-return. */

.krtf2-return {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  margin: 0 0 1.25rem; padding: .85rem 1.1rem;
  border: 1px solid rgba(211, 170, 113, .55); border-radius: 3px;
  background: rgba(211, 170, 113, .08); color: #eee9e1;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.krtf2-return.is-highlighted { background: rgba(211, 170, 113, .2); box-shadow: 0 0 0 3px rgba(211, 170, 113, .35); }
.krtf2-return:focus { outline: none; }
.krtf2-return__link,
.krtf2-return__link:visited {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem 1rem;
  border-radius: 3px; background: #d3aa71; color: #1d1e1b !important;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none !important;
}
.krtf2-return__link:hover,
.krtf2-return__link:focus-visible { background: #e0bb86; outline: 2px solid #eee9e1; outline-offset: 2px; }
.krtf2-return__note { font-size: .85rem; color: #c4bfb6; }

/* Link im Produktfenster neben dem Titel */
.krtf2-return__dialog,
.krtf2-return__dialog:visited {
  margin-left: auto; margin-right: 1rem; font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: #d3aa71 !important; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.krtf2-return__dialog:hover,
.krtf2-return__dialog:focus-visible { color: #eee9e1 !important; }
.dialog-top:has(> .krtf2-return__dialog) { display: flex; align-items: center; gap: .75rem; }

/* Hinweis der bisherigen Übergabe: an der Katalogbreite ausrichten, eigener Rücklink entfällt (Leiste oben). */
.krtf2-has-return .kr-tf-public-handoff-status {
  width: min(1280px, calc(100% - 40px)); margin: 0 auto 1rem; padding: 0; font-size: .9rem; color: #c4bfb6;
}
.krtf2-has-return .kr-tf-public-handoff-status a { display: none !important; }

/* Leiste der gemeinsamen Anfrage „Meine Auswahl (n)“ direkt über dem Katalogknopf, gleiche Breite (return.js). */
body #kr-wallpaper-app .kr-ci-bar.krtf2-ci-placed { width: auto; max-width: none; margin: 0 0 12px; }

@media (max-width: 600px) {
  .krtf2-return { padding: .75rem; }
  .krtf2-return__link { width: 100%; justify-content: center; }
  .krtf2-return__dialog { margin-right: .5rem; font-size: .8rem; }
}
