/* Specs section styling */
.mori-specs-section {
  margin-top: 17px !important;
  margin-bottom: 0 !important;
}

.mori-specs-section > h2 {
  color: #333;
  text-align: left;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 23px;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 50px;
}

/* Featured Specs Grid */
.featured-specs {
  display: flex;
  width: 100%;
  margin-bottom: 11px;
}

.featured-spec-item {
  flex: 1;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid #e0e0e0;
}

.featured-spec-item:last-child {
  border-right: none;
}

.featured-spec-key {
  font-size: 8px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
}

.featured-spec-value {
  font-size: 12px;
  color: #333;
  font-weight: 700;
}

/* 2-column specs table styling */
.mori-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mori-specs-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.mori-specs-table tbody tr:last-child {
  border-bottom: none;
}

.mori-specs-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  background: #f9f9f9;
  width: 25%;
  vertical-align: middle;
  font-size: 12px;
}

.mori-specs-table td {
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  width: 25%;
  vertical-align: middle;
  font-size: 10px;
}

/* Add vertical separator between columns */
.mori-specs-table th:nth-child(3),
.mori-specs-table td:nth-child(2) {
  border-right: 1px solid #e0e0e0;
}

.mori-specs-table .woocommerce-product-attributes-item__value:nth-child(3) {
  padding-left: 24px;
}

/* PDF section styling */
.mori-pdf-section {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
}

.mori-pdf-section > h2 {
  color: #333;
  text-align: center;
  font-weight: 700;
  text-transform: capitalize;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 20px;
}

.mori-pdf-link {
  text-align: center;
}

.mori-pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #2271b1;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.mori-pdf-button:hover {
  background: #135e96;
  color: #fff !important;
}

.mori-pdf-button svg {
  flex-shrink: 0;
}

/* Video section styling */
.mori-video-section {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
}

.mori-video-section > h2 {
  color: #333;
  text-align: center;
  font-weight: 700;
  text-transform: capitalize;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 20px;
}

.mori-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.mori-video-wrapper iframe,
.mori-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Fix video shaking/vibrating issue */
.mori-video-wrapper video {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Responsive video */
@media (max-width: 768px) {
  .mori-video-wrapper {
    border-radius: 4px;
  }
}

/* Features section styling */
.mori-features-section {
  margin-top: 60px !important;
}

.mori-features-section > h2 {
  color: #333;
  text-align: center;
  font-weight: 700;
  text-transform: capitalize;
  font-size: 24px;
  line-height: 1;
}

.mori-feature-group {
  margin-bottom: 30px;
}

.mori-feature-group:last-child {
  margin-bottom: 0;
}

.mori-feature-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #555;
  font-weight: 600;
}

.mori-features-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 0;
  table-layout: fixed;
  font-size: 12px;
}

.mori-features-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.mori-features-table tbody tr:last-child {
  border-bottom: none;
}

.mori-features-table td {
  padding: 12px 15px !important;
  color: #333 !important;
  vertical-align: middle;
  background: #fff !important;
  text-align: center;
  width: 50% !important;
  border-right: 1px solid #e0e0e0;
}

.mori-features-table td:last-child {
  border-right: none;
}

/* Highlighted cell styling - checked items */
.mori-features-table td.mori-acf-highlighted {
  background: #fff3cd !important;
  font-weight: 500 !important;
  color: #333 !important;
}

/* Responsive styling */
@media (max-width: 768px) {
  .featured-specs {
    display: none;
  }

  .mori-feature-title {
    font-size: 1.1em;
  }

  .mori-features-table {
    table-layout: fixed;
  }

  .mori-features-table td {
    padding: 8px 10px !important;
    width: 50% !important;
    font-size: 9px;
  }
}

/* Car Features styling */
.mori-car-features {
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.mori-car-features h3 {
  font-size: 1.2em;
  margin: 0 0 15px 0;
  color: #333;
  font-weight: 600;
}

.mori-car-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mori-car-features-list li {
  margin: 0;
  padding: 0;
}

.mori-car-features-list li a {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.mori-car-features-list li a:hover {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.mori-car-features-list .feature-description {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Widget styling */
.mori-car-features-filter {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mori-car-features-filter li {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.mori-car-features-filter li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mori-car-features-filter li a {
  color: #333;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mori-car-features-filter li a:hover {
  color: #007bff;
}

.mori-car-features-filter li.current-feature a {
  font-weight: 600;
  color: #007bff;
}

.mori-car-features-filter .count {
  color: #999;
  font-size: 12px;
}

/* Admin column styling */
.column-car_features a {
  color: #2271b1;
  text-decoration: none;
}

.column-car_features a:hover {
  color: #135e96;
  text-decoration: underline;
}
