@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..800&display=swap");

/* Pensionskoll white-label theme. */
:root {
    --brand-primary: #e8722a;
    --brand-primary-dark: #1a1a1a;
    --brand-primary-mid: #c95f22;
    --brand-primary-gradient-start: #f08a47;
    --brand-primary-mid-light: #ed9560;
    --brand-primary-muted: #b98464;
    --brand-primary-muted-hover: #975b38;
    --brand-primary-soft: #f7d8c4;
    --brand-primary-tint: #fbe8dc;
    --brand-primary-tint-muted: #f8eee7;
    --brand-primary-tint-soft: #faf3ed;
    --brand-primary-tint-strong: #f3d5c2;
    --brand-primary-tint-section: #f6e4d8;
    --brand-primary-tint-hover: #f9e9df;
    --brand-primary-surface-soft: #fcf7f2;
    --brand-primary-border-soft: #efd8c9;
    --brand-primary-border: #e5c3ad;
    --brand-primary-border-muted: #e5d5ca;
    --brand-primary-border-light: #eee2da;
    --brand-primary-line-soft: #e6d8cf;
    --brand-primary-surface-muted: #eee7e1;
    --brand-primary-deep-alt: #33302e;
    --brand-primary-deep-muted: #3b3734;
    --brand-primary-deep: #282624;
    --brand-primary-ink: #1a1a1a;
    --brand-primary-text-soft: #574b43;
    --brand-primary-action-muted: #c56a34;
    --brand-primary-border-action: #bd6734;
    --brand-primary-accent-muted: #dc9a72;
    --brand-primary-tooltip-text: #faf8f4;
    --brand-primary-border-strong: #d8c2b4;
    --brand-primary-border-panel: #dfcec3;
    --brand-primary-border-subtle: #ded0c7;
    --brand-primary-border-faint: #e9dfd8;
    --brand-primary-tint-pale: #fcf6f1;
    --brand-primary-tint-paler: #f8eee8;
    --brand-primary-tint-featured: #fbf2ec;
    --brand-primary-tint-accent: #f2ddcf;
    --brand-primary-tint-lifted: #fdf9f6;
    --brand-primary-tint-current-start: #fdf8f4;
    --brand-primary-tint-current-end: #f6e8df;
    --brand-primary-tint-modal-hover: #f9ede5;
    --brand-primary-tint-modal-current: #fcf5f0;
    --brand-primary-tint-modal-current-soft: #fefbf9;
    --brand-primary-tint-modal-selected-hover: #f5e5db;
    --brand-primary-surface-wash: #fdf9f6;
    --brand-primary-surface-pale: #fefcf9;
    --brand-primary-surface-table: #fffdfb;
    --brand-primary-surface-lavender: #eee4dd;
    --brand-primary-surface-muted-2: #f1eae5;
    --brand-primary-surface-progress: #faf3ee;
    --brand-primary-rgb: 232, 114, 42;
    --brand-primary-dark-rgb: 26, 26, 26;
    --brand-primary-accent-muted-rgb: 220, 154, 114;
    --brand-pensionskoll-bankid-backdrop: #f2efeb;
    --brand-pensionskoll-header-rgb: 18, 18, 18;
    --brand-pensionskoll-header-alpha: .78;
    --brand-pensionskoll-logo-data: url("/img/pensionskoll-x-kelly.png");
    --brand-pensionskoll-header-logo-data: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='438' height='110' viewBox='0 0 438 110'%3E%3Ctext x='50%25' y='48' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-size='48' font-weight='700'%3E%3Ctspan fill='%23ffffff'%3EPensions%3C/tspan%3E%3Ctspan fill='%23f3702f'%3Ekoll%3C/tspan%3E%3C/text%3E%3Cpath d='M55 68H383' stroke='%23f35b4d' stroke-width='3'/%3E%3Ctext x='50%25' y='92' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-size='16' font-style='italic' fill='%23c8cdd2'%3ETrygghet idag - Frihet imorgon.%3C/text%3E%3C/svg%3E");
    --brand-pensionskoll-footer-image: url("/img/pensionskollFooter.jpeg");

    --color-page-bg: #faf8f4;
    --color-surface: #fffdf9;
    --color-text: #1a1a1a;
    --color-text-muted: rgba(26, 26, 26, .68);
    --color-border: #ded6cf;

    --font-family-base: "DM Sans", sans-serif;
    --font-family: var(--font-family-base);
    --primary-foreground: #ffffff;
}

