/* ========================================
   CARDVAULT — PRODUCT DESCRIPTION
======================================== */

.cv-product-description-section {
  margin: 48px 0;
  padding: 28px 20px;
  background: #15191f;
  border: 1px solid #2a3039;
  border-radius: 16px;
  min-width: 0;
}

.cv-product-description-section__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #2a3039;
}

.cv-product-description-section__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #e9b548;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.cv-product-description-section__title {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.cv-product-description {
  color: #c6cbd3;
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: break-word;
}

/* TEXT */

.cv-product-description p {
  margin: 0 0 16px;
}

.cv-product-description h1,
.cv-product-description h2,
.cv-product-description h3,
.cv-product-description h4 {
  margin: 28px 0 12px;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
}

.cv-product-description h1 {
  font-size: 22px;
}

.cv-product-description h2 {
  font-size: 20px;
}

.cv-product-description h3 {
  font-size: 17px;
}

.cv-product-description h4 {
  font-size: 15px;
}

.cv-product-description ul,
.cv-product-description ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.cv-product-description li {
  margin-bottom: 6px;
}

.cv-product-description a {
  color: #e9b548;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv-product-description strong {
  color: #fff;
}

/* ACCORDION */

.cv-description-accordion {
  margin: 12px 0;
  overflow: hidden;
  background: #1b2028;
  border: 1px solid #303641;
  border-radius: 10px;
}

.cv-description-accordion.is-open {
  border-color: rgba(233, 181, 72, 0.45);
}

.cv-description-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cv-description-accordion__trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cv-description-accordion__trigger:focus-visible {
  outline: 2px solid #e9b548;
  outline-offset: -3px;
}

.cv-description-accordion__title {
  flex: 1;
}

.cv-description-accordion__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cv-description-accordion__icon span {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 2px;
  background: #e9b548;
  border-radius: 2px;
}

.cv-description-accordion__icon span:last-child {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.cv-description-accordion.is-open
  .cv-description-accordion__icon
  span:last-child {
  transform: rotate(0);
}

.cv-description-accordion__panel {
  padding: 0 12px 12px;
}

.cv-description-accordion__panel[hidden] {
  display: none !important;
}

/* ========================================
   PRODUCT DESCRIPTION — TABLES
======================================== */

.cv-product-description .cv-description-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #343b46;
  border-radius: 8px;
}

/* Gutenberg figure */
.cv-product-description .wp-block-table {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Table */
.cv-product-description table,
.cv-product-description .wp-block-table table {
  width: 100%;
  min-width: 580px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #191e26;
  color: #d8dce3;
  font-size: 12px;
  line-height: 1.5;
}

/* Header */
.cv-product-description table thead,
.cv-product-description table thead tr {
  background: #29313d;
}

.cv-product-description table th {
  padding: 11px 12px;
  background: #29313d !important;
  color: #e9b548 !important;
  border: 0;
  border-bottom: 1px solid #414956;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

/* Cells */
.cv-product-description table td {
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #303741;
  background: transparent !important;
  color: #d8dce3 !important;
  vertical-align: middle;
  text-align: left;
}

/* Odd rows */
.cv-product-description table tbody tr:nth-child(odd) {
  background: #1b212a !important;
}

/* Even rows */
.cv-product-description table tbody tr:nth-child(even) {
  background: #242b35 !important;
}

/* Hover */
.cv-product-description table tbody tr:hover {
  background: #303947 !important;
}

/* WordPress striped table override */
.cv-product-description
  .wp-block-table.is-style-stripes
  tbody
  tr:nth-child(odd),
.cv-product-description
  .wp-block-table.is-style-stripes
  tbody
  tr:nth-child(even) {
  background: transparent;
}

.cv-product-description
  .wp-block-table.is-style-stripes
  table
  tbody
  tr:nth-child(odd) {
  background: #1b212a !important;
}

.cv-product-description
  .wp-block-table.is-style-stripes
  table
  tbody
  tr:nth-child(even) {
  background: #242b35 !important;
}

/* Text inside cells */
.cv-product-description table td *,
.cv-product-description table th * {
  color: inherit !important;
}

/* Last row */
.cv-product-description table tbody tr:last-child td {
  border-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .cv-product-description table {
    min-width: 580px;
    font-size: 12px;
  }

  .cv-product-description table th,
  .cv-product-description table td {
    padding: 9px 10px;
  }
}

/* DESKTOP */

@media (min-width: 768px) {
  .cv-product-description-section {
    margin: 60px 0;
    padding: 36px;
    border-radius: 20px;
  }

  .cv-product-description-section__title {
    font-size: 26px;
  }

  .cv-product-description {
    font-size: 15px;
  }

  .cv-description-accordion__trigger {
    padding: 18px 20px;
    font-size: 15px;
  }

  .cv-description-accordion__panel {
    padding: 0 20px 20px;
  }

  .cv-product-description table {
    font-size: 13px;
  }

  .cv-product-description th,
  .cv-product-description td {
    padding: 10px 14px;
  }
}
