/* Summary Block */
.compare-ai-summary {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    margin: 25px auto;
    max-width: 1100px;
    color: #eee;
    border-radius: 6px;
}

.compare-ai-summary h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.compare-ai-grid {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 15px;
}

.compare-ai-col.label {
    font-weight: 600;
    color: #ccc;
}

.compare-ai-col.head {
    font-weight: 700;
    color: #fff;
}

/* Button */
.compare-ai-btn {
    padding: 8px 14px;
    border: 1px solid #555;
    background: #1b1b1b;
    border-radius: 4px;
    color: #eee;
    cursor: pointer;
}

/* Modal Backdrop */
.compare-ai-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.compare-ai-backdrop.active {
    display: flex;
}

/* Modal Box */
.compare-ai-modal {
    background: #101010;
    padding: 26px 30px;
    width: 92%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #333;
    color: #eee;
    position: relative;
}

.compare-ai-close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #ccc;
}

.compare-ai-sub {
    color: #aaa;
    margin: 6px 0 20px;
}

/* Modal Grid */
.compare-ai-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px 18px;
}

.modal-row {
    display: contents; /* Cleaner rows */
}

.modal-row-label {
    font-weight: 600;
    color: #ddd;
}

.modal-row-left,
.modal-row-right {
    color: #eee;
}

.compare-ai-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}
.compare-ai-summary-text {
    margin: 0 0 14px;
    color: #ddd;
    font-size: 0.95rem;
}

.compare-ai-modal-text {
    margin: 0 0 18px;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
}
/* Fix invisible grid values caused by global CSS override */
.compare-ai-summary .compare-ai-col {
    color: #eee !important;
}
/* ===== MOBILE FIX: AI COMPARISON TABLE ===== */
@media (max-width: 600px) {

  .ai-table, 
  .ai-table table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    display: block;
  }

  .ai-table th,
  .ai-table td {
    max-width: 33vw;              /* compress each column */
    width: auto;
    padding: 6px 4px;
    font-size: 14px;              /* slightly smaller, stays clean */
    white-space: normal !important;
    word-break: break-word;
    box-sizing: border-box;
  }

  .ai-table th {
    font-size: 13px;
    line-height: 1.2;
  }

  /* Prevent icon rows from stretching */
  .ai-table .info-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  /* Safety net */
  .ai-analysis-container {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overflow-x: hidden !important;
  }
}
