.kajahdus-kortit-wrapper,
.kajahdus-kortit-wrapper * {
    box-sizing: border-box;
}

.kajahdus-kortit-wrapper {
    width: 100%;
    background: transparent !important;
    padding-top: var(--kk-section-padding-y, 80px);
    padding-bottom: var(--kk-section-padding-y, 80px);
}

.kajahdus-kortit-wrapper .kajahdus-kortit-grid {
    display: grid;
    grid-template-columns: repeat(var(--kk-desktop-cols, 2), minmax(0, 1fr));
    gap: var(--kk-gap, 40px);
    align-items: stretch;
    width: 100%;
}

.kajahdus-kortit-wrapper .kajahdus-kortit-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    background: var(--kk-card-bg, #FFFEF8) !important;
    border-radius: var(--kk-card-radius, 20px) !important;
    padding: var(--kk-card-padding, 50px) !important;
    overflow: hidden;
}

.kajahdus-kortit-wrapper .kajahdus-kortit-icon {
    display: block;
    width: var(--kk-icon-size, 48px);
    height: var(--kk-icon-size, 48px);
    flex: 0 0 auto;
    margin: 0 0 var(--kk-icon-title-gap, 20px) 0 !important;
    padding: 0 !important;
    background-color: var(--kk-icon-color, #333333) !important;
    -webkit-mask-image: var(--kk-icon-mask);
    mask-image: var(--kk-icon-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.kajahdus-kortit-wrapper .kajahdus-kortit-title,
body .kajahdus-kortit-wrapper .kajahdus-kortit-title,
html body .container-wrap .kajahdus-kortit-wrapper .kajahdus-kortit-title {
    display: block;
    width: 100%;
    margin: 0 0 var(--kk-title-text-gap, 20px) 0 !important;
    padding: 0 !important;
    color: var(--kk-title-color, #333333) !important;
    font-size: var(--kk-title-font-size, 36px) !important;
    line-height: var(--kk-title-line-height, 1.08) !important;
    letter-spacing: var(--kk-title-letter-spacing, -0.03em) !important;
    font-style: normal;
    text-transform: none;
    word-break: normal;
    overflow-wrap: anywhere;
}

.kajahdus-kortit-wrapper.has-kajahdus-title-font-family .kajahdus-kortit-title,
body .kajahdus-kortit-wrapper.has-kajahdus-title-font-family .kajahdus-kortit-title,
html body .container-wrap .kajahdus-kortit-wrapper.has-kajahdus-title-font-family .kajahdus-kortit-title {
    font-family: var(--kk-title-font-family) !important;
}

.kajahdus-kortit-wrapper.has-kajahdus-title-font-weight .kajahdus-kortit-title,
body .kajahdus-kortit-wrapper.has-kajahdus-title-font-weight .kajahdus-kortit-title,
html body .container-wrap .kajahdus-kortit-wrapper.has-kajahdus-title-font-weight .kajahdus-kortit-title {
    font-weight: var(--kk-title-font-weight) !important;
}

.kajahdus-kortit-wrapper .kajahdus-kortit-title:last-child {
    margin-bottom: 0 !important;
}

.kajahdus-kortit-wrapper .kajahdus-kortit-text,
body .kajahdus-kortit-wrapper .kajahdus-kortit-text,
html body .container-wrap .kajahdus-kortit-wrapper .kajahdus-kortit-text {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--kk-text-color, #333333) !important;
    font-size: var(--kk-text-font-size, 21px) !important;
    line-height: var(--kk-text-line-height, 1.35) !important;
    letter-spacing: var(--kk-text-letter-spacing, 0) !important;
    font-style: normal;
    text-transform: none;
    word-break: normal;
    overflow-wrap: anywhere;
}

.kajahdus-kortit-wrapper.has-kajahdus-text-font-family .kajahdus-kortit-text,
body .kajahdus-kortit-wrapper.has-kajahdus-text-font-family .kajahdus-kortit-text,
html body .container-wrap .kajahdus-kortit-wrapper.has-kajahdus-text-font-family .kajahdus-kortit-text {
    font-family: var(--kk-text-font-family) !important;
}

.kajahdus-kortit-wrapper.has-kajahdus-text-font-weight .kajahdus-kortit-text,
body .kajahdus-kortit-wrapper.has-kajahdus-text-font-weight .kajahdus-kortit-text,
html body .container-wrap .kajahdus-kortit-wrapper.has-kajahdus-text-font-weight .kajahdus-kortit-text {
    font-weight: var(--kk-text-font-weight) !important;
}

.kajahdus-kortit-wrapper .kajahdus-kortit-text p,
.kajahdus-kortit-wrapper .kajahdus-kortit-text h1,
.kajahdus-kortit-wrapper .kajahdus-kortit-text h2,
.kajahdus-kortit-wrapper .kajahdus-kortit-text h3,
.kajahdus-kortit-wrapper .kajahdus-kortit-text h4,
.kajahdus-kortit-wrapper .kajahdus-kortit-text h5,
.kajahdus-kortit-wrapper .kajahdus-kortit-text h6 {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
}

@media (max-width: 1199px) {
    .kajahdus-kortit-wrapper .kajahdus-kortit-grid {
        grid-template-columns: repeat(var(--kk-tablet-cols, 2), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .kajahdus-kortit-wrapper {
        padding-top: var(--kk-section-padding-y-mobile, 50px);
        padding-bottom: var(--kk-section-padding-y-mobile, 50px);
    }

    .kajahdus-kortit-wrapper .kajahdus-kortit-grid {
        grid-template-columns: repeat(var(--kk-mobile-cols, 1), minmax(0, 1fr));
    }

    .kajahdus-kortit-wrapper .kajahdus-kortit-card {
        padding: var(--kk-card-padding-mobile, 20px) !important;
    }

    .kajahdus-kortit-wrapper .kajahdus-kortit-icon {
        width: var(--kk-icon-size-mobile, 40px);
        height: var(--kk-icon-size-mobile, 40px);
        margin-bottom: var(--kk-icon-title-gap-mobile, 20px) !important;
    }

    .kajahdus-kortit-wrapper .kajahdus-kortit-title,
    body .kajahdus-kortit-wrapper .kajahdus-kortit-title,
    html body .container-wrap .kajahdus-kortit-wrapper .kajahdus-kortit-title {
        margin-bottom: var(--kk-title-text-gap-mobile, 20px) !important;
        font-size: var(--kk-title-font-size-mobile, 28px) !important;
        line-height: var(--kk-title-line-height-mobile, 1.1) !important;
        letter-spacing: var(--kk-title-letter-spacing-mobile, -0.02em) !important;
    }

    .kajahdus-kortit-wrapper.has-kajahdus-title-font-weight-mobile .kajahdus-kortit-title,
    body .kajahdus-kortit-wrapper.has-kajahdus-title-font-weight-mobile .kajahdus-kortit-title,
    html body .container-wrap .kajahdus-kortit-wrapper.has-kajahdus-title-font-weight-mobile .kajahdus-kortit-title {
        font-weight: var(--kk-title-font-weight-mobile) !important;
    }

    .kajahdus-kortit-wrapper .kajahdus-kortit-title:last-child {
        margin-bottom: 0 !important;
    }

    .kajahdus-kortit-wrapper .kajahdus-kortit-text,
    body .kajahdus-kortit-wrapper .kajahdus-kortit-text,
    html body .container-wrap .kajahdus-kortit-wrapper .kajahdus-kortit-text {
        font-size: var(--kk-text-font-size-mobile, 18px) !important;
        line-height: var(--kk-text-line-height-mobile, 1.4) !important;
        letter-spacing: var(--kk-text-letter-spacing-mobile, 0) !important;
    }

    .kajahdus-kortit-wrapper.has-kajahdus-text-font-weight-mobile .kajahdus-kortit-text,
    body .kajahdus-kortit-wrapper.has-kajahdus-text-font-weight-mobile .kajahdus-kortit-text,
    html body .container-wrap .kajahdus-kortit-wrapper.has-kajahdus-text-font-weight-mobile .kajahdus-kortit-text {
        font-weight: var(--kk-text-font-weight-mobile) !important;
    }
}
