/* App Specific Styles */
/* TODO: Long term goal is to remove all of these customizations and standardize D2C UIs. */

/* Loader dismiss hack */
#main-loader::part(overlay), #transition-loader::part(overlay) {
    pointer-events: none;
}


/* Tech Debt, remove later */
.pageTitle {
    font-size: 36px;
    margin: 0 auto;
}

.allstatePageTitle {
    font-size: 35px;
    margin-bottom: 13px;
    letter-spacing: -1px;
    margin-top: -15px;
    text-align: center;
}

.pageSubTitle {
    margin-bottom: -20px;
    font-weight: bold;
}

.pageWidth {
    width: calc(var(--space-design-unit) * var(--space-form-width-units) * 1px);
}

@media (min-width: 580px) {
    .questionPageWidth {
        width: calc(var(--space-design-unit) * var(--space-form-width-units) * 1px);
    }
}


@media only screen and (max-width: 500px) {
    .my-5 {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .p-5 {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* TODO: Responsive input group layouts? */
natgen-radio-group:has([document-media-size=extra-small])::part(positioning-region) {
    flex-direction: column;
}

/* NavBar */
natgen-design-system:not([brand=allstate]) natgen-nav-bar {
    --ui-nav-bar-color-border: var(--color-primary-fill);
}

/* Breadcrumbs */

natgen-wizard-step::part(tail) {
    background-color: var(--color-primary-fill);
}

natgen-wizard-step::part(marker) {
    background-color: var(--color-neutral-fill);
    color: var(--color-primary-fill);
    outline: 1px solid var(--color-primary-fill);
}

natgen-wizard-step::part(control) {
    color: #25589D;
}

/* Field Icons */
.field-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 40px;
    height: 100%;
    background: #d3d3d3;
}

/* Selected RV */

.selected-rv-type-card {
    display: flex;
    flex-direction: column;
}

.rv-type-card {
    width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    font-size: var(--typography-body-small-font-size);
    line-height: var(--typography-body-small-line-height);
}

    .rv-type-card .rv-description {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-self: center;
        height: 2.5em;
    }

        .rv-type-card .rv-description > span {
            font-size: var(--typography-body-x-small-font-size);
            line-height: var(--typography-body-x-small-line-height);
        }

/* Adjacent controls */

.grid-container {
    display: grid;
    width: calc(var(--space-design-unit) * var(--space-form-width-units)* 1px);
    grid-template-columns: repeat(12, 1fr);
    column-gap: 5px;
    margin-top: 0;
}

    .grid-container > * > * {
        width: 100%;
    }

@media only screen and (max-width: 768px) {
    .grid-container {
        width: 100%;
    }
}

.dl-container {
    margin-top: calc(var(--space-design-unit) * 8px);
}

.twoControlsWide {
    width: calc(var(--space-design-unit) * 120px + 175px);
}

    .twoControlsWide natgen-form-field {
        width: 50%;
        float: left;
        padding: 0px 5px;
        margin: auto;
    }

.rvQuote .twoControls {
    grid-column: span 6;
}


@media only screen and (max-width: 500px) {
    .twoControlsWide natgen-form-field,
    .twoControlsWide,
    #NumAccidents {
        width: 100% !important;
    }

        .twoControlsWide natgen-form-field {
            display: block;
            padding: 0;
        }

    .rvQuote .twoControls {
        grid-column: span 12;
    }
}

.autoQuote .dateControls {
    margin-top: 0;
    justify-content: start;
    width: calc(var(--space-design-unit) * var(--space-form-width-units) * 1px);
}

@media (max-width: 479px) {
    .autoQuote .dateControls {
        width: 100%;
    }
}

.autoQuote .dateControl {
    width: calc(var(--space-design-unit) * 24px);
}

    .autoQuote .dateControl label {
        font-size: 16px;
    }

.autoQuote .dobTitle {
    text-align: left;
    margin-top: 0;
}

.autoQuote .autoFullWidth {
    grid-column: span 12;
}

.autoQuote .autoHalfWidth {
    grid-column: span 6;
}

.autoQuote .autoQuarterWidth {
    grid-column: span 3;
}

.autoQuote .autoOneThirdWidth {
    grid-column: span 4;
}

@media (max-width: 639px) {
    .autoQuote .autoHalfWidth {
        grid-column: span 12;
    }

    .autoQuote .autoQuarterWidth {
        grid-column: span 12;
    }

    .autoQuote .autoOneThirdWidth {
        grid-column: span 12;
    }
}

@media (min-width: 640px) {
    .autoQuote .autoDisplayOnlyInMobile {
        display: none !important;
    }

    .autoQuote .autoDisplayOnlyInDesktop {
        display: block;
    }
}

@media (max-width: 639px) {
    .autoQuote .autoDisplayOnlyInMobile {
        display: block;
    }

    .autoQuote .autoDisplayOnlyInDesktop {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .lien-container {
        grid-template-columns: repeat(12, 1fr);
        column-gap: 5px;
    }
}
/* End adjacent controls*/
/* Auto */

.autoQuote .validation-message {
    font-size: 16px;
}

.autoQuote a,
.autoQuote natgen-anchor,
.autoQuote natgen-button[variant='link'] {
    color: #086fc9;
}

.autoQuote #submit:not(.purchaseButton), .autoQuote .submit {
    padding: 30px;
    font-size: 20px;
    min-width: 230px;
}

    .autoQuote #submit::part(control), .autoQuote .submit::part(control), .autoQuote .font-bold ::part(control) {
        font-weight: bold !important;
    }

    .autoQuote #submit:not(.minimalButton) span, .autoQuote .submit span {
        display: inline-block;
        background: url('images/icon-button-arrow.png') no-repeat center center;
        width: 32px;
        height: 25px;
        position: relative;
        top: 7px;
    }

