/* Verywood — Sélecteur Capuchon (Lamello) — match style Corps/Chants */
.vwo-caphat-wrap { margin-top: 10px; }
.vwo-caphat-card {
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 10px;
  padding: 8px;
}
.vwo-caphat-inner {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 2px;
  background: transparent;
}
.vwo-caphat-card.is-open .vwo-caphat-inner {
  border-color: #f59e0b;
  background: #fff7ed;
}
/* Pill interne gris (match Corps/Chants) */
.vwo-caphat-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.vwo-caphat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f6f7f8;
  border-radius: 10px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
}
.vwo-caphat-card.is-open .vwo-caphat-pill {
  background: #fff7ed;
  color: #ea580c;
}
.vwo-caphat-card.is-open .vwo-caphat-pill .vwo-caphat-title { color: #ea580c; }
.vwo-caphat-caret {
  color: #9ca3af;
  font-size: 0.7rem;
}
.vwo-caphat-card.is-open .vwo-caphat-caret { color: #ea580c; }

.vwo-caphat-body {
  padding: 10px 10px 6px;
  background: #fff;
}
.vwo-caphat-desc {
  font-size: 0.82rem;
  color: #555;
  margin: 10px 0 10px;
}
/* Preview "SÉLECTIONNÉ" */
.vwo-caphat-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin: 6px 0 10px;
}
.vwo-caphat-preview-chip {
  display: block;
  width: 54px; height: 54px;
  border-radius: 8px;
  background: #fff center/cover no-repeat;
  border: 1px solid #e5e7eb;
}
.vwo-caphat-preview-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.vwo-caphat-preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
}
.vwo-caphat-preview-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}
.vwo-caphat-preview .vwo-caphat-reset {
  flex: 0 0 auto;
}
.vwo-caphat-section { margin-bottom: 10px; }
.vwo-caphat-section-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; font-weight: 700; color: #6b7280; letter-spacing: 0.5px;
  padding: 6px 0 4px;
}
.vwo-caphat-toggle-cols,
.vwo-caphat-reset {
  background: #fff; border: 1.5px solid #ff8c00; color: #ff8c00;
  width: 22px; height: 22px; border-radius: 4px; cursor: pointer;
  font-weight: 700; font-size: 0.8rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.vwo-caphat-toggle-cols:hover, .vwo-caphat-reset:hover { background: #fff3e0; }
.vwo-caphat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px; margin-top: 8px;
}
.vwo-caphat-tile {
  background: #fff; border: 2px solid #e6e6e6; border-radius: 8px; padding: 8px 4px 6px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: 6px; font-size: 0.78rem; color: #333; transition: border-color .15s, transform .1s;
}
.vwo-caphat-tile:hover { border-color: #ff8c00; transform: scale(1.02); }
.vwo-caphat-tile.is-selected { border-color: #ff8c00; background: #fff8ef; box-shadow: 0 0 0 1px #ff8c00; }
.vwo-caphat-tile-img {
  display: block; width: 90px; height: 90px; border-radius: 6px;
  background: #f6f6f6 center/cover no-repeat; border: 1px solid #e0e0e0;
}
.vwo-caphat-tile-name { text-align: center; line-height: 1.2; min-height: 2.4em; font-weight: 500; }
/* Hover zoom sur l'aperçu "SÉLECTIONNÉ" */
.vwo-caphat-preview-chip-wrap {
  position: relative;
  flex: 0 0 54px;
  z-index: 1;
}
.vwo-caphat-preview-chip-wrap:hover { z-index: 300; }
.vwo-caphat-preview-zoom {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: scale(.6);
  transform-origin: top left;
  width: 260px; height: 260px;
  background: #fff center/cover no-repeat;
  border-radius: 10px;
  border: 2px solid #ff8c00;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 400;
}
.vwo-caphat-preview-chip-wrap:hover .vwo-caphat-preview-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Section par caisson */
.vwo-caphat-col {
  border: 1px solid #ffe3c7; border-radius: 6px; margin-top: 6px;
  background: #fff;
}
.vwo-caphat-col-head {
  padding: 7px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vwo-caphat-col-label { font-weight: 600; color: #333; font-size: 0.82rem; flex: 0 0 auto; }
.vwo-caphat-col-current {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: #555;
}
.vwo-caphat-chip {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  background: #eee center/cover no-repeat; border: 1px solid #d0d0d0;
}
.vwo-caphat-col-name { color: #333; }
.vwo-caphat-none { color: #999; }
.vwo-caphat-edit {
  background: #fff; border: 1.5px solid #ff8c00; color: #ff8c00;
  padding: 2px 7px; border-radius: 4px; cursor: pointer; font-size: 0.72rem; font-weight: 600;
}
.vwo-caphat-edit:hover { background: #fff3e0; }
.vwo-caphat-col .vwo-caphat-grid { padding: 0 10px 10px; }

/* Récap */
.vwo-caphat-recap { margin-top: 12px; padding: 10px 12px; background: #fff8ef; border-left: 3px solid #ff8c00; border-radius: 4px; }
.vwo-caphat-recap-line { font-size: 0.9rem; color: #333; }
.vwo-caphat-recap-list { margin: 4px 0 0 18px; padding: 0; list-style: disc; font-size: 0.85rem; color: #555; }
.vwo-caphat-chip-sm {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: #eee center/cover no-repeat; border: 1px solid #ccc;
  vertical-align: middle; margin-right: 4px;
}
