/* ================================================================
   License Cost Calculator — Kadence Theme Compatibility
   Loaded only when Kadence (or a Kadence child theme) is detected.
   ================================================================ */

/* ── Let Kadence's own .content-container / .site-container
      control the max-width — we just ensure our content fills it ── */
.lc-state-article .entry-content,
.lc-state-article .entry-content-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* Ensure the fee table doesn't break out of the content column */
.lc-state-detail,
.lc-fee-table-wrap {
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Kadence resets table styles globally — restore for our tables ── */
.lc-state-fee-table,
.lc-results-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
.lc-state-fee-table thead th {
    background: #0a2540 !important;
    color: #fff !important;
    border: none !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
}
.lc-state-fee-table tbody td {
    padding: 11px 14px !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    line-height: 1.5 !important;
}

/* ── Kadence strips link colour in content areas — restore ── */
.lc-breadcrumb a,
.lc-back-link a,
.lc-meta-link,
.lc-td-name,
.lc-td-state {
    color: #2563eb !important;
}
.lc-r-name-link {
    color: #2563eb !important;
    text-decoration: none !important;
}
.lc-r-name-link:hover { text-decoration: underline !important; }

/* ── Kadence sets entry-content ul/ol to no bullets — restore ── */
.lc-detail-card-body ul {
    list-style: disc !important;
    padding-left: 20px !important;
    margin: 0 0 14px !important;
}
.lc-detail-card-body ol {
    list-style: decimal !important;
    padding-left: 20px !important;
    margin: 0 0 14px !important;
}
.lc-detail-card-body ul li,
.lc-detail-card-body ol li {
    display: list-item !important;
    list-style: inherit !important;
    padding: 2px 0 !important;
}

/* ── Kadence adds large bottom margin to .entry-content p — tighten ── */
.lc-state-page-description p:last-child { margin-bottom: 0 !important; }
.lc-state-article .entry-content { max-width: 100% !important; }

/* ── Fee table scroll wrapper ── */
.lc-fee-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
}

/* ── Button styles — Kadence may override background on <a> tags ── */
.lc-detail-card-body .lc-btn,
.lc-state-detail .lc-btn {
    display: inline-block !important;
    background: #0a2540 !important;
    color: #fff !important;
    border-radius: 50px !important;
    text-decoration: none !important;
}
.lc-type-btn,
.lc-run-btn,
.lc-start-over-btn {
    font-family: inherit !important;
    letter-spacing: inherit !important;
}

/* ── Kadence adds border to all inputs — override for fee table ── */
.lc-fee-input { border: none !important; outline: none !important; }

/* ── Responsive — Kadence breakpoints ── */
@media (max-width: 1024px) {
    .lc-cols-3 .lc-grid,
    .lc-cols-4 .lc-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 767px) {
    .lc-checklist-grid,
    .lc-cols-2 .lc-grid,
    .lc-cols-3 .lc-grid,
    .lc-cols-4 .lc-grid { grid-template-columns: 1fr !important; }
    .lc-state-fee-table th:nth-child(6),
    .lc-state-fee-table td:nth-child(6) { display: none !important; }
}
@media (max-width: 600px) {
    .lc-state-fee-table th:nth-child(5),
    .lc-state-fee-table td:nth-child(5) { display: none !important; }
}
@media (max-width: 480px) {
    .lc-state-fee-table th:nth-child(4),
    .lc-state-fee-table td:nth-child(4) { display: none !important; }
}
@media (max-width: 400px) {
    .lc-state-fee-table th:nth-child(7),
    .lc-state-fee-table td:nth-child(7) { display: none !important; }
}
