.entry-content #calculation_result_content h5 {
    margin-bottom: 10px;
}

.header, .sum {
    font-weight: bold;
}

.header small {
    font-weight: normal;
}

#calculation_result_content .row:not(.print-only) div:not(.header, .sum, .form-check) {
    text-align: center;
}

#calculation_result_content .row:not(.print-only) {
    border-bottom: 1px solid #ccc;
}

#calculation_result_content .print-only .row {
    border-bottom: none;
}

#calculation_result_content .row.last {
    border-bottom: none;
}

#calculation_result_content .row.thick-line {
    border-width: 3px;
}

main.wp-block-group h4 {
    margin-bottom: 20px;
}

#care_calculator_content {
    min-height: 500px;
}

.pane-controls {
    display: flex;
    justify-content: space-between;
}

#care_calculator_content .tab-pane:first-child .pane-controls {
    justify-content: flex-end;
}

.print-only.row,
.print-only {
    display: none;
}

.money {
    text-align: right;
}

#calculator_form {
    scroll-margin-top: 200px;
}

#calculator_form .btn-primary {
    font-size: initial;
    padding: 10px 20px;
}

#calculator_form .btn-primary:hover {
    background: #fff;
    color: black;
}

.row.deactivated,
.row.deactivated label {
    color: #ccc;
    font-weight: normal;
    text-decoration: line-through;
}

.sum-total > div {
    border-top: 4px double;
}

#bik_percentage {
    width: 50px;
    padding: 5px;
    margin-top: -2px;
    height: initial;
}

.bik-input-container {
    position: absolute;
    margin-left: -10px;
    margin-top: -3px;
}

#update_form_btn {
    display: block;
    margin: 0 auto;
}

#care_calculator_content .btn.hide {
    display: none;
}

/*.pane-control {*/
/*    position: sticky;*/
/*    bottom: 0;*/
/*    padding-bottom: 5px;*/
/*}*/

#interested_person_content {
    max-width: 470px;
}

#calc_care_level {
    min-width: 150px;
}

/********* toggle checkbox *************/

@media screen {

    .form-check .form-check-input.toggle {
        appearance: none;
        width: 45px;
        height: 20px;
        background: #ccc;
        border-radius: 12px;
        border-color: #aaa;
        position: relative;
        cursor: pointer;
        transition: background 0.3s;
        margin-right: 5px;
        margin-top: 3px;
    }

    .form-check .form-check-input.toggle:checked {
        background: #4CAF50;
        border-color: #aaa;
    }

    .form-check .form-check-input.toggle::before {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: white;
        top: 2px;
        left: 2px;
        transition: transform 0.3s;
    }

    .form-check .form-check-input.toggle:checked::before {
        transform: translateX(26px);
    }
}

/************************************** navigation ************************************/

#care_calculator_tab.nav-tabs {
    padding-left: 0;
    margin-left: 0;
}

#care_calculator_tab .nav-link{
    font-size: initial;
    padding: 5px;
    box-shadow: none;
    margin-right: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px 5px 0 0;
}

#care_calculator_tab .nav-link.active {
    color: var(--e-global-color-accent);
    border-width: 2px;
    border-bottom: none;
}

@media print {
    @page {
        size: A4;
        margin: 0.5in;
    }

    body {
        width: 8.27in; /* A4 width */
        box-sizing: border-box;
    }

    .print-only.row,
    .print-only {
        display: block;
    }

    section#rsa_footer_color_bar,
    section#rsa_header_info_bar,
    .elementor-widget-text-editor:not(#budgetrechner),
    .elementor-widget-icon-list,
    .elementor-top-section .elementor-section,
    #care_calculator_tab,
    .wp-block-post-title,
    #print_btn,
    footer,
    .elementor-widget-nav-menu,
    .elementor-widget-spacer,
    .elementor-widget-heading,

    #update_form_btn,
    header > section:nth-child(2),
    header > section:nth-child(3),
    article > header {
        display: none !important;
        position:static !important;
        background: transparent !important;
        height: 1px;
    }

    #header_image_nav_container div {
        width: 100%;
        background: transparent;
    }

    img {
        height: 100px !important;
        width: auto !important;
        max-height: none !important;
        min-width: initial !important;

    }

    h1 {
        display: none;
    }

    :where(.wp-site-blocks) > * {
        margin-block-start: 0;
    }

    #calculator_form,
    #calculator_form .form-check-label {
        font-size: 12px;
    }

    #calculator_form h5 {
        font-size: 16px;
        font-weight: bold;
    }

    .elementor-widget-image {
        margin-left: 10px;
        max-width: 200px;
    }

    .elementor-widget-image > div {
        width: 100%;
    }

    #compliance_block {
        page-break-before: always;
    }

    .keep-lowercase {
        text-transform: lowercase !important;
    }

    #bik_percentage {
        border: none;
        outline: none;
        box-shadow: none;
        font-size: 12px;
        -webkit-appearance: none;
        appearance: none;
        width: 15px;
        padding: 5px 0;
        -moz-appearance: textfield; /* Firefox */
    }

    #bik_percentage::-webkit-outer-spin-button,
    #bik_percentage::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .bik-input-container {
        margin-left: 0;
    }

    .form-check .form-check-input.toggle {
        margin-top: 5px;
    }
}