/* WRITE HERE YOUR CUSTOM CSS IN ORDER TO MAKE ITEM UPDATES EASY */

body {
    font-size: 16px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

header {
    position: sticky;
}

#top_line {
    font-size: 14px;
}

#logo img {
    max-width: 100%;
    height: auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-brand img {
    flex: none;
    width: 120px;
    height: auto;
}

.site-brand-name {
    width: 135px;
    color: #1a66b3;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 991px) {
    #logo .site-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    #logo .site-brand img {
        width: 100px;
    }

    #logo .site-brand-name {
        width: 150px;
        font-size: 11px;
    }
}

#logo_footer {
    background: #fff;
    border-radius: 4px;
    padding: 6px;
    width: 162px;
    height: auto;
}

.main-menu > ul > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 16px;
}

.main-menu ul ul li a,
.main-menu ul li.submenu ul,
.main-menu ul li.submenu ul li {
    font-size: 15px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .site-brand img {
        width: 100px;
    }

    .site-brand-name {
        width: 95px;
        font-size: 11px;
    }

    .main-menu > ul > li > a {
        padding-right: 5px;
        padding-left: 5px;
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .main-menu > ul > li.submenu:nth-last-child(-n + 2) > ul {
        left: auto;
        right: 0;
    }

    .main-menu ul ul ul ul {
        left: auto;
        right: 100%;
    }
}

.rich-content {
    display: flow-root;
    color: #000;
    font-size: 18px;
    line-height: 1.7;
}

.rich-content a {
    color: #0000ff;
}

.rich-content a.legacy-link-dark,
.home-content .layout-image-grid tr:not(:first-child) a,
.rich-content .layout-caption-strip tr:not(:first-child) a {
    color: #000;
}

.rich-content a:not(.quote-cta):hover,
.rich-content a:not(.quote-cta):focus,
.rich-content a:not(.quote-cta):hover *,
.rich-content a:not(.quote-cta):focus * {
    color: #ff0000 !important;
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

.rich-content img.float-start {
    margin: 0 20px 10px 0;
}

.rich-content img.float-end {
    margin: 0 0 10px 20px;
}

.rich-content img.img-frame {
    border: 2px solid #0000ff;
}

.rich-content img.rich-image-enlarged {
    width: min(100%, var(--rich-image-width));
}

.rich-content .layout-image-cell {
    width: calc(var(--rich-image-width) + 24px) !important;
}

.rich-content img.rich-image-wide {
    display: block;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.rich-content .layout-table.layout-image-pair {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: clamp(30px, 5vw, 70px) 0;
}

.rich-content .layout-image-pair td {
    width: 50% !important;
    padding-right: 0;
    padding-left: 0;
}

.rich-content .layout-image-pair a,
.rich-content .layout-image-pair img {
    display: block;
    width: 100%;
}

.rich-content .text-justify {
    text-align: justify;
}

.rich-content a.zoom > img {
    cursor: zoom-in;
}

.rich-content .image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.rich-content .image-gallery img {
    display: block;
}

.rich-content .reference-float-start {
    float: left;
    width: min(300px, 100%);
    margin: 5px;
}

.rich-content .reference-float-end {
    float: right;
    margin: 5px;
}

.rich-content .reference-float-end p {
    margin: 0;
}

.rich-content .reference-float-end img {
    display: block;
    height: 150px;
    width: auto;
    border: 0;
}

.rich-content .reference-clear {
    clear: both;
}

.rich-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.rich-content .layout-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.rich-content .layout-table.layout-caption-strip {
    width: min(100%, calc(var(--caption-strip-width) * 1.2));
    margin-right: auto;
    margin-left: auto;
    table-layout: auto;
}

.rich-content .layout-table.layout-caption-strip td {
    padding: 0 2px;
    text-align: center;
}

.rich-content .layout-table.layout-caption-strip td > p {
    margin: 0;
}

.rich-content .layout-caption-strip tr:first-child img {
    display: block;
    width: 100%;
}

.rich-content .layout-table td {
    vertical-align: top;
    padding: 10px 12px;
}

.rich-content .layout-table td:first-child {
    padding-left: 0;
}

.rich-content .layout-table td:last-child {
    padding-right: 0;
}

.rich-content .layout-table td > p {
    margin-bottom: 16px;
}

.rich-content .layout-table td > :last-child {
    margin-bottom: 0;
}

.rich-content .layout-table td .text-end {
    text-align: left !important;
}

.rich-content .layout-table td > p:has(> img:only-child),
.rich-content .layout-table td > p:has(> a:only-child > img:only-child) {
    text-align: center !important;
}

.subdomain-home-content .layout-table td > p img[width="370"] {
    width: 100%;
}

.subdomain-home-content .layout-table td > p > a:has(img[width="370"]) {
    display: block;
}

.subdomain-home-content .layout-table.layout-tiles td > p > a:first-child:has(img[width="370"]) {
    display: block;
    height: auto;
    margin-bottom: 0;
}

.subdomain-home-content .layout-table.layout-tiles td > p > a:first-child > img[width="370"] {
    display: block;
    width: min(100%, var(--rich-image-width));
    height: auto;
    max-height: none;
    margin: 0 auto 12px;
}

.subdomain-home-content .layout-table:has(img[width="733"]) {
    max-width: 733px;
    margin-right: auto;
    margin-left: auto;
    table-layout: fixed;
}

.subdomain-home-content .layout-table:has(img[width="733"]) tr:not(:first-child) td {
    text-align: center;
}

.product-block .layout-image-grid {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    table-layout: fixed;
}

@media (min-width: 576px) {
    .subdomain-home-content .layout-table td.layout-image-cell:has(img[width="370"]) {
        width: 50% !important;
    }
}

.rich-content .layout-table.layout-tiles td {
    padding: 15px 10px;
    border: 0;
    background: #fff;
}

.rich-content .layout-tiles td > p {
    margin: 0;
}

.rich-content .layout-tiles td > p > a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 12px;
}

.rich-content .layout-tiles td > p > a:first-child > img {
    max-height: 100%;
    width: auto;
}

.rich-content .layout-tiles td > p > img:first-child {
    display: block;
    max-height: 120px;
    width: auto;
    margin: 0 auto 12px;
}

@media (max-width: 575px) {
    .rich-content {
        overflow-x: auto;
    }

    .rich-content .layout-table,
    .rich-content .layout-table tbody,
    .rich-content .layout-table tr,
    .rich-content .layout-table td {
        display: block;
        width: 100%;
    }

    .rich-content .layout-table:not(.layout-caption-strip) td {
        padding: 6px 0;
        width: auto !important;
    }

    .rich-content .layout-table.layout-caption-strip {
        display: table;
        width: calc(var(--caption-strip-width) * 1.2);
    }

    .rich-content .layout-caption-strip tbody {
        display: table-row-group;
    }

    .rich-content .layout-caption-strip tr {
        display: table-row;
    }

    .rich-content .layout-caption-strip td {
        display: table-cell;
    }

    .rich-content .layout-table.layout-tiles td {
        margin-bottom: -1px;
    }

    .rich-content .layout-table.layout-image-pair {
        border-spacing: 0;
    }

    .rich-content .layout-image-pair td {
        margin-bottom: 20px;
    }

    .rich-content img.float-start,
    .rich-content img.float-end {
        float: none !important;
        display: block;
        margin: 0 auto 10px;
    }

    .rich-content .reference-float-start,
    .rich-content .reference-float-end {
        float: none;
        width: auto;
        margin: 5px 0;
    }

    .rich-content .reference-float-end img {
        height: auto;
        max-height: 150px;
    }
}

.quote-section {
    margin-bottom: 30px;
}

.quote-section legend {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 15px;
}

.quote-field-label {
    font-weight: 500;
}

.quote-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quote-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.quote-options:not(.quote-options-image-grid) .quote-option {
    max-width: 260px;
}

.quote-option img {
    max-width: 160px;
    height: auto;
    border: 1px solid #ddd;
}

.quote-options-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 16px;
    background: #edf7fc;
}

.quote-options-image-grid .quote-option-image {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
        "image image"
        "control label";
    align-items: start;
    max-width: none;
    gap: 10px 8px;
}

.quote-options-image-grid .quote-option-image > img {
    grid-area: image;
    width: 100%;
    max-width: none;
    aspect-ratio: 5 / 8;
    object-fit: contain;
    object-position: top;
    background: #fff;
    border: 0;
}

.quote-options-landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-options-landscape .quote-option-image > img {
    aspect-ratio: 5 / 3;
}

.quote-options-image-grid .quote-option-image > input,
.quote-options-image-grid .quote-option-image > .iradio_square-grey {
    grid-area: control;
}

.quote-options-image-grid .quote-option-image > span {
    grid-area: label;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.quote-field-image img {
    max-width: 100%;
    height: auto;
}

.quote-field-note {
    font-style: italic;
}

.quote-table .form-control-sm {
    min-width: 110px;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 30px;
    background: #222;
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-consent p {
    margin: 0;
    flex: 1 1 320px;
}

.cookie-consent a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    padding: 4px 0;
    border-bottom: 1px solid #ededed;
}

.home-content > p > a > img[width="730"] {
    width: min(100%, 876px);
}

.home-content h2 {
    margin-top: 40px;
    color: #0000ff;
}

.home-content .layout-table {
    table-layout: fixed;
    margin-top: 20px;
    margin-bottom: 45px;
}

.home-content .layout-table td {
    text-align: center;
}

.product-block {
    margin-bottom: 35px;
}

.shop-item .inner-box {
    height: calc(100% - 30px);
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ddd;
}

.shop-item .image-box .image {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.shop-item .image-box .image img {
    height: 100%;
    object-fit: cover;
}

.product-block-title {
    font-size: 23px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FF3333;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0 30px;
    margin: 0;
}

.product-spec {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ededed;
}

.product-spec dt {
    font-weight: 500;
}

.product-spec dd {
    margin: 0;
    text-align: right;
    color: #555;
}

.product-quote-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #362f2d;
    border-radius: 5px;
    padding: 25px 30px;
}

.product-quote-cta h3,
.product-quote-cta p {
    color: #fff;
    margin: 0;
}

.product-quote-cta h3 {
    font-size: 21px;
    margin-bottom: 5px;
}


@media (max-width: 991px) {
    .quote-options-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .quote-options-image-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

.rich-content a.quote-cta {
    font-size: 15px;
    padding: 12px 28px;
    margin: 10px 0;
    background: #FF3333;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3);
}

.rich-content a.quote-cta:hover {
    background: #d92020;
    color: #fff;
}

.rich-content a.quote-cta i {
    margin-left: 6px;
}

.quote-option > .icheckbox_square-grey,
.quote-option > .iradio_square-grey {
    flex: none;
}

.home-title {
    color: red;
    margin-bottom: 24px;
}

.page-heading {
    padding-top: 40px;
    text-align: center;
}

.page-heading h1 {
    color: #ff0000;
}

.product-page-heading {
    padding-top: 32px;
}

.product-page-heading h1 {
    margin: 0;
}

.product-page-heading p {
    margin: 12px 0 0;
}

.product-page-heading::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 24px;
    background: #222;
}

.product-page-heading + main > .container {
    padding-top: 24px;
}

.rich-content .layout-image-text > td {
    vertical-align: middle;
}

.rich-content .layout-bookends,
.rich-content .layout-editorial {
    table-layout: fixed;
}

.rich-content .layout-bookends td:first-child,
.rich-content .layout-bookends td:last-child {
    width: 20% !important;
}

.rich-content .layout-bookends td:nth-child(2) {
    width: 60% !important;
}

.rich-content .layout-editorial td {
    width: 50% !important;
}

.rich-content .reference-entry {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin: 24px 0;
}

.rich-content .reference-entry .reference-float-start,
.rich-content .reference-entry .reference-float-end {
    float: none;
    margin: 0;
    width: auto;
}

.rich-content .reference-gallery .reference-float-end {
    flex: 0 0 200px;
}

.rich-content .reference-gallery img {
    width: 200px;
    height: 150px;
    object-fit: contain;
}

.rich-content .reference-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
}

@media (max-width: 767px) {
    .rich-content .reference-entry {
        grid-template-columns: minmax(0, 1fr);
    }

    .rich-content .reference-gallery {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .rich-content .layout-bookends td,
    .rich-content .layout-editorial td {
        width: 100% !important;
    }

    .rich-content .reference-gallery .reference-float-end {
        flex: 0 1 calc(50% - 5px);
    }

    .rich-content .reference-gallery img {
        width: 100%;
        height: auto;
    }
}

.rich-content iframe.contact-map {
    display: block;
    width: min(100%, 740px);
    height: auto;
    aspect-ratio: 740 / 640;
    margin: 24px auto 12px;
    border: 0;
}

.program-page {
    padding-top: 110px;
}

.program-footer {
    background: #bd5437;
    color: #fff;
    padding: 48px 0;
}

.program-footer__link,
.program-footer__link:hover {
    color: #fff;
}

.program-footer__link:hover,
.program-footer__link:focus {
    text-decoration: underline;
}

.program-footer__link h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 8px;
}

.program-footer__link p {
    font-size: 16px;
    margin-bottom: 28px;
}

.program-footer__logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    justify-content: center;
}