body,
body * {
    font-family: "DM Sans", sans-serif !important;
}

.no-quote-providers__image {
    filter: sepia(.32) saturate(1.3) hue-rotate(342deg);
}

#main-header,
#main-header.main-header--mobile-open,
.link-logo-surface {
    background-color: rgba(var(--brand-pensionskoll-header-rgb), var(--brand-pensionskoll-header-alpha));
}

#main-header .main-menu .site-logo {
    width: 196px;
    min-width: 196px;
    justify-content: flex-start;
    padding-inline: 10px 14px;
}

#main-header .main-menu .site-logo .logo {
    content: var(--brand-pensionskoll-header-logo-data);
    width: 178px;
    max-width: 178px;
    max-height: 46px;
}

#main-header .module-menu {
    display: flex;
    align-items: center;
    align-self: stretch;
}

#main-header .module-menu .menu {
    align-items: center;
    height: 100%;
}

#main-header .module-menu .menu-item {
    height: auto;
    min-width: max-content;
    display: flex;
    align-items: center;
    border-color: transparent;
    background: transparent;
    opacity: .92;
}

#main-header .module-menu .menu-item > a {
    min-height: 34px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

#main-header .module-menu .menu-item:hover,
#main-header .module-menu .menu-item.open,
#main-header .module-menu .menu-item.current-menu-ancestor {
    background: transparent;
    border-color: transparent;
    opacity: 1;
}

#main-header .module-menu .menu-item > a:hover,
#main-header .module-menu .menu-item > a:focus-visible,
#main-header .module-menu .menu-item.open > a,
#main-header .module-menu .menu-item.current-menu-ancestor > a {
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

@media(max-width: 1080px) {
    #main-header .module-menu {
        display: none;
    }

    #main-header .mobile-toggle:is(a, button) {
        display: inline-flex;
    }
}

#main-header .module-menu .menu-item > a,
#main-header .module-menu .menu-item.open > a,
#main-header .module-menu .menu-item.current-menu-ancestor > a {
    color: #ffffff;
}

#main-header .module-menu > .menu > .menu-item > a svg path {
    fill: currentColor;
    stroke: currentColor;
}

#main-header .menu-right :is(#profile-button, #cart-button, #cart-button_djstopclick) svg path {
    stroke: #ffffff;
}

#main-header .menu-right #cart-button .cart-button__badge,
#main-header .menu-right #cart-button_djstopclick .cart-button__badge,
#main-header .menu-right #cart-button:hover .cart-button__badge,
#main-header .menu-right #cart-button:focus-visible .cart-button__badge,
#main-header .menu-right #cart-button_djstopclick:hover .cart-button__badge,
#main-header .menu-right #cart-button_djstopclick:focus-visible .cart-button__badge {
    display: inline-flex;
    background: #ffffff !important;
    color: var(--brand-primary-dark) !important;
}

#main-header .menu-right #cart-button .cart-button__badge[hidden],
#main-header .menu-right #cart-button_djstopclick .cart-button__badge[hidden] {
    display: none;
}

.button--hover,
.button--hover:hover,
.button--hover:focus,
.button--hover:focus-visible,
.button--hover:visited {
    color: #ffffff;
}

.button--hover svg path {
    stroke: currentColor;
}

body.is-logged-out,
body.is-logged-out .page-content,
body.is-logged-out .footer.bg-light,
body.logged-out-bankid-page,
body.logged-out-bankid-page .page-content,
body.logged-out-bankid-page .bank-id-modal,
body.is-logged-out .bank-id-modal {
    background: var(--brand-pensionskoll-bankid-backdrop) !important;
}

body .button:hover,
body .button:focus-visible,
body .button:active,
body .button:hover span,
body .button:focus-visible span,
body .button:active span {
    color: #ffffff !important;
}

body .button:hover svg path,
body .button:focus-visible svg path,
body .button:active svg path {
    stroke: currentColor;
}

