﻿.ta-page {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0;
    position:relative;
}
.ta-form-group {
    column-gap: 0
}

.ta-form-group-control {
    > .rz-textbox,
    > .rz-textarea,
    > .rz-numeric,
    > .rz-datepicker,
    > .rz-dropdown,
    > .rz-alert,
    > .ta-static-text {
        display: block;
        width: 100%;
    }
    > .rz-alert {
        margin: 0
    }
    > .rz-message {
        display: block;
    }
}

.rz-radiobutton-label {
    cursor: pointer;
}

.ta-static-text {
    color: var(--rz-input-value-color);
    font-size: var(--rz-input-font-size);
}

i.rzi.ta-info-icon {
    vertical-align: middle;
    font-size: 16px;
    margin-left: 2px;
    margin-right: 6px;
    cursor: pointer;
}

.ta-hidden {
    visibility: hidden;
}

.ta-info-popup > .rz-tooltip-content {
    max-width: 300px;
    white-space: normal;
}

.ta-current-value {
    text-decoration: line-through
}

.ta-new-indicator {
    line-height: 10px;
    font-size: 10px;
    margin-inline-start: 0.2rem;
}

/* car license styles copied and adapted from https://github.com/friedt/kenteken-check-NL-RDW/blob/master/src/example.css */

@font-face {
    font-family: 'kenteken';
    src: url('Kenteken.ttf');
}

.car-license {
    position: relative;
    max-width: 210px;
    background-color: #faca30;
    border-radius: 3px;
    border: 1px solid #faca30;
    z-index: 1;
    white-space: nowrap;
}

.car-license__country-code {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*top: -1px;*/
    left: -1px;
    z-index: 2;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    height: 100%;
    width: 30px;
    background-color: #011c95;
    color: white;
    text-transform: uppercase;
}

.car-license__form-control,
.car-license__output {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #faca30;
    padding: 5px 10px 5px 30px;
    width: 100%;
    height: 100%;
    font-family: 'kenteken', 'Roboto Condensed';
    font-size: 1.9rem;
}

.car-license__form-control {
    padding: 0 0 0 22px;
}

.car-license__input,
.rz-textbox.car-license__input:not(:disabled):not(.rz-state-disabled):hover,
input.car-license__input:-webkit-autofill,
input.car-license__input:-webkit-autofill:hover,
input.car-license__input:-webkit-autofill:focus {
    width: 100%;
    padding: 0;
    border: none;
    background-color: #faca30;
    text-align: center;
    text-transform: uppercase;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    -webkit-box-shadow: 0 0 0px 1000px #faca30 inset !important;
}

.ta-card-control {
    font-size: 18px;
}

@media only screen and (min-width: 1024px) {
    .ta-card-premium {
        text-align: right;
    }
    div[name=COLO_TTOT_FG] > .ta-form-group-control {
        text-align: right;
    }
}

.ta-html {
    a, a:visited {
        color: var(--rz-link-color);
        text-decoration: none;
    }
    a:hover {
        text-decoration: underline;
    }
}

.ta-premium {
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    margin-right: 4px;
}

.ta-payment-term {
    font-size: 12px;
    display: inline-block !important;
    vertical-align: baseline;
}

div[name=COLO_TTOT_FG] {
    font-size: 18px;
    font-weight: bold;
    > .ta-form-group-control {
        > .ta-static-text {
            font-size: 18px;
        }
    }
}

.ta-busy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    > div {
        position: absolute;
        top: 50%;
        left: 50%;
    }
}

#showAfd {
    position: absolute;
    top: 0;
    right: 0;
}

.ta-afd-model {
    max-height: 600px;
    overflow-y: auto;
    font-size: 12px;
}

.rz-fileupload-files {
    display: none !important;
}

.ta-clickable {
    cursor: pointer;
}

    .ta-clickable:hover {
        box-shadow: 0 0 0 2px var(--rz-primary-lighter);
    }

.ta-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Action card */

.ta-action-card {
    width: 100%;
    margin-bottom: 1rem;
}

.ta-action-card.is-selected {
    background-color: var(--rz-primary-lighter) !important;
    border: 2px solid var(--rz-primary) !important;
}

.ta-action-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rz-base-300);
    margin-bottom: 0.75rem;
    background-color: var(--rz-primary) !important;
    color: white;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.ta-card-premium .ta-static-text {
    color: white !important;
}

.ta-action-card-label {
    font-size: 18px;
    font-weight: bold;
}

.ta-action-card-content {
    padding: 0.75rem 1rem;
    position: relative;
}

.ta-action-card-button {
    margin-top: 0.75rem;
}

.ta-coverage-details {
    margin-top: 0.5rem;
}

.ta-coverage-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 10px;
    color: var(--rz-secondary) !important;
    user-select: none;
}

.ta-coverage-details[open] .ta-coverage-summary {
    margin-bottom: 0.5rem;
}

.ta-action-card.is-selected .ta-coverage-details,
.ta-action-card.is-selected .ta-coverage-content {
    background-color: transparent !important;
}

@media screen and (max-width: 767px) {
    .ta-coverage-content .ta-form-group.rz-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between;
    }

    .ta-coverage-content .rz-col-12 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }

    .ta-coverage-content .ta-form-group-label {
        flex: 1 1 auto !important;
        min-width: 0;
        padding-right: 15px;
    }

    .ta-coverage-content .rz-label {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ta-coverage-content .ta-form-group-control {
        flex: 0 0 auto !important;
        text-align: right !important;
        white-space: nowrap;
        padding-top: 2px;
    }

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

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

/* Coverage item icons */

.ta-coverage-item--covered .ta-form-group-control::before,
.ta-coverage-item--covered.ta-html-full-width .ta-form-group-control::before {
    content: "\2713";
    color: var(--rz-success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.ta-coverage-item--not-covered .ta-form-group-control::before,
.ta-coverage-item--not-covered.ta-html-full-width .ta-form-group-control::before {
    content: "\2717";
    color: var(--rz-danger);
    font-weight: bold;
    margin-right: 0.5rem;
}

.ta-coverage-item--covered .ta-form-group-control,
.ta-coverage-item--not-covered .ta-form-group-control,
.ta-coverage-item--covered.ta-html-full-width .ta-form-group-control,
.ta-coverage-item--not-covered.ta-html-full-width .ta-form-group-control {
    display: flex;
    align-items: flex-start;
}

.ta-forms-validation:not(:has(.rz-alert-content:not(:empty))) {
    display: none !important;
}

.ta-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

label .rz-chkbox {
    display: none !important;
}

label .ta-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--rz-secondary);
    text-decoration: underline; 
}

.ta-action-card-content .ta-form-group.rz-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ta-action-card-content .ta-form-group-label {
    flex: 1 1 auto !important;
    max-width: 70% !important;
    padding: 0 !important;
}

.ta-action-card-content .ta-form-group-control {
    flex: 0 0 auto !important;
    width: auto !important;
    text-align: right !important;
    padding: 0 !important;
}

.ta-action-card-content .ta-static-text {
    display: inline-block;
    text-align: right;
    width: 100%;
}

@media screen and (max-width: 767px) {
    .ta-action-card-content .rz-label {
        white-space: normal !important;
        line-height: 1.2;
    }
}