.program-footer__logos img {
    height: auto;
    max-width: 100%;
}

.container.margin_60_35:has(.legacy-layout) {
    padding-top: 5px;
}

.rich-content .legacy-layout {
    width: 790px;
    max-width: calc(100% - 4px);
    margin: 0 auto;
    border: 2px solid #80b3d3;
    background-color: #e9f5fc;
    color: #000;
    font: 16px/normal Arial, Helvetica, sans-serif;
    text-align: left;
    overflow-x: auto;
}

.legacy-layout,
.legacy-layout * {
    box-sizing: content-box;
}

.legacy-layout > table {
    margin-right: auto;
    margin-left: auto;
}

.legacy-layout table {
    border-collapse: separate;
    color: #000;
    font: 16px/normal Arial, Helvetica, sans-serif;
}

.legacy-layout p {
    color: #000;
    font: 16px/normal Arial, Helvetica, sans-serif;
    margin: 1em 0;
}

.legacy-layout h1,
.legacy-layout h2 {
    color: #0000ff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: normal;
    margin: 0 0 5px;
}

.legacy-layout h1 {
    font-size: 38px;
}

.legacy-layout h2 {
    font-size: 30px;
}

.legacy-layout img {
    vertical-align: baseline;
}

.legacy-layout strong,
.legacy-layout b {
    font-weight: bold;
}