/* Match the BankID actions to the orange header logout action. */
body.is-logged-out .bank-id-modal .header-login-container .button--hover {
    border-color: var(--brand-primary-mid);
    background-color: var(--brand-primary-mid);
    color: #ffffff;
}

body.is-logged-out .bank-id-modal .header-login-container .button--hover:hover,
body.is-logged-out .bank-id-modal .header-login-container .button--hover:focus,
body.is-logged-out .bank-id-modal .header-login-container .button--hover:focus-visible {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: #ffffff;
}

body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device {
    border-color: var(--brand-primary);
    background-color: #ffffff;
    color: var(--brand-primary) !important;
    box-shadow: none;
}

body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device span {
    color: var(--brand-primary) !important;
}

body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device:hover,
body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device:focus,
body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device:focus-visible {
    border-color: var(--brand-primary);
    background-color: #ffffff;
    color: var(--brand-primary) !important;
    box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), .18);
}

body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device:hover span,
body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device:focus span,
body.is-logged-out .bank-id-modal .header-login-container .bankid-login-action--other-device:focus-visible span {
    color: var(--brand-primary) !important;
}

.bank-id-modal .header-login-container .bankid-fetch-action--other-device {
    border-color: var(--brand-primary-dark);
    background-color: #ffffff;
    color: var(--brand-primary-dark) !important;
    box-shadow: none;
}

.bank-id-modal .header-login-container .bankid-fetch-action--other-device:is(:hover, :focus, :focus-visible) {
    border-color: var(--brand-primary-dark);
    background-color: #ffffff;
    color: var(--brand-primary-dark) !important;
    box-shadow: 0 8px 20px rgba(var(--brand-primary-dark-rgb), .12);
}

.bank-id-modal .header-login-container .bankid-fetch-action--other-device span,
.bank-id-modal .header-login-container .bankid-fetch-action--other-device:is(:hover, :focus, :focus-visible) span {
    color: var(--brand-primary-dark) !important;
}

body.is-logged-out .bank-id-modal #bankid-logo {
    inset: 0 0 84px;
    justify-content: center;
}

body.is-logged-out .bank-id-modal #bankid-logo img {
    content: var(--brand-pensionskoll-logo-data);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    max-width: 86%;
}

body.is-logged-out .bank-id-modal #bankid-logo[style*="display: none"] {
    display: none !important;
}

body.is-logged-out .bank-id-modal #qrScreen[style*="display: flex"] {
    display: flex !important;
    inset: 0;
    z-index: 2;
}

.signup-flow-modal__create.is-active {
    background: var(--brand-primary);
}

.signup-flow-modal__create:disabled {
    background: var(--brand-primary-soft);
}

body.is-logged-out .bank-id-modal #qrcode,
body.is-logged-out .bank-id-modal #qrcode *,
body.is-logged-out .bank-id-modal #qrcode img,
body.is-logged-out .bank-id-modal #qrcode canvas {
    width: 224px !important;
    height: 224px !important;
    max-width: min(224px, 72vw);
    max-height: min(224px, 45vh);
}

body.is-logged-out .bank-id-modal .header-login-container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: min(100%, 680px);
    margin-inline: auto;
    position: relative;
    z-index: 3;
    transform: translateY(-10px);
}

body.is-logged-out .bank-id-modal .header-login-container .button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
}

body.my-insurances-page .insurance-cards.my-page-insurance .insurance-card__item::after {
    background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0) 15%, rgba(var(--brand-primary-rgb), .38) 100%);
}

body.my-insurances-page .insurance-cards.my-page-insurance .insurance-card__item-content-info-button .button,
body.my-insurances-page .insurance-cards.my-page-insurance .insurance-card__item-content-info-button .button span {
    color: #ffffff !important;
}

body.my-insurances-page .insurance-cards.my-page-insurance .insurance-card__item-content-info-button .button svg path {
    stroke: currentColor;
}

.insurance-popup__secondary-button--primary-action {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(var(--brand-primary-rgb), .22);
}

.insurance-popup__secondary-button--primary-action:hover,
.insurance-popup__secondary-button--primary-action:focus-visible {
    border-color: var(--brand-primary);
    background: #ffffff;
    color: var(--brand-primary);
    box-shadow: none;
    transform: none;
}

