/* DOKW Tekstsuggesties 1.6 - De Online Kaarsenwinkel */
/* 1.6: knopje met icoon op een eigen regel */
:root { --dokw-ts-accent: #d85a30; }
.dokw-ts-tools[hidden] { display: none !important; }
.dokw-ts-tools { display: block; clear: both; width: 100%; margin: 8px 0 0; }
.dokw-ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid #e3d6cc;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.9em;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dokw-ts-btn:hover { border-color: var(--dokw-ts-accent); background: #fffaf7; }
.dokw-ts-btn:focus-visible { outline: 2px solid var(--dokw-ts-accent); outline-offset: 2px; }
.dokw-ts-icon { flex: none; color: var(--dokw-ts-accent); }

html.dokw-ts-open { overflow: hidden; }

.dokw-ts-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 24, 20, 0.55);
}
.dokw-ts-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  padding: 20px;
  border-radius: 6px;
  background: #fff;
  color: #2b2622;
  font: inherit;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.dokw-ts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dokw-ts-title { margin: 0; font-size: 1.25em; }
.dokw-ts-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.dokw-ts-intro { margin: 6px 0 14px; font-size: 0.92em; opacity: 0.8; }
.dokw-ts-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Stap 1: gelegenheden */
.dokw-ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dokw-ts-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border: 1px solid #e4ddd5;
  border-radius: 4px;
  background: #fbf9f7;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dokw-ts-tile:hover, .dokw-ts-tile:focus-visible { border-color: #2b2622; outline: none; }
.dokw-ts-tile-name { font-weight: 600; }
.dokw-ts-tile-count { font-size: 0.82em; opacity: 0.65; }

/* Stap 2: voorbeelden */
.dokw-ts-back { margin: 0 0 10px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.92em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dokw-ts-list { display: flex; flex-direction: column; gap: 8px; }
.dokw-ts-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4ddd5;
  border-radius: 4px;
  background: #fbf9f7;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.dokw-ts-item:hover, .dokw-ts-item:focus-visible { border-color: #2b2622; outline: none; }
.dokw-ts-item:disabled { cursor: not-allowed; opacity: 0.5; }
.dokw-ts-text { white-space: pre-line; }
.dokw-ts-note { display: block; margin-top: 4px; font-size: 0.8em; }

@media (max-width: 480px) {
  .dokw-ts-overlay { padding: 0; align-items: flex-end; }
  .dokw-ts-box { max-height: 92vh; border-radius: 10px 10px 0 0; }
  .dokw-ts-grid { grid-template-columns: 1fr 1fr; }
}

/* 1.2: zoeken, rubrieken, invulplekken */
.dokw-ts-search {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #d8d0c8;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.dokw-ts-search:focus { border-color: #2b2622; outline: none; }
.dokw-ts-section { margin-bottom: 16px; }
.dokw-ts-section[hidden], .dokw-ts-tile[hidden], .dokw-ts-empty[hidden] { display: none; }
.dokw-ts-section-title { margin: 0 0 8px; font-size: 0.95em; font-weight: 600; opacity: 0.75; }
.dokw-ts-current { padding: 12px; border-radius: 6px; background: #f4efe9; }
.dokw-ts-current .dokw-ts-section-title { opacity: 1; }
.dokw-ts-current .dokw-ts-tile { background: #fff; }
.dokw-ts-empty { margin: 8px 0; opacity: 0.7; }
.dokw-ts-ph { padding: 0 3px; border-radius: 3px; background: #efe6da; font-style: italic; }

/* 1.4: voorbeeldafbeeldingen */
.dokw-ts-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.dokw-ts-photo {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #f4efe9;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.dokw-ts-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dokw-ts-photo:hover, .dokw-ts-photo:focus-visible { border-color: #2b2622; outline: none; }
.dokw-ts-photo.is-busy { opacity: 0.5; cursor: progress; }

/* 1.5: melding, populair, controle, aanbod na afbeelding */
.dokw-ts-notice { margin: 0 0 8px; font-size: 0.85em; opacity: 0.75; }
.dokw-ts-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--dokw-ts-accent);
  color: #fff;
  font-size: 0.72em;
  letter-spacing: 0.02em;
}
.dokw-ts-item .dokw-ts-badge + .dokw-ts-text { display: block; }
.dokw-ts-empty p { margin: 8px 0 4px; }
textarea.dokw-ts-error, input.dokw-ts-error { border-color: #c0392b !important; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2) !important; }

.dokw-ts-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 100001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 6px;
  background: #2b2622;
  color: #fff;
  font-size: 0.95em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}
.dokw-ts-toast button { padding: 6px 12px; border-radius: 4px; font: inherit; cursor: pointer; }
.dokw-ts-toast-yes { border: 0; background: #fff; color: #2b2622; }
.dokw-ts-toast-no { border: 1px solid rgba(255, 255, 255, 0.5); background: none; color: #fff; }