.autoQuote natgen-card.autoBrandedCard {
    border: 2px solid #d3d3d3;
    min-width: 300px;
}

    .autoQuote natgen-card.autoBrandedCard .brandedControls ::part(control) {
        color: var(--color-primary-fill) !important;
        padding: 0;
    }

    .autoQuote natgen-card.autoBrandedCard .brandedControls natgen-anchor {
        width: fit-content;
        height: fit-content;
    }

.autoQuote .brandedControls .brandedControlsText {
    position: relative;
    top: -2px;
    font-weight: bold;
}

.autoQuote .hrFadedLine {
    margin-top: calc(var(--space-design-unit) * 8px);
    border: 0;
    height: 3px;
    width: 100%;
    max-width: 700px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.autoQuote .driverLicenseBannerIcon {
    background: #fff url('images/icon-driver-license.png') no-repeat center center;
    position: relative;
    top: 30px;
    width: 109px;
    height: 51px;
    padding: 0 20px;
    margin: 0 auto;
}
.autoQuote .driverMilitaryBannerIcon {
    background: #fff url('images/icon-military.png') no-repeat center center;
    position: relative;
    top: 30px;
    width: 109px;
    height: 60px;
    padding: 0 20px;
    margin: 0 auto;
}

.autoQuote .dlBannerContainer {
    width: 100%;
    max-width: 700px;
}

    .autoQuote .dlBannerContainer .hrFadedLine {
        margin-top: 0;
    }

/* Auto help text */

.autoQuote .helpText {
    font-size: 16px;
}

.autoQuote .tmedLongHelpText p,
.autoQuote .tmedLongHelpText ul {
    margin-bottom: 10px;
}

.autoQuote natgen-tooltip ol,
.autoQuote natgen-tooltip ul,
.autoQuote .helpText ol,
.autoQuote .helpText ul {
    list-style: revert;
    padding: 10px;
}

.autoQuote .helpText:not(.additionalProductHelpText) ol,
.autoQuote .helpText:not(.additionalProductHelpText) ul,
.autoQuote .tmedLongHelpText ul {
    padding: revert;
}

/* End Auto help text */

.autoQuote .vin-error {
    font-size: 20px;
    color: var(--color-error);
}

/* End Auto */

/* Wave Loader */

.transition-loading-indicator::part(control) {
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
}

.transition-loading-indicator::part(actions) {
    display: none;
}

/* Tooltips */

natgen-tooltip::part(control) {
    background: #808080;
    --fill-color: #808080;
    color: white;
    font-size: var(--typography-body-small-font-size);
    line-height: var(--typography-body-small-line-height);
}

natgen-form-field::part(tooltip-control) {
    background: #808080;
    --fill-color: #808080;
    color: white;
    font-size: var(--typography-body-small-font-size);
    line-height: var(--typography-body-small-line-height);
}

#IsCurrentlyInsured::part(tooltip-control) {
    display: block !important;
    max-width: 300px !important;
}

/* Branding Overrides */
natgen-design-system-provider[brand=ngic] #click-to-chat {
    background-color: black;
}

natgen-design-system-provider[brand=ngic] natgen-radio::part(control),
natgen-design-system-provider[brand=ngic] natgen-radio-card::part(control),
natgen-design-system-provider[brand=ngic] natgen-responsive-radio::part(control),
natgen-design-system-provider[brand=ngic] natgen-checkbox::part(control),
natgen-design-system-provider[brand=ngic] natgen-checkbox-card::part(control),
natgen-design-system-provider[brand=ngic] natgen-responsive-checkbox::part(control) {
    --color-primary-base: var(--neutral-foreground-rest);
    --color-primary-hover: var(--neutral-foreground-rest);
    --foreground-on-primary-rest: white;
}


