:root {
    --rz-body-background-color: white;
}

.main-page {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0;
}

.rz-layout {
    height: auto;
    overflow: auto;
    display: block;
}

.ta-payment-term {
    display: none;
}

#Offreren\.PremieoverzichtBlok, #Acceptatie\.PremieoverzichtBlok {
    > legend

{
    font-weight: bold;
    color: black;
    font-size: 16px;
}

}


/* Bedragen rechts uitlijnen in premieoverzicht cards - voor alle schermen */
#Offreren\.PremieoverzichtBlok span[id$=_TTOT],
#Acceptatie\.PremieoverzichtBlok span[id$=_TTOT] {
    text-align: right;
    display: block;
    width: 100%;
}

div[name=PP_TTOT_FG] {
    font-weight: bold;
    font-size: 16px;
}

div[name=COLO_TXTPRV] {
    font-size: 12px;
    margin-top: -15px;
}

.add-insurance-panel {
    > div

{
    display: flex;
    justify-content: space-between;
    > div

{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    > i

{
    font-size: 32px;
}

> h6 {
    margin-bottom: 0
}

}
}
}

.product-icon-svg {
    width: 32px;
    height: 32px;
    background-color: var(--rz-primary);
}

/* Insurance card styling - Desktop */
.insurance-card-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

    .insurance-card-wrapper .rz-fieldset {
        position: relative;
        padding-top: 1rem;
        padding-bottom: 3.5rem;
    }

.insurance-card-edit-button {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    z-index: 10;
}

    .insurance-card-edit-button .rz-button {
        color: black !important;
    }

        .insurance-card-edit-button .rz-button .rz-button-box {
            color: black !important;
        }

            .insurance-card-edit-button .rz-button .rz-button-box i {
                color: black !important;
            }

.insurance-card-remove-button {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
}

    .insurance-card-remove-button .rz-button-text {
        text-decoration: underline !important;
    }

    .insurance-card-remove-button .rz-button:hover {
        background: transparent !important;
        background-color: transparent !important;
    }

