
#bzcalc {
            --ink: #000000;
            --ink-soft: #191919;
            --teal: #13A89E;
            --teal-dark: #0E8880;
            --teal-bright: #2FD9CB;
            --paper: #FFFFFF;
            --bg: #ECEEEE;
            --line: #E2E5E5;
            --text: #1D1D1D;
            --muted: #6E7574;
            --alert: #C62828;
            --alert-bg: #FDECEA;
        }
#bzcalc *, #bzcalc *::before, #bzcalc *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
#bzcalc {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg);
            color: var(--text);
            padding: 20px;
            /* no min-height: inside a page the widget must size to its content */
        }
#bzcalc .container {
            max-width: 1200px;
            margin: 0 auto;
            background: var(--paper);
            border-radius: 14px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
            overflow: hidden;
        }
#bzcalc .header {
            background: var(--ink);
            color: #fff;
            padding: 30px;
            border-bottom: 4px solid var(--teal);
        }
#bzcalc .header-logo {
            display: block;
            width: 170px;
            height: auto;
            margin-bottom: 18px;
        }
#bzcalc .header h1 {
            font-size: 2.1em;
            font-weight: 600;
            letter-spacing: -0.01em;
            margin-bottom: 6px;
        }
#bzcalc .header p {
            font-size: 1em;
            color: #A9AFAE;
        }
#bzcalc .vat-toggle {
            background: var(--ink-soft);
            padding: 15px 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }
#bzcalc .vat-toggle > label {
            color: #C9CECD;
            font-weight: 600;
            font-size: 1em;
        }
#bzcalc .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
        }
#bzcalc .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
#bzcalc .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #4A4F4E;
            transition: .3s;
            border-radius: 30px;
        }
#bzcalc .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
#bzcalc input:checked + .slider {
            background-color: var(--teal);
        }
#bzcalc input:checked + .slider:before {
            transform: translateX(30px);
        }
#bzcalc .toggle-switch input:focus-visible + .slider {
            outline: 3px solid var(--teal-bright);
            outline-offset: 2px;
        }
#bzcalc .vat-status {
            color: var(--teal-bright);
            font-weight: bold;
            font-size: 1em;
        }
#bzcalc .content {
            padding: 30px;
        }
#bzcalc .user-section {
            margin-bottom: 26px;
            border: 1px solid var(--line);
            border-left: 5px solid var(--teal);
            border-radius: 10px;
            overflow: hidden;
        }
#bzcalc .user-section-header {
            background: var(--ink);
            color: #fff;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 12px;
            flex-wrap: wrap;
        }
#bzcalc .sec-title {
            font-size: 1.2em;
            font-weight: 600;
        }
#bzcalc .sec-price {
            color: var(--teal-bright);
            font-weight: 600;
            font-size: 1em;
        }
#bzcalc .user-section-body {
            padding: 20px;
        }
#bzcalc .input-group {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 15px;
            align-items: center;
            margin-bottom: 15px;
        }
#bzcalc .input-group label {
            font-weight: 600;
            color: var(--text);
            font-size: 1.05em;
        }
#bzcalc .input-group input[type="number"], #bzcalc .input-group input[type="text"] {
            width: 100px;
            padding: 10px;
            border: 2px solid var(--line);
            border-radius: 6px;
            font-size: 1.1em;
            text-align: center;
            color: var(--text);
        }
#bzcalc .input-group input[type="number"]:focus {
            outline: none;
            border-color: var(--teal);
        }
#bzcalc .input-with-button {
            display: flex;
            gap: 10px;
            align-items: center;
        }
#bzcalc .mini-btn {
            background: var(--paper);
            color: var(--ink);
            border: 2px solid var(--ink);
            border-radius: 6px;
            padding: 9px 14px;
            font-size: 0.9em;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }
#bzcalc .mini-btn:hover {
            background: var(--ink);
            color: #fff;
        }
#bzcalc .user-cost {
            background: #F2FAF9;
            border: 1px solid #D8EDEB;
            padding: 15px;
            border-radius: 8px;
            margin-top: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            font-size: 1.05em;
        }
#bzcalc .user-cost .price {
            color: var(--teal-dark);
            font-size: 1.3em;
            font-weight: 700;
        }
#bzcalc .module-selection {
            margin-top: 20px;
            padding: 18px;
            background: #F7F8F8;
            border-radius: 8px;
        }
#bzcalc .module-selection h4 {
            margin-bottom: 15px;
            color: var(--ink);
            font-size: 1.05em;
        }
#bzcalc .module-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 10px;
            margin-bottom: 5px;
        }
#bzcalc .module-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }
#bzcalc .module-item input[type="checkbox"], #bzcalc .module-item input[type="radio"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--teal);
        }
