/* Calculator embed: hide site chrome, flat sections, no dark bands */
html.embed-theme-active .main-header,
html.embed-theme-active .footer-section,
html.embed-theme-active #footer,
html.embed-theme-active .breadcrumbs,
html.embed-theme-active .sticky-header,
html.embed-theme-active .offcanvas {
    display: none !important;
}

html.embed-theme-active body {
    background: var(--embed-bg, #ffffff) !important;
}

html.embed-theme-active .itc-page,
html.embed-theme-active .emi-page,
html.embed-theme-active .nwc-page,
html.embed-theme-active .dc-page,
html.embed-theme-active .si-page {
    background: var(--embed-bg, var(--itc-bg, #ffffff)) !important;
}

html.embed-theme-active .itc-hero,
html.embed-theme-active .emi-page-head,
html.embed-theme-active .nwc-hero,
html.embed-theme-active .dc-hero,
html.embed-theme-active .si-hero {
    background: var(--embed-title-bar, var(--itc-section-bg, #ffffff)) !important;
    border: none !important;
    box-shadow: none !important;
}

html.embed-theme-active .itc-section,
html.embed-theme-active .emi-wrap,
html.embed-theme-active .nwc-wrap,
html.embed-theme-active .dc-wrap,
html.embed-theme-active .si-wrap {
    background: transparent !important;
}

html.embed-theme-active .itc-board,
html.embed-theme-active .emi-board,
html.embed-theme-active .nwc-board,
html.embed-theme-active .nwc-card,
html.embed-theme-active .dc-board,
html.embed-theme-active .si-board,
html.embed-theme-active .si-card {
    border: 1px solid color-mix(in srgb, var(--embed-accent, var(--itc-primary, #0073bc)) 18%, white 82%) !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--embed-accent, #0073bc) 8%, transparent 92%) !important;
}

html.embed-theme-active .itc-btn--primary,
html.embed-theme-active .emi-btn--primary,
html.embed-theme-active .nwc-btn--primary,
html.embed-theme-active .dc-btn--primary,
html.embed-theme-active .si-btn--primary {
    background: var(--embed-accent, var(--itc-primary)) !important;
    border-color: var(--embed-accent, var(--itc-primary)) !important;
    color: #fff !important;
}

html.embed-theme-active .itc-tp-tab.active,
html.embed-theme-active .itc-regime-tab.active,
html.embed-theme-active .emi-tenure-btn--active,
html.embed-theme-active .nwc-chip,
html.embed-theme-active .si-chip {
    background: var(--embed-accent, var(--itc-primary)) !important;
    border-color: var(--embed-accent, var(--itc-primary)) !important;
    color: #fff !important;
}

html.embed-theme-active .itc-hero-icon,
html.embed-theme-active .emi-head-icon,
html.embed-theme-active .nwc-hero-icon {
    background: var(--embed-accent, var(--itc-primary)) !important;
    color: #fff !important;
}

html.embed-theme-active .itc-hero h1 mark {
    color: var(--embed-accent, var(--itc-primary)) !important;
}

html.embed-theme-active #itcMobileBar {
    background: var(--embed-footer, transparent) !important;
    border-top: none !important;
}

/* GST calculator (master page / app embed) */
html.embed-theme-active .main-header,
html.embed-theme-active header.main-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

html.embed-theme-active #MainContent,
html.embed-theme-active main#MainContent {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--embed-bg, #ffffff) !important;
}

html.embed-theme-active .gst-embed-calc,
html.embed-theme-active .gst-embed-calc.cta-section,
html.embed-theme-active .cta-subscribe.cta-section.gst-embed-calc {
    background: var(--embed-bg, #ffffff) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border: none !important;
    box-shadow: none !important;
}

html.embed-theme-active .gst-embed-calc::before,
html.embed-theme-active .gst-embed-calc::after,
html.embed-theme-active .cta-subscribe.cta-section::before,
html.embed-theme-active .cta-subscribe.cta-section::after {
    display: none !important;
    content: none !important;
}

html.embed-theme-active .gst-embed-calc .container {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

html.embed-theme-active .gst-embed-calc .cta-boxA {
    border: none !important;
    background: #ffffff !important;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--embed-accent, var(--gst-accent, #0073bc)) 10%, transparent 90%) !important;
}

html.embed-theme-active .gst-embed-calc .cta-heading,
html.embed-theme-active .gst-embed-calc .cta-title,
html.embed-theme-active .gst-embed-calc h4 {
    color: var(--embed-accent, var(--gst-accent, #0073bc)) !important;
}

html.embed-theme-active .gst-embed-calc .input {
    border: 1px solid color-mix(in srgb, var(--embed-accent, #0073bc) 22%, #e8e8e8 78%) !important;
    background-color: #f5f5f5 !important;
}

html.embed-theme-active .gst-embed-calc .input:hover,
html.embed-theme-active .gst-embed-calc .input:focus {
    border-color: var(--embed-accent, var(--gst-accent, #0073bc)) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--embed-accent, #0073bc) 15%, transparent 85%) !important;
    background-color: #ffffff !important;
}

html.embed-theme-active .text-overlay-bg {
    background: var(--embed-bg, #ffffff) !important;
}

html.embed-theme-active .gst-info-section {
    display: none !important;
}

html.embed-theme-active hr,
html.embed-theme-active .gst-embed-calc hr {
    display: none !important;
    border: none !important;
}

/* Option A: hide calculator marketing hero when embedded in app iframe (title stays in app toolbar) */
html.in-iframe .itc-hero,
html.in-iframe .emi-page-head,
html.in-iframe .nwc-hero,
html.in-iframe header.dc-hero,
html.in-iframe .si-page > .si-wrap > header.si-hero,
html.in-iframe .gst-embed-calc .cta-heading {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    border: none !important;
}

html.in-iframe .itc-section,
html.in-iframe .emi-board,
html.in-iframe .nwc-wrap > .nwc-summary-row,
html.in-iframe .dc-wrap > .dc-dashboard,
html.in-iframe .si-stack {
    padding-top: 0 !important;
}

html.in-iframe .itc-page .main-wrapper,
html.in-iframe .emi-page .emi-wrap,
html.in-iframe .nwc-page,
html.in-iframe .dc-page,
html.in-iframe .si-page .si-wrap {
    padding-top: 0.25rem !important;
}
