body.ic-fhs-service-charge-standalone-active .entry-title,
body.ic-fhs-service-charge-standalone-active .ast-single-post .entry-header,
body.ic-fhs-service-charge-standalone-active .site-content > .ast-container > .content-area > .site-main > article > .entry-header {
    display: none !important;
}

body.ic-fhs-service-charge-standalone-active .site-content .ast-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.ic-fhs-service-charge-standalone-active #primary,
body.ic-fhs-service-charge-standalone-active .content-area,
body.ic-fhs-service-charge-standalone-active .site-main,
body.ic-fhs-service-charge-standalone-active article.page {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (min-width: 1200px) {
    body.ic-fhs-service-charge-standalone-active.ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

.ic-fhs-service-charge-page,
.ic-fhs-service-charge-page *,
.ic-fhs-service-charge-page *::before,
.ic-fhs-service-charge-page *::after,
.ic-fhs-service-charge-calculator,
.ic-fhs-service-charge-calculator *,
.ic-fhs-service-charge-calculator *::before,
.ic-fhs-service-charge-calculator *::after {
    box-sizing: border-box;
}

.ic-fhs-service-charge-page {
    width: 100%;
    background: var(--ic-bg, #f8fafc);
}

.ic-fhs-service-charge-page .ic-calculator-hero {
    margin-bottom: 0 !important;
}

.ic-fhs-service-charge-page__main {
    width: 100%;
    background: var(--ic-bg, #f8fafc);
    padding: 14px 0 44px;
}

.ic-fhs-service-charge-page__inner {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
}

.ic-fhs-service-charge-page__calculator {
    margin: 0 0 28px;
}

.ic-fhs-service-charge-page__content {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
}

.ic-fhs-service-charge-page__content .ic-guide-article {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ic-fhs-service-charge-page__content .ic-guide-section {
    margin-top: 30px;
}

.ic-fhs-service-charge-page__content .ic-guide-section:first-child {
    margin-top: 0;
}

.ic-fhs-service-charge-page__content.ic-guide-page {
    color: var(--ic-guide-text, #102033);
}

.ic-fhs-service-charge-page__content.ic-guide-page .ic-guide-section {
    max-width: none;
}

.ic-fhs-service-charge-calculator.ic-firsthomecalc {
    width: 100%;
    max-width: 100%;
    margin: 0;
    --ic-primary: #17884e;
    --ic-primary-hover: #0f6f3d;
    --ic-primary-light: rgba(23, 136, 78, .08);
    --ic-section-accent: #17884e;
    --ic-input-focus-border: #17884e;
    --ic-input-focus-ring: rgba(23, 136, 78, .13);
}

.ic-fhs-service-charge-calculator > .ic-title-bar::before {
    content: 'Your FHS Service Charge Details';
}

.ic-fhs-service-charge-topbar {
    margin: 0;
    padding: 24px 28px 22px;
    background: var(--ic-surface, #fff);
    border-bottom: 1px solid var(--ic-border, #e2e8f0);
}

.ic-fhs-service-charge-topbar .ic-section-header {
    margin: 0 0 14px;
}

.ic-fhs-service-charge-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(190px, .95fr) minmax(210px, auto);
    gap: 14px;
    align-items: start;
}

.ic-fhs-service-charge-fields .ic-field {
    min-width: 0;
}

.ic-fhs-service-charge-actions {
    align-self: start;
    margin-top: 24px !important;
}

.ic-fhs-service-charge-actions :is(.ic-calc-btn, .ic-reset-btn) {
    min-height: var(--ic-input-height, 42px);
    white-space: nowrap;
}

.ic-fhs-service-charge-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--ic-bg, #f8fafc);
}

.ic-fhs-service-charge-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    align-items: stretch;
}

.ic-fhs-service-charge-calculator .ic-summary-card {
    min-width: 0;
    min-height: 96px;
    padding: 14px 16px;
    border: 1px solid var(--ic-card-border, #e2e8f0);
    border-radius: var(--ic-card-radius, 16px);
    background: var(--ic-surface, #fff);
    box-shadow: var(--ic-card-shadow-soft, 0 1px 2px rgba(15, 23, 42, .04));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.ic-fhs-service-charge-calculator .ic-summary-card--accent {
    border-color: rgba(22, 163, 74, .26);
    background: linear-gradient(180deg, rgba(240, 253, 244, .96), rgba(255, 255, 255, .98));
}

.ic-fhs-service-charge-calculator .ic-summary-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--ic-text-muted, #64748b);
}

.ic-fhs-service-charge-calculator .ic-summary-value {
    font-family: var(--ic-font-display, Outfit, system-ui, sans-serif);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ic-text, #0f172a);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.ic-fhs-service-charge-calculator .ic-summary-card--accent .ic-summary-value {
    color: var(--ic-success, #16a34a);
}

.ic-fhs-service-charge-calculator .ic-summary-meta {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ic-text-muted, #64748b);
}

.ic-fhs-service-charge-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--ic-surface, #fff);
    border: 1px solid var(--ic-border, #e2e8f0);
    border-radius: var(--ic-radius, 12px);
    box-shadow: var(--ic-card-shadow-soft, 0 1px 2px rgba(15, 23, 42, .04));
}

.ic-fhs-service-charge-table {
    width: 100%;
    min-width: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.ic-fhs-service-charge-table th,
.ic-fhs-service-charge-table td {
    padding: 13px 16px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--ic-border, #e2e8f0);
    border-right: 1px solid var(--ic-border, #e2e8f0);
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.ic-fhs-service-charge-table th:last-child,
.ic-fhs-service-charge-table td:last-child {
    border-right: 0;
}

.ic-fhs-service-charge-table tr:last-child td {
    border-bottom: 0;
}

.ic-fhs-service-charge-table th {
    background: var(--ic-bg-muted, #eef2f7);
    color: var(--ic-text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.ic-fhs-service-charge-table td:first-child,
.ic-fhs-service-charge-table td:first-child strong {
    color: var(--ic-text, #0f172a);
    font-weight: 600;
}

.ic-fhs-service-charge-calculator .ic-note-card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(30, 58, 138, .12);
    border-left: 3px solid var(--ic-success, #16a34a);
    border-radius: var(--ic-radius-sm, 12px);
    background: var(--ic-bg-muted, #f8fafc);
    line-height: 1.5;
}

.ic-fhs-service-charge-calculator .ic-note-card strong {
    display: block;
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ic-text, #0f172a);
}

.ic-fhs-service-charge-calculator .ic-note-card span {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ic-text-muted, #64748b);
}

.ic-fhs-service-charge-page__content .ic-guide-card-grid--related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ic-fhs-service-charge-page__content .ic-guide-card--related {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--ic-border, #e2e8f0);
    border-radius: 16px;
    background: var(--ic-surface, #fff);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--ic-card-shadow-soft, 0 1px 2px rgba(15, 23, 42, .04));
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ic-fhs-service-charge-page__content .ic-guide-card--related:hover,
.ic-fhs-service-charge-page__content .ic-guide-card--related:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(23, 136, 78, .32);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    outline: none;
}

.ic-fhs-service-charge-page__content .ic-guide-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ic-fhs-service-charge-page__content .ic-guide-card--related strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--ic-primary, #17884e);
}

.ic-fhs-service-charge-page__content .ic-guide-card__description {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ic-text-muted, #64748b);
}

.ic-fhs-service-charge-page__content .ic-guide-card__arrow {
    flex: 0 0 auto;
    color: var(--ic-primary, #17884e);
    font-weight: 700;
}

@media (max-width: 960px) {
    .ic-fhs-service-charge-fields {
        grid-template-columns: 1fr 1fr;
    }

    .ic-fhs-service-charge-actions {
        grid-column: 1 / -1;
        margin-top: 2px !important;
    }

    .ic-fhs-service-charge-actions .ic-calc-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ic-fhs-service-charge-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ic-fhs-service-charge-summary-grid .ic-summary-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .ic-fhs-service-charge-page__main {
        padding: 12px 0 34px;
    }

    .ic-fhs-service-charge-page__inner {
        width: min(100% - 24px, 1200px);
    }

    .ic-fhs-service-charge-topbar,
    .ic-fhs-service-charge-dashboard {
        padding: 20px 16px;
    }

    .ic-fhs-service-charge-fields,
    .ic-fhs-service-charge-summary-grid,
    .ic-fhs-service-charge-page__content .ic-guide-card-grid--related {
        grid-template-columns: 1fr;
    }

    .ic-fhs-service-charge-summary-grid .ic-summary-card:last-child {
        grid-column: auto;
    }

    .ic-fhs-service-charge-table {
        min-width: 620px;
    }
}

@media (max-width: 520px) {
    .ic-fhs-service-charge-table th,
    .ic-fhs-service-charge-table td {
        padding: 10px 12px;
    }
}

body.ic-fhs-service-charge-standalone-active .ic-fhs-service-charge-page {
    margin-top: 0;
}

body.ic-fhs-service-charge-standalone-active .ic-fhs-service-charge-page__calculator {
    scroll-margin-top: 96px;
}

/* =====================================================
   v4.1.165 — Remaining table cleanup: FHS service charge schedule
   Keep wrapper as the only outer border and remove theme table margin.
   ===================================================== */
.ic-fhs-service-charge-table-wrap {
    border: 1px solid var(--ic-border, #e2e8f0) !important;
    border-radius: var(--ic-radius, 12px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    background: var(--ic-surface, #fff) !important;
}

.ic-fhs-service-charge-table-wrap > table,
table.ic-fhs-service-charge-table {
    margin: 0 !important;
    border: 0 !important;
    border-width: 0 !important;
    border-radius: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.ic-fhs-service-charge-table :where(th, td) {
    border-top: 0 !important;
    border-left: 0 !important;
}

.ic-fhs-service-charge-table :where(th, td):last-child {
    border-right: 0 !important;
}

.ic-fhs-service-charge-table tbody tr:last-child > :where(th, td) {
    border-bottom: 0 !important;
}