#bzcalc .module-item label {
            cursor: pointer;
            font-size: 0.95em;
        }
#bzcalc .module-item input[type="checkbox"]:disabled, #bzcalc .module-item input[type="radio"]:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
#bzcalc .module-item input[type="checkbox"]:disabled + label, #bzcalc .module-item input[type="radio"]:disabled + label {
            opacity: 0.5;
            cursor: not-allowed;
            text-decoration: line-through;
        }
#bzcalc .tier-breakdown {
            margin-top: 20px;
            overflow-x: auto;
        }
#bzcalc .tier-breakdown h4 {
            margin-bottom: 10px;
            color: var(--ink);
        }
#bzcalc .tier-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }
#bzcalc .tier-table th, #bzcalc .tier-table td {
            padding: 12px;
            text-align: center;
            border: 1px solid var(--line);
        }
#bzcalc .tier-table th {
            background: var(--ink);
            color: white;
            font-weight: 600;
        }
#bzcalc .tier-table tr:nth-child(even) {
            background: #FAFBFB;
        }
#bzcalc .tier-table .total-column {
            background: var(--teal);
            color: white;
        }
#bzcalc .tier-row-total {
            background: #F2FAF9 !important;
        }
#bzcalc .summary {
            background: var(--ink);
            color: white;
            padding: 30px;
            border-radius: 10px;
            margin-top: 30px;
            border-top: 4px solid var(--teal);
        }
#bzcalc .summary h2 {
            margin-bottom: 20px;
            font-size: 1.6em;
            font-weight: 600;
        }
#bzcalc #summary-vat-status {
            color: #A9AFAE;
            font-weight: normal;
            font-size: 0.7em;
        }
#bzcalc .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            font-size: 1.05em;
            color: #DDE1E0;
        }
#bzcalc .summary-row:last-child {
            border-bottom: none;
        }
#bzcalc .summary-row.total {
            font-size: 1.4em;
            font-weight: bold;
            color: #fff;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid var(--teal);
        }
#bzcalc .summary-row .price {
            color: var(--teal-bright);
            font-weight: bold;
        }
#bzcalc .summary-row.total .price {
            color: #fff;
        }
#bzcalc .note {
            background: #F7F8F8;
            border-left: 3px solid var(--teal);
            color: #3A3F3E;
            padding: 14px 16px;
            margin-top: 16px;
            border-radius: 4px;
            font-size: 0.95em;
            line-height: 1.5;
        }
#bzcalc .warning {
            background: var(--alert-bg);
            border-left: 3px solid var(--alert);
            color: #8E1B14;
            padding: 12px 16px;
            margin-top: 14px;
            border-radius: 4px;
            font-size: 0.95em;
            font-weight: 600;
        }
#bzcalc .quote-bar {
            margin-top: 30px;
            padding: 25px;
            border: 1px solid var(--line);
            border-top: 4px solid var(--teal);
            border-radius: 10px;
            background: #F7F8F8;
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            gap: 15px;
            align-items: end;
        }
#bzcalc .quote-bar .field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
#bzcalc .quote-bar label {
            font-weight: 600;
            color: var(--ink);
            font-size: 0.95em;
        }
#bzcalc .quote-bar input[type="text"] {
            padding: 10px;
            border: 2px solid var(--line);
            border-radius: 6px;
            font-size: 1em;
            width: 100%;
        }
#bzcalc .quote-bar input[type="text"]:focus {
            outline: none;
            border-color: var(--teal);
        }
#bzcalc .generate-btn {
            background: var(--teal);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 14px 28px;
            font-size: 1.05em;
            font-weight: bold;
            cursor: pointer;
            white-space: nowrap;
        }
#bzcalc .generate-btn:hover {
            background: var(--teal-dark);
        }
#bzcalc .generate-btn:disabled {
            opacity: 0.6;
            cursor: wait;
        }
#bzcalc .quote-status {
            grid-column: 1 / -1;
            font-size: 0.95em;
            color: var(--muted);
            min-height: 1.2em;
        }

        @media (max-width: 768px) {
#bzcalc .header h1 {
                font-size: 1.6em;
            }
#bzcalc .input-group {
                grid-template-columns: 1fr;
            }
#bzcalc .input-group input[type="number"], #bzcalc .input-group input[type="text"] {
                width: 100%;
            }
#bzcalc .input-with-button {
                flex-direction: column;
                align-items: stretch;
            }
#bzcalc .module-grid {
                grid-template-columns: 1fr;
            }
#bzcalc .tier-table {
                font-size: 0.85em;
            }
#bzcalc .tier-table th, #bzcalc .tier-table td {
                padding: 8px 4px;
            }
#bzcalc .summary-row {
                flex-direction: column;
                gap: 5px;
            }