.legacy-layout .szoveg {
    font-size: 16px;
    color: #000;
}

.legacy-layout .szoveg_kicsi,
.legacy-layout a.legacy-link-dark {
    font-size: 14px;
    color: #000;
}

.legacy-layout .utvonal,
.legacy-layout .bold,
.legacy-layout .szlogen,
.legacy-layout .szlogen_kicsi,
.legacy-layout .kiemelt,
.legacy-layout .style1,
.legacy-layout .keknagy {
    color: blue;
    font-weight: bold;
}

.legacy-layout .utvonal {
    font-size: 10px;
}

.legacy-layout .bold {
    font-size: 12px;
}

.legacy-layout .style1,
.legacy-layout .oh {
    font-size: 15px;
}

.legacy-layout .szlogen {
    font-size: 38px;
}

.legacy-layout .szlogen_kicsi {
    font-size: 22px;
}

.legacy-layout .kiemelt,
.legacy-layout .keknagy {
    font-size: 24px;
}

.legacy-layout .akcio_nagy,
.legacy-layout .style8 {
    font-size: 50px;
}

.legacy-layout .akcio_kicsi,
.legacy-layout .style7 {
    font-size: 30px;
}

.legacy-layout .akcio_nagy,
.legacy-layout .akcio_kicsi,
.legacy-layout .oh {
    color: red;
    font-weight: bold;
}

