/* Encore Luxe Hyvä — PDP dossier tabs */

.catalog-product-view .product-description,
.catalog-product-view #product-details,
.el-pdp .product-description,
.el-pdp #product-details,
.el-buy-card .product-description,
.el-buy-card #product-details {
  display: none !important;
}

.el-dossier,
.el-pdp .el-dossier {
  max-width: none;
  margin: 2rem 0 2.5rem;
  padding: 0;
  color: #191714;
  position: relative;
  z-index: 1;
}

.el-tabs { position: relative; }

.el-tabs > input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  appearance: none;
  opacity: 0;
  pointer-events: none;
}

.el-tab-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

@media (max-width: 640px) {
  .el-tab-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .el-tab-bar label:nth-child(3),
  .el-tab-bar label:nth-child(4) {
    border-top-width: 0;
  }
}

.el-tab-bar label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 0;
  padding: 0.65rem 0.4rem;
  border: 1px solid rgba(25, 23, 20, 0.18);
  background: #f3ede3;
  color: #191714;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.el-tab-bar label + label { border-left-width: 0; }
@media (max-width: 640px) {
  .el-tab-bar label:nth-child(2n+1) { border-left-width: 1px; }
  .el-tab-bar label:nth-child(2) { border-left-width: 0; }
}

.el-tab-bar label:hover { background: #ebe3d6; }

.el-tabs .el-tab-panel,
.el-dossier .el-tab-panel {
  display: none !important;
  padding: 1.5rem 1.4rem 1.65rem;
  border: 1px solid rgba(25, 23, 20, 0.18);
  border-top: 0;
  background: #fffaf0;
  color: #191714;
}

.el-prose p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #292621;
  max-width: 42rem;
}
.el-prose p:last-child { margin-bottom: 0; }

.el-facts {
  margin: 0;
  display: grid;
  gap: 0;
}
.el-fact {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(25, 23, 20, 0.1);
  align-items: baseline;
}
.el-fact:first-child { padding-top: 0; }
.el-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.el-fact dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b645c;
}
.el-fact dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #191714;
}

.el-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.el-pills li {
  margin: 0;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(25, 23, 20, 0.16);
  background: #f3ede3;
  font-size: 0.82rem;
  line-height: 1.3;
}

.el-trust-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.el-trust-rail li {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #292621;
}
.el-trust-mark {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #b49766;
}

.el-auth-copy p {
  margin: 0 0 0.95rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #292621;
  max-width: 42rem;
}
.el-auth-lead {
  font-weight: 600;
  color: #191714 !important;
}
.el-verify { margin-top: 1.25rem !important; }
.el-verify a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid #191714;
  background: #191714;
  color: #fffaf0 !important;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.el-verify a:hover {
  background: #5c1a1a;
  border-color: #5c1a1a;
  color: #fffaf0 !important;
}
.el-verify-missing {
  font-size: 0.9rem !important;
  color: #6b645c !important;
}

#el-tab-desc:checked ~ .el-tab-bar label[for="el-tab-desc"],
#el-tab-details:checked ~ .el-tab-bar label[for="el-tab-details"],
#el-tab-delivery:checked ~ .el-tab-bar label[for="el-tab-delivery"],
#el-tab-auth:checked ~ .el-tab-bar label[for="el-tab-auth"] {
  background: #191714 !important;
  border-color: #191714 !important;
  color: #fffaf0 !important;
}

#el-tab-desc:checked ~ .el-panel-desc,
#el-tab-details:checked ~ .el-panel-details,
#el-tab-delivery:checked ~ .el-panel-delivery,
#el-tab-auth:checked ~ .el-panel-auth {
  display: block !important;
}