#bzcalc .quote-bar {
                grid-template-columns: 1fr;
            }
        }
    

        /* --- Embedded-page hardening: themes (WordPress/Elementor) set explicit
           colours and sizes on generic tags, which beat inherited values.
           Everything below states the value outright so nothing is left to inherit. --- */
        #bzcalc { line-height: 1.45 !important; }
        #bzcalc h1, #bzcalc h2, #bzcalc h4 { font-family: inherit !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: normal; }
        #bzcalc .header h1 { color: #FFFFFF !important; font-size: 2.1em !important; }
        #bzcalc .header p { color: #A9AFAE !important; }
        #bzcalc .summary h2 { color: #FFFFFF !important; font-size: 1.6em !important; }
        #bzcalc .summary #summary-vat-status { color: #A9AFAE !important; }
        #bzcalc .user-section-header .sec-title { color: #FFFFFF !important; }
        #bzcalc .user-section-header .sec-price { color: var(--teal-bright) !important; }
        #bzcalc .summary-row { color: #DDE1E0 !important; }
        #bzcalc .summary-row .price { color: var(--teal-bright) !important; }
        #bzcalc .summary-row.total, #bzcalc .summary-row.total .price { color: #FFFFFF !important; }
        #bzcalc .vat-toggle > label { color: #C9CECD !important; }
        #bzcalc .vat-status { color: var(--teal-bright) !important; }
        #bzcalc .module-selection h4, #bzcalc .tier-breakdown h4 { color: var(--ink) !important; }
        #bzcalc .note { color: #3A3F3E !important; }
        #bzcalc .warning { color: #8E1B14 !important; }
        #bzcalc label, #bzcalc td, #bzcalc strong { color: inherit; }
        #bzcalc .input-group label, #bzcalc .quote-bar label { color: var(--text) !important; }
        #bzcalc .user-cost { color: var(--text) !important; }
        #bzcalc .user-cost .price { color: var(--teal-dark) !important; }
        #bzcalc img { max-width: 100%; height: auto; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
        #bzcalc table { width: 100%; border-collapse: collapse !important; margin: 0; background: none; }
        #bzcalc .tier-table th { background: var(--ink) !important; color: #FFFFFF !important; }
        #bzcalc .tier-table td { color: var(--text) !important; }
        #bzcalc .tier-table .total-column { background: var(--teal) !important; color: #FFFFFF !important; }
        #bzcalc .tier-table td.grand-total-cell { background: var(--ink) !important; color: #FFFFFF !important; }
        #bzcalc input[type="number"], #bzcalc input[type="text"] {
            background: #FFFFFF !important;
            color: var(--text) !important;
            font-family: inherit !important;
            box-shadow: none !important;
            height: auto !important;
            min-height: 0 !important;
        }
        #bzcalc .toggle-switch input { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; margin: 0 !important; }
        #bzcalc button { font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; }
        #bzcalc .brand-fallback { color: #FFFFFF !important; font-size: 2em; font-weight: 700; margin-bottom: 14px; }
        #bzcalc .rb-toggle-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
        #bzcalc .rb-toggle-row .rb-label { font-weight: 600; color: var(--text) !important; font-size: 1.05em; }
        #bzcalc .rb-status { font-weight: 700; color: var(--muted) !important; }
        #bzcalc .rb-status.is-on { color: var(--teal-dark) !important; }
        #bzcalc .is-off { opacity: 0.45; }
        #bzcalc .estimate-flag { background: #FFF4D6 !important; border-left: 3px solid #E8A33D; color: #6B4A0F !important; padding: 14px 16px; margin-top: 16px; border-radius: 4px; font-size: 0.95em; line-height: 1.5; }
        #bzcalc .estimate-flag strong { color: #6B4A0F !important; }
        #bzcalc .est-tag { background: #F0B429; color: #111111 !important; padding: 1px 7px; border-radius: 3px; font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
        #bzcalc .rb-estimate-box .price { color: #6B4A0F !important; }
        #bzcalc .rb-estimate-box { background: #FFF4D6 !important; border-color: #F0DCAE !important; }

/* moved from inline style="" attributes in calculator.html (strict CSP) */
.page-hero .calc-title { margin-top: 16px; }
.page-hero .calc-intro { margin-top: 14px; color: #9AACAF; max-width: 640px; }
.is-hidden { display: none; }   /* calculator.js shows these by setting style.display, which overrides this */
/* these sit inside #bzcalc, whose rules use the id, so the moved spacing needs the same weight */
#bzcalc h4.mt-22 { margin-top: 22px; }
#bzcalc .user-cost.mt-20 { margin-top: 20px; }
#bzcalc .summary-row.summary-total { margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 20px; }