/* Center text in text field input */
.input-center::part(control) {
    text-align: center;
}

/*#region .errorBox Styles */
.errorBox {
    border: 4px solid #ff1146;
    background-color: #fddfdf;
    padding: 15px;
    color: #da0837;
    font-size: 16px;
}

    .errorBox .content {
        width: 100%;
        background: url('images/icon-error.png') no-repeat top 0px left 0px;
        background-size: 30px;
        margin: 0 auto;
    }

        .errorBox .content p {
            margin: 0;
            padding: 3px 0 5px 40px;
            text-align: left;
            font-weight: bold;
        }

        .errorBox .content ul {
            margin: 0;
            padding: 0;
            text-align: left;
        }

            .errorBox .content ul li {
                margin-left: 30px;
                padding-left: 10px;
                text-align: left;
            }
/*#endregion*/

/* Blazor Styles */
#blazor-error-ui {
    background: var(--color-secondary-fill);
    color: var(--foreground-on-secondary-rest);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4y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zg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*QuoteRate CSS*/
.welcomeBox {
    border: 4px solid #96b9e3;
    background-color: #d3e2f7;
    padding: 15px;
    color: #306ab1;
    font-size: 16px;
}

    .welcomeBox .content {
        width: 100%;
        background-size: 30px;
        margin: 0 auto;
    }

        .welcomeBox .content p {
            margin: 0;
            padding: 10px 40px 10px 40px;
            text-align: center;
            font-weight: bold;
        }

        .welcomeBox .content ul {
            margin: 0;
            padding: 0;
            text-align: left;
        }

            .welcomeBox .content ul li {
                margin-left: 30px;
                padding-left: 10px;
                text-align: left;
            }

/*Allstate whitelabel Footer*/
.handsinacircle-logo-left {
    background: url(https://customeronline.allstate.com/AutoInsurance/images/allstate/HandsinaCircle.svg) no-repeat;
    height: 80px;
    width: 80px;
    background-size: contain;
}

.goodhands-logo-right {
    background: url(https://customeronline.allstate.com/AutoInsurance/images/allstate/Goodhands.png) no-repeat;
    height: 80px;
    width: 140px;
    background-size: contain;
    margin-left: auto;
}

/*eSign Spinner*/
.esignSpinner {
    color: #c9c9c9;
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}

    .esignSpinner div {
        transform-origin: 25px 25px;
        animation: esignSpinner 1.2s linear infinite;
    }

        .esignSpinner div:after {
            content: " ";
            display: block;
            position: absolute;
            top: 5px;
            left: 23px;
            width: 4px;
            height: 8px;
            border-radius: 30%;
            background: #a9a9a9;
        }

        .esignSpinner div:nth-child(1) {
            transform: rotate(0deg);
            animation-delay: -1.1s;
        }

        .esignSpinner div:nth-child(2) {
            transform: rotate(30deg);
            animation-delay: -1s;
        }

        .esignSpinner div:nth-child(3) {
            transform: rotate(60deg);
            animation-delay: -0.9s;
        }

        .esignSpinner div:nth-child(4) {
            transform: rotate(90deg);
            animation-delay: -0.8s;
        }

        .esignSpinner div:nth-child(5) {
            transform: rotate(120deg);
            animation-delay: -0.7s;
        }

        .esignSpinner div:nth-child(6) {
            transform: rotate(150deg);
            animation-delay: -0.6s;
        }

        .esignSpinner div:nth-child(7) {
            transform: rotate(180deg);
            animation-delay: -0.5s;
        }

        .esignSpinner div:nth-child(8) {
            transform: rotate(210deg);
            animation-delay: -0.4s;
        }

        .esignSpinner div:nth-child(9) {
            transform: rotate(240deg);
            animation-delay: -0.3s;
        }

        .esignSpinner div:nth-child(10) {
            transform: rotate(270deg);
            animation-delay: -0.2s;
        }

        .esignSpinner div:nth-child(11) {
            transform: rotate(300deg);
            animation-delay: -0.1s;
        }

        .esignSpinner div:nth-child(12) {
            transform: rotate(330deg);
            animation-delay: 0s;
        }

@keyframes esignSpinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/*DynamicDrive*/
@media (min-width: 1296px) {
    .dynamicDrive-card {
        margin-left: 18%;
        width: 65%;
    }

    .dynamicDrive-p-w {
        width: 80% !important;
    }

    .dynamicDrive-consent-p-w {
        width: 55% !important;
        text-align: justify;
    }
}

.dynamicDrive-title {
    --typography-heading-small-font-size: 20px;
}

.dynamicDrive-icon {
    margin-top: -40px;
    margin-bottom: -85px;
}

/*Quote Summary*/
@media (max-width: 400px) {
    .center-table {
        margin-left: 0px;
        margin-right: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }
}