/**
 * Purity Ratings Off-Canvas Panel styles
 * Task: 86ewyr0uy
 */

/* Overlay */
.anm-purity-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.anm-purity-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Panel */
.anm-purity-panel {
  position: fixed;
  top: 0;
  right: -560px;
  width: 560px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  z-index: 999999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.08);
}

.anm-purity-panel.active {
  right: 0;
}

/* Sticky Header */
.anm-purity-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 80px;
  flex-shrink: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.anm-purity-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.anm-purity-leaf-icon {
  width: 24px;
  height: 24px;
  color: #4a4a4a;
}

.anm-purity-header-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #4a4a4a;
  text-transform: capitalize;
  line-height: 28px;
}

.anm-purity-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anm-purity-close:hover {
  opacity: 0.7;
}

.anm-purity-header-divider {
  width: 300px;
  height: 1px;
  background: #e4e5e7;
  border-radius: 2px;
  flex-basis: 100%;
}

/* Body */
.anm-purity-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 40px;
}

/* Summary Table */
.anm-purity-summary-table {
  border: 1px solid #e3e4e5;
  width: 100%;
  margin-bottom: 32px;
}

.anm-purity-tbl-row {
  display: flex;
  width: 100%;
}

.anm-purity-tbl-left {
  width: 100px;
  flex-shrink: 0;
  background: rgba(89, 64, 46, 0.05);
  padding: 8px 16px;
  border-bottom: 1px solid #e3e4e5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.anm-purity-tbl-row:last-child .anm-purity-tbl-left {
  border-bottom: none;
}

.anm-purity-tbl-left .anm-purity-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.anm-purity-tbl-left .anm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
}

.anm-purity-tbl-left .anm-dot:hover {
  background: #d1d5db;
}

.anm-purity-tbl-left .anm-dot-filled:hover {
  background: inherit;
}

.anm-purity-tbl-num {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 26px;
}

.anm-purity-tbl-right {
  flex: 1;
  padding: 8px 16px;
  border-left: 1px solid #e3e4e5;
  border-bottom: 1px solid #e3e4e5;
  background: #fff;
}

.anm-purity-tbl-row:last-child .anm-purity-tbl-right {
  border-bottom: none;
}

.anm-purity-tbl-right p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #4a4a4a;
  margin: 0;
}

/* Detailed Content */
.anm-purity-content {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #4a4a4a;
}

.anm-purity-content p {
  margin: 0 0 16px;
}

.anm-purity-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #4a4a4a;
  margin: 0 0 8px;
}

.anm-purity-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.anm-purity-content ul li {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #4a4a4a;
  margin-bottom: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .anm-purity-panel {
    width: 100%;
    right: -100%;
  }

  .anm-purity-body {
    padding: 0 16px 24px;
  }

  .anm-purity-header {
    padding: 0 16px;
  }

  .anm-purity-header-divider {
    width: 100%;
  }

  .anm-purity-tbl-left {
    width: 80px;
    padding: 8px 10px;
  }
}
