.dpl-coa {
  padding: 64px 0;
}

/* Header */

.dpl-coa__header {
  margin-bottom: 48px;
}

.dpl-coa__title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 10px;
}

.dpl-coa__subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #6B6B6B;
  margin: 0;
  line-height: 1.6;
  max-width: 56ch;
}

/* Accordion list */

.dpl-coa__list {
  border-top: 1px solid #E5E5E5;
}

.dpl-coa__item {
  border-bottom: 1px solid #E5E5E5;
}

/* Summary row — clickable */

.dpl-coa__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.dpl-coa__summary::-webkit-details-marker {
  display: none;
}

.dpl-coa__summary:hover .dpl-coa__summary-name {
  color: #FF9A01;
}

.dpl-coa__summary-name {
  font-size: 16px;
  font-weight: 500;
  color: #0D0D0D;
  flex: 1;
  transition: color 0.15s;
}

.dpl-coa__summary-meta {
  font-size: 12px;
  font-weight: 400;
  color: #ADADAD;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dpl-coa__chevron {
  color: #ADADAD;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dpl-coa__item[open] .dpl-coa__chevron {
  transform: rotate(180deg);
}

/* Reports panel */

.dpl-coa__reports {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 0 28px;
}

/* Individual card */

.dpl-coa__card {
  width: 220px;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.dpl-coa__card:hover {
  border-color: #0D0D0D;
}

/* Image */

.dpl-coa__card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #F7F7F7;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: block;
  border: none;
  padding: 0;
  cursor: zoom-in;
}

.dpl-coa__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dpl-coa__card:hover .dpl-coa__img {
  transform: scale(1.03);
}

.dpl-coa__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DCDCDC;
}

/* When there's no thumbnail image but a PDF/report link, the tile opens it */
.dpl-coa__card-image:has(.dpl-coa__img-placeholder) {
  cursor: pointer;
}

.dpl-coa__pdf-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background: #FF9A01;
  padding: 2px 8px;
  border-radius: 20px;
  pointer-events: none;
}

/* Card body */

.dpl-coa__card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.dpl-coa__lab-name {
  font-size: 13px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0;
}

.dpl-coa__strength-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
  background: #FF9A01;
  padding: 2px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.dpl-coa__purity-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #0D0D0D;
  background: rgba(255, 154, 1, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
}

.dpl-coa__meta {
  font-size: 12px;
  font-weight: 400;
  color: #6B6B6B;
  margin: 0;
  line-height: 1.4;
}

.dpl-coa__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #FF9A01;
  text-decoration: none;
  margin-top: auto;
  padding-top: 6px;
}

.dpl-coa__link:hover {
  text-decoration: underline;
}

.dpl-coa__coming-soon-text {
  font-size: 13px;
  font-weight: 400;
  color: #ADADAD;
  font-style: italic;
  padding: 0 0 20px;
  margin: 0;
}

/* Zoom hint overlay on card image */

.dpl-coa__zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.dpl-coa__card:hover .dpl-coa__zoom-hint {
  opacity: 1;
}

/* Lightbox */

.dpl-coa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dpl-coa-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.dpl-coa-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.dpl-coa-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dpl-coa-lightbox__inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpl-coa-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Footer note */

.dpl-coa__note {
  margin-top: 40px;
  font-size: 13px;
  font-weight: 400;
  color: #ADADAD;
  line-height: 1.6;
}

/* Mobile */

@media screen and (max-width: 767px) {
  .dpl-coa {
    padding: 40px 0;
  }

  .dpl-coa__card {
    width: calc(50% - 8px);
  }
}