.legacy-layout .red,
.legacy-layout .piros {
    color: red;
}

.legacy-layout .blue {
    color: blue;
}

@media (max-width: 800px) {
    .legacy-layout table,
    .legacy-layout div {
        max-width: 100%;
    }

    .legacy-layout table {
        width: 100% !important;
        table-layout: fixed;
    }

    .legacy-layout td {
        width: auto !important;
        overflow-wrap: anywhere;
    }

    .legacy-layout table[cellpadding="7"]:has(td[style*="#D5DDD2"]) {
        --card-gap-color: #d5ddd2;
    }

    .legacy-layout table[cellpadding="7"] > tbody {
        display: flex;
        flex-direction: column;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr {
        display: contents;
        --card-row: 0;
        --card-part: 0;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr:nth-child(n+4) {
        --card-row: 6;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr:nth-child(n+7) {
        --card-row: 12;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr:nth-child(3n+2) {
        --card-part: 1;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr > td {
        display: block;
        order: calc(var(--card-row) + var(--card-column, 0) + var(--card-part));
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr > td[colspan] {
        order: 100;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr > td:nth-child(3) {
        --card-column: 2;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr > td:nth-child(5) {
        --card-column: 4;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr:nth-child(3n),
    .legacy-layout table[cellpadding="7"] > tbody > tr > td:nth-child(even) {
        display: none;
    }

    .legacy-layout table[cellpadding="7"] > tbody > tr:nth-child(3n+2) > td {
        border-bottom: 20px solid var(--card-gap-color, #efe6da);
    }
}

@media (min-width: 801px) {
    .rich-content .legacy-layout img.float-start,
    .rich-content .legacy-layout img.float-end {
        margin: 0;
    }

    .rich-content .legacy-layout img {
        max-width: none;
    }
}
