/* ==========================================================================
   APS Modern Specs Sheet
   ========================================================================== */

:root {
  --aps-accent: var(--cs-light-accent-color);
  --aps-accent-rgb: 41, 88, 255;
  --aps-green: #16a34a;
  --aps-red: #dc2626;
  --aps-border: #e5e7eb;
  --aps-bg: #f4f5f7;
  --aps-bg-hover: #eff3ff;
  --aps-text: #111827;
  --aps-muted: #6b7280;
  --aps-light: #9ca3af;
  --aps-radius: 10px;
  --aps-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aps-specsheet {
  font-family: var(--aps-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--aps-text);
  margin: 0 0 10px;
}
.aps-specsheet * {
  box-sizing: border-box;
}
.aps-ss-section {
  margin-bottom: 28px;
}

.aps-ss-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--aps-border);
}
.aps-ss-heading::before {
  content: "";
  display: block;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--aps-accent);
  flex-shrink: 0;
}
.aps-ss-heading-icon {
  font-size: 18px;
  color: var(--aps-accent);
  flex-shrink: 0;
  line-height: 1;
}
.aps-ss-heading-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--aps-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 1;
}
.aps-ss-heading-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--aps-light);
}

.aps-ss-table {
  width: 100%;
  border: 1px solid var(--aps-border);
  border-radius: var(--aps-radius);
  overflow: hidden;
}

.aps-ss-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--aps-border);
  transition: background 0.1s;
}
.aps-ss-row:last-child {
  border-bottom: none;
}
.aps-ss-row:nth-child(odd) {
  background: #fff;
}
.aps-ss-row:nth-child(even) {
  background: #f9fafb;
}
.aps-ss-row:hover {
  background: var(--aps-bg-hover);
}

.aps-ss-label {
  width: 38%;
  max-width: 190px;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--aps-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--aps-border);
  display: flex;
  align-items: center;
  position: relative;
}
.aps-ss-label.has-tip {
  cursor: help;
}
.aps-ss-label.has-tip::after {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #d1d5db;
  border-radius: 50%;
  margin-left: 6px;
  flex-shrink: 0;
}
.aps-ss-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 12px;
  z-index: 500;
  width: 210px;
  padding: 9px 12px;
  font-size: 12px;
  color: #fff;
  background: #1f2937;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  white-space: normal;
  font-weight: 400;
}
.aps-ss-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 14px;
  border: 5px solid transparent;
  border-top-color: #1f2937;
}
.aps-ss-label.has-tip:hover .aps-ss-tip {
  display: block;
}

.aps-ss-value {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--aps-text);
  display: flex;
  align-items: center;
  word-break: break-word;
}
.aps-ss-value .aps-icon-check,
.aps-ss-value .aps-icon-cancel,
.aps-ss-value .aps-icon-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  line-height: 1;
}
.aps-ss-value .aps-icon-check {
  background: var(--aps-green);
}
.aps-ss-value .aps-icon-cancel,
.aps-ss-value .aps-icon-cross {
  background: var(--aps-red);
}

#aps-load-more-wrap {
  text-align: center;
  padding: 30px 20px;
}
#aps-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5625rem 1.125rem 0.5625rem 1.125rem;
  background-color: var(--cs-color-button);
  color: var(--cs-color-button-contrast);
  border: none;
  border-radius: var(--cs-button-border-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  letter-spacing: 0.02em;
}
#aps-load-more-btn:hover:not(:disabled) {
  background: #005177;
  transform: translateY(-1px);
}
#aps-load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
#aps-lm-svg {
  width: 18px;
  height: 18px;
  animation: aps-lm-spin 0.75s linear infinite;
}
@keyframes aps-lm-spin {
  to {
    transform: rotate(360deg);
  }
}
#aps-no-more-products {
  color: #999;
  font-style: italic;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 540px) {
  .aps-ss-row {
    flex-direction: column;
  }
  .aps-ss-label {
    width: 100%;
    max-width: 100%;
    padding: 8px 14px 3px;
    border-right: none;
    font-size: 10px;
    color: var(--aps-light);
  }
  .aps-ss-label.has-tip::after {
    display: none;
  }
  .aps-ss-value {
    padding: 2px 14px 9px;
  }
  .aps-ss-heading-text {
    font-size: 12px;
  }
}