.insurance-email-button {
    text-align: left;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

    .insurance-email-button .rz-button-text {
        text-decoration: underline !important;
    }

    .insurance-email-button .rz-button:hover {
        background: transparent !important;
        background-color: transparent !important;
    }

        .insurance-email-button .rz-button:hover .rz-button-box {
            background: transparent !important;
            background-color: transparent !important;
        }

.insurance-card-wrapper .rz-fieldset-content {
    position: relative;
    z-index: 1;
}

.ta-page {
    padding-top: 60px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 20px !important;
    display: flex;
    flex-direction: column;
}

    .ta-page > :nth-child(1) {
        order: -2;
    }

    .ta-page > :nth-child(2) > .combined-overview-subtitle {
        order: -1;
    }

    /* Back button styling - pijltje linksboven ALTIJD */
    /* Voor TIMA flow pages - alleen wanneer NIET binnen .button-group */
    .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child,
    .ta-page > .rz-stack > button.rz-button.rz-light:first-child,
    /* Voor nav-buttons binnen button-group */
    .nav-buttons > button.rz-button.rz-secondary:first-of-type,
    .nav-buttons > button.rz-button.rz-light:first-of-type {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        margin: 0 !important;
        z-index: 100 !important;
        min-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

        .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child .rz-button-box,
        .ta-page > .rz-stack > button.rz-button.rz-light:first-child .rz-button-box,
        .nav-buttons > button.rz-button.rz-secondary:first-of-type .rz-button-box,
        .nav-buttons > button.rz-button.rz-light:first-of-type .rz-button-box {
            background: transparent !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
        }

        .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child .rz-button-text,
        .ta-page > .rz-stack > button.rz-button.rz-light:first-child .rz-button-text,
        .nav-buttons > button.rz-button.rz-secondary:first-of-type .rz-button-text,
        .nav-buttons > button.rz-button.rz-light:first-of-type .rz-button-text {
            font-size: 0 !important;
            line-height: 0 !important;
        }

            .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child .rz-button-text::before,
            .ta-page > .rz-stack > button.rz-button.rz-light:first-child .rz-button-text::before,
            .nav-buttons > button.rz-button.rz-secondary:first-of-type .rz-button-text::before,
            .nav-buttons > button.rz-button.rz-light:first-of-type .rz-button-text::before {
                content: "\2190";
                font-size: 2rem !important;
                font-weight: 200 !important;
                line-height: 1 !important;
                color: #555 !important;
                display: block;
            }

        .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child:hover,
        .ta-page > .rz-stack > button.rz-button.rz-light:first-child:hover,
        .nav-buttons > button.rz-button.rz-secondary:first-of-type:hover,
        .nav-buttons > button.rz-button.rz-light:first-of-type:hover {
            background: transparent !important;
            background-color: transparent !important;
        }

            .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child:hover .rz-button-text::before,
            .ta-page > .rz-stack > button.rz-button.rz-light:first-child:hover .rz-button-text::before,
            .nav-buttons > button.rz-button.rz-secondary:first-of-type:hover .rz-button-text::before,
            .nav-buttons > button.rz-button.rz-light:first-of-type:hover .rz-button-text::before {
                color: #000 !important;
            }

/* Remove underline from all buttons */
.rz-button,
.rz-button .rz-button-text {
    text-decoration: none !important;
}

/* Override for specific buttons that should have underline */
.insurance-card-remove-button .rz-button-text,
.insurance-email-button .rz-button-text {
    text-decoration: underline !important;
}

/* Desktop button layout */
@media screen and (min-width: 768px) {
    .action-buttons-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .insurance-email-button {
        margin: 0;
    }

    .add-insurance-button-wrapper {
        display: flex;
        justify-content: flex-end;
    }

    .button-group {
        width: 100%;
        align-items: center !important;
    }

    /* Horizontale layout voor email en add insurance buttons */
    .insurance-email-button-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .add-insurance-btn {
        background-color: white !important;
        color: var(--rz-secondary) !important;
        border: 1px solid var(--rz-secondary) !important;
    }

        .add-insurance-btn .rz-button-box {
            background-color: white !important;
            color: var(--rz-secondary) !important;
        }

        .add-insurance-btn:hover {
            background-color: var(--rz-secondary-lighter) !important;
        }

            .add-insurance-btn:hover .rz-button-box {
                background-color: transparent !important;
            }
}

/* Mobile optimizations */
@media screen and (max-width: 767px) {
    .action-buttons-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .add-insurance-button-wrapper {
        order: -1;
    }

    /* Premium overview - alle premium items op één regel */
    #Offreren\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]),
    #Acceptatie\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

        #Offreren\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) > .rz-col-12,
        #Acceptatie\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) > .rz-col-12 {
            flex: 0 0 auto !important;
            width: auto !important;
            max-width: none !important;
        }

            #Offreren\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) > .rz-col-12:first-child,
            #Acceptatie\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) > .rz-col-12:first-child {
                flex: 1 1 auto !important;
                padding-right: 15px !important;
            }

            #Offreren\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) > .rz-col-12:last-child,
            #Acceptatie\.PremieoverzichtBlok .rz-row:has(> .rz-col-12 > [id$="_TTOT"]) > .rz-col-12:last-child {
                text-align: right !important;
                white-space: nowrap !important;
            }

    .ta-coverage-details {
        display: block !important;
        margin-top: 0.5rem;
        width: 100%;
    }

        .ta-coverage-details,
        .ta-coverage-details .ta-static-text {
            font-size: 10px;
        }

    /* Button group alignment op mobiel */
    .button-group {
        align-items: stretch !important;
        gap: 1rem !important;
    }

        /* Alle primary buttons full-width op mobiel */
        .ta-page .rz-stack button.rz-button.rz-primary,
        .nav-buttons button.rz-button.rz-primary,
        .button-group button.rz-button.rz-primary {
            width: 100% !important;
            max-width: 100% !important;
            margin-bottom: 20px !important;
        }

    /* Add insurance button - zelfde breedte als Volgende button op mobiel */
    .add-insurance-btn {
        width: 100% !important;
        max-width: 100% !important;
        background-color: white !important;
        color: var(--rz-secondary) !important;
        border: 1px solid var(--rz-secondary) !important;
    }

        .add-insurance-btn .rz-button-box {
            background-color: white !important;
            color: var(--rz-secondary) !important;
        }

        .add-insurance-btn:hover {
            background-color: var(--rz-secondary-lighter) !important;
        }

            .add-insurance-btn:hover .rz-button-box {
                background-color: transparent !important;
            }

    /* Insurance card mobile adjustments */
    .insurance-card-wrapper .rz-fieldset {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    /* Edit button - rechtsboven met meer ruimte */
    .insurance-card-edit-button {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        margin: 0 !important;
        z-index: 100 !important;
    }

        .insurance-card-edit-button .rz-button {
            min-width: 40px !important;
            width: 40px !important;
            height: 40px !important;
            padding: 0 !important;
            background: transparent !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

            .insurance-card-edit-button .rz-button .rz-button-box {
                background: transparent !important;
                background-color: transparent !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
            }

            .insurance-card-edit-button .rz-button:hover {
                background: transparent !important;
                background-color: transparent !important;
            }

    /* Remove button - linksonder */
    .insurance-card-remove-button {
        position: absolute !important;
        bottom: 10px !important;
        left: 10px !important;
        margin: 0 !important;
        z-index: 100 !important;
    }

        .insurance-card-remove-button .rz-button {
            background: transparent !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 0.5rem !important;
            min-width: auto !important;
            width: auto !important;
            height: 40px !important;
        }

            .insurance-card-remove-button .rz-button .rz-button-box {
                background: transparent !important;
                background-color: transparent !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
            }

            .insurance-card-remove-button .rz-button:hover {
                background: transparent !important;
                background-color: transparent !important;
            }
}

@media (max-width: 480px) {
    .ta-page {
        padding-top: 55px !important;
        padding-bottom: 15px !important;
    }

        .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child,
        .ta-page > .rz-stack > button.rz-button.rz-light:first-child,
        .nav-buttons > button.rz-button.rz-secondary:first-of-type,
        .nav-buttons > button.rz-button.rz-light:first-of-type {
            top: 5px !important;
            left: 5px !important;
            width: 36px !important;
            height: 36px !important;
        }

            .ta-page > .rz-stack > button.rz-button.rz-secondary:first-child .rz-button-text::before,
            .ta-page > .rz-stack > button.rz-button.rz-light:first-child .rz-button-text::before,
            .nav-buttons > button.rz-button.rz-secondary:first-of-type .rz-button-text::before,
            .nav-buttons > button.rz-button.rz-light:first-of-type .rz-button-text::before {
                font-size: 1.75rem !important;
            }

    .add-insurance-btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Insurance card extra small screen adjustments */
    .insurance-card-wrapper .rz-fieldset {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .insurance-card-edit-button {
        top: 0.75rem !important;
        right: 0.75rem !important;
    }

        .insurance-card-edit-button .rz-button {
            width: 36px !important;
            height: 36px !important;
        }

    .insurance-card-remove-button {
        bottom: 5px !important;
        left: 5px !important;
    }

        .insurance-card-remove-button .rz-button {
            height: 36px !important;
        }
}

.rz-fieldset {
    position: relative !important;
    padding-top: 50px !important;
}

    .rz-fieldset[id] legend {
        position: absolute !important;
        top: 20px !important;
        left: 0.1rem !important;
        font-weight: bold;
    }

    .rz-fieldset[id*="Paginatitels"] {
        border: none !important;
    }

#showAfd {
    z-index: 1 !important;
}

.rz-card {
    line-height: 1.6;
}

    .rz-card .rz-text {
        line-height: 1.6;
    }

/* Desktop button layout */
@media screen and (min-width: 768px) {
    .action-buttons-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .insurance-email-button {
        margin: 0;
    }

    .add-insurance-button-wrapper {
        display: flex;
        justify-content: flex-end;
    }

    .button-group {
        width: 100%;
        align-items: center !important;
    }

    /* Horizontale layout voor email en add insurance buttons */
    .insurance-email-button-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    /* Verberg de mobiele add insurance button op desktop */
    .insurance-add-button-mobile {
        display: none !important;
    }

    .add-insurance-btn {
        background-color: white !important;
        color: var(--rz-secondary) !important;
        border: 1px solid var(--rz-secondary) !important;
        margin-bottom: 0 !important;
    }

        .add-insurance-btn .rz-button-box {
            background-color: white !important;
            color: var(--rz-secondary) !important;
        }

        .add-insurance-btn:hover {
            background-color: var(--rz-secondary-lighter) !important;
        }

            .add-insurance-btn:hover .rz-button-box {
                background-color: transparent !important;
            }
}

/* Mobile optimizations */
@media screen and (max-width: 767px) {
    /* Verberg de desktop add insurance button op mobiel */
    .insurance-add-button-desktop {
        display: none !important;
    }

    .action-buttons-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Checkbox toggle styling met chevron aan rechterkant */
.ta-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    width: 100%;
}

    .ta-checkbox .ta-chevron {
        margin-left: auto;
        order: 3;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--rz-text-color, #3A3A3A);
        border-bottom: 2px solid var(--rz-text-color, #3A3A3A);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .ta-checkbox:has(.rz-chkbox input:checked) .ta-chevron {
        transform: rotate(-135deg);
    }

    .ta-checkbox .rz-chkbox {
        flex-shrink: 0;
        order: 1;
    }

    .ta-checkbox .ta-label {
        order: 2;
        flex-grow: 1;
        color: var(--rz-text-color);
    }

.combined-overview-subtitle {
    font-family: var(--rz-text-font-family);
    font-size: var(--rz-text-subtitle1-font-size);
    line-height: var(--rz-text-subtitle1-line-height);
    letter-spacing: var(--rz-text-subtitle1-letter-spacing);
    color: var(--rz-text-subtitle1-color);
    display: block;
    unicode-bidi: isolate;
    margin-block: 0;
}

/* Combined overview title and subtitle alignment */
.ta-page > .rz-text-subtitle1:first-child {
    padding-left: 1rem;
}

.ta-page > .rz-text-subtitle1:nth-of-type(2) {
    font-size: 1px !important;
    background-color: red !important;
    padding-left: 1rem;
}

.ta-page > .rz-stack > .combined-overview-subtitle {
    padding-left: 1rem;
}

/* Beide subtitels in Paginatitelsensubtitels1Blok */
#Offreren\.Paginatitelsensubtitels1Blok .rz-text-subtitle1 {
    font-size: 23px !important;
}