.checkout .checkout__sticky-summary-row dt,
.checkout .checkout__masked-toggle,
.checkout .checkout__home-summary-label,
.checkout .checkout__sticky-summary-benefit-icon {
    color: var(--color-text);
}

.checkout .checkout__sticky-summary-benefits li {
    color: rgba(26, 26, 26, .72);
}

.checkout__summary-fetch-date.button {
    border-color: var(--brand-primary);
    background: #ffffff;
    color: var(--brand-primary);
}

.checkout__summary-fetch-date.button:hover,
.checkout__summary-fetch-date.button:focus-visible {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #ffffff;
}

.checkout__summary-fetch-date.button:hover span,
.checkout__summary-fetch-date.button:focus-visible span {
    color: #ffffff !important;
}

.shopping-cart-page .thank-you__receipt::before {
    background: var(--brand-primary);
    box-shadow: 0 10px 18px rgba(var(--brand-primary-rgb), .16);
}

.shopping-cart-page .thank-you__receipt::after {
    border: 1px solid rgba(var(--brand-primary-rgb), .58);
    background: #ffffff;
}

.compare-page__active-insurances .insurance-details-card__content-active-insurance-buttons .button {
    border: 1px solid var(--brand-primary);
    background: var(--brand-primary);
    color: #ffffff !important;
    transform: none !important;
}

.compare-page__active-insurances .insurance-details-card__content-active-insurance-buttons .button span {
    color: #ffffff !important;
}

.compare-page__active-insurances .insurance-details-card__content-active-insurance-buttons .button:hover,
.compare-page__active-insurances .insurance-details-card__content-active-insurance-buttons .button:focus-visible {
    border-color: var(--brand-primary);
    background: #ffffff;
    color: var(--brand-primary) !important;
    box-shadow: none;
    transform: none !important;
    text-decoration: none;
}

.compare-page__active-insurances .insurance-details-card__content-active-insurance-buttons .button:hover span,
.compare-page__active-insurances .insurance-details-card__content-active-insurance-buttons .button:focus-visible span {
    color: var(--brand-primary) !important;
}

body.my-insurances-page .my-insurance-costs-stats__content-container__info-toggle-togglebar-button.active {
    background: rgba(var(--brand-pensionskoll-header-rgb), var(--brand-pensionskoll-header-alpha));
    color: #ffffff;
}

.footer__container {
    background: linear-gradient(0deg, rgba(var(--brand-primary-dark-rgb), .58) 0%, rgba(var(--brand-primary-dark-rgb), .58) 100%), var(--brand-pensionskoll-footer-image) center 28% / cover no-repeat;
}

.footer__container--pensionskoll {
    min-height: 260px;
    flex-direction: row;
    align-items: center;
    gap: 56px;
    justify-content: center;
}

.footer__pensionskoll-content {
    width: min(100%, 720px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__pensionskoll-logo {
    width: min(100%, 420px);
    height: auto;
}

.footer__pensionskoll-text {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    line-height: 1.6;
}

.footer__pensionskoll-legal {
    min-width: 220px;
    color: #ffffff;
}

.footer__pensionskoll-legal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    line-height: 1.4;
}

.footer__pensionskoll-legal-list a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.footer__pensionskoll-legal-list a:hover,
.footer__pensionskoll-legal-list a:focus-visible {
    text-decoration: underline;
}

.footer__support-item > span {
    font-weight: 600;
}

.footer__support-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 0;
    padding-left: 18px;
    color: inherit;
    font-size: .92em;
    font-weight: 400;
}

.footer__support-list li::marker {
    color: rgba(255, 255, 255, .58);
}

@media(max-width: 680px) {
    body.is-logged-out .bank-id-modal .header-login-container {
        width: min(100%, 340px);
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    body.is-logged-out .bank-id-modal .header-login-container .button {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media(max-width: 768px) {
    .footer__container--pensionskoll {
        min-height: 300px;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 48px 28px;
    }

    .footer__pensionskoll-logo {
        width: min(100%, 320px);
    }

    .footer__pensionskoll-text {
        font-size: 14px;
    }

    .footer__pensionskoll-legal-list {
        font-size: 14px;
    }
}
