@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --bg-top: #f8fbff;
    --bg-bottom: #e8f0f8;
    --surface: #ffffff;
    --surface-soft: #f2f7fc;
    --text: #14283d;
    --muted: #4e6480;
    --primary: #194371;
    --primary-strong: #0f2d4e;
    --accent: #e92990;
    --ok: #2f9b63;
    --shadow: 0 14px 36px rgba(20, 51, 84, 0.16);
    --radius: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html:not(:has(#ft-arkalkulator.ft-arkalkulator-embed)) {
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
}

body:not(:has(#ft-arkalkulator.ft-arkalkulator-embed)) {
    color: var(--text);
    font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    line-height: 1.45;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 44px;
}

h1 {
    position: relative;
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--primary-strong) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: var(--shadow);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    min-height: 52px;
}

.h1-logo {
    flex-shrink: 0;
    line-height: 0;
    z-index: 1;
}

.h1-logo img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    display: block;
}

.h1-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: auto;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease;
}

.h1-title:hover {
    opacity: 0.85;
}

@media (max-width: 480px) {
    .h1-title {
        position: absolute;
        left: 0;
        right: 0;
        padding-left: 72px;
        padding-right: 72px;
        box-sizing: border-box;
        text-align: center;
        font-size: 0.85em;
        pointer-events: auto;
    }
}

b {
    color: var(--primary);
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--accent);
}

select,
input[type=text],
input[type=email],
input[type=tel] {
    border: 1px solid #bfd6ea;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

select:focus,
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus {
    outline: none;
    border-color: #80b5df;
    box-shadow: 0 0 0 4px rgba(16, 98, 170, 0.15);
}

input[type=button],
input[type=submit],
button {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .14s ease, filter .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(25, 67, 113, 0.18);
}

input[type=button]:hover,
input[type=submit]:hover,
button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 8px 20px rgba(15, 64, 105, 0.15);
}

input[type=button]:active,
input[type=submit]:active,
button:active {
    transform: translateY(0);
}

table#gombsor {
    width: min(1180px, calc(100% - 16px));
    background: var(--surface);
    border-radius: 0;
    box-shadow: var(--shadow);
    border: 1px solid #d8e5f2;
    border-collapse: separate;
    border-spacing: 0;
    padding: 14px;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1000;
    margin: 0;
    box-sizing: border-box;
}

#gombsor button:disabled,
#gombsor input[type=submit]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.3);
    transform: none !important;
    box-shadow: none;
}

#gombsor font[size="2"] {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#gombsor td {
    padding: 8px;
    border: none;
}

#gombsor button,
#gombsor input[type=submit] {
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

.gombsor-tajekoztato-cell {
    padding: 4px 8px 2px !important;
    text-align: center;
}

.gombsor-tajekoztato-szoveg {
    display: inline-block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.gepcsoport-db-szoveg {
    display: none;
    margin-top: 2px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
}

input[type=checkbox] {
    transform: scale(1.45);
}

#oldaltetejeregomb {
    display: none;
    position: fixed;
    bottom: 14px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background: linear-gradient(120deg, var(--primary), #22578f);
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(19, 68, 111, 0.26);
}

#oldaltetejeregomb:hover {
    filter: brightness(1.06);
}

.vegar,
.vegar1,
.vegar2,
.vegar3 {
    border: 1px solid #d2dfee;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f3f8fe);
    color: var(--primary-strong);
    font-size: 20px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#eredmeny1,
#eredmeny2,
#eredmeny3 {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent);
}

.ar-cim-sor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ar-info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ar-info-trigger {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid #97afca;
    background: #f4f8fd;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    cursor: help;
    user-select: none;
}

.ar-info-trigger:focus {
    outline: 2px solid rgba(25, 67, 113, 0.35);
    outline-offset: 1px;
}

.ar-info-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: min(360px, calc(100vw - 24px));
    background: #fff;
    color: var(--text);
    border: 1px solid #b8cce1;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(20, 51, 84, 0.2);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1200;
}

.ar-info-wrap.is-open .ar-info-tooltip {
    visibility: visible;
    opacity: 1;
}

.bizonyitvany-tooltip-cim {
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--primary-strong);
}

.bizonyitvany-tooltip-lista {
    margin: 6px 0 0;
    padding-left: 18px;
}

.bizonyitvany-tooltip-lista li {
    margin: 2px 0;
}

.ar-info-mobile-popover {
    display: none;
}

@media (min-width: 901px) {
    table#gombsor {
        padding: 8px 14px;
        table-layout: fixed;
    }

    #gombsor td {
        padding: 4px 6px;
        width: 33.333%;
        min-width: 0;
        vertical-align: top;
    }

    #gombsor font[size="2"] {
        font-size: clamp(11px, 0.95vw, 14px);
        margin-right: 0;
        line-height: 1.08;
        white-space: normal;
    }

    #gombsor font[size="2"] br {
        display: block;
    }

    .vegar,
    .vegar1,
    .vegar2,
    .vegar3 {
        min-height: 48px;
        font-size: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px 8px;
        white-space: normal;
        overflow: visible;
    }

    #eredmeny1,
    #eredmeny2,
    #eredmeny3 {
        font-size: clamp(28px, 2.2vw, 34px);
        line-height: 1;
    }

    .ar-cim-sor {
        justify-content: center;
    }

    .gepcsoport-db-szoveg {
        flex: 0 0 100%;
        text-align: center;
        margin-top: 0;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #gombsor button,
    #gombsor input[type=submit] {
        height: 2.6em !important;
        padding: 6px 10px;
        font-size: 15px;
    }

    #akcio-uzenet-sor td {
        padding: 2px 6px 0 !important;
    }

    #akcio-uzenet {
        min-height: 1.2em;
        margin: 2px 0 0;
    }

    .akcio-uzenet {
        padding: 4px 10px;
        font-size: 13px;
    }

    .gombsor-tajekoztato-szoveg {
        font-size: 13px;
    }
}

.ar-masolas-zold {
    color: #27ae60 !important;
}

#gepcsoport_lista {
    margin-top: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
    padding: 16px;
    min-height: 60px;
}

#gepcsoport_lista:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 10px;
}

#gepcsoport_lista > .ft-arkalkulator-geplista-intro,
#gepcsoport_lista > .ft-arkalkulator-geplista-grid,
#gepcsoport_lista > br,
#gepcsoport_lista > font,
#gepcsoport_lista > div:not([name="kereseshez"]) {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
}

.ft-arkalkulator-geplista-intro {
    margin: 0 0 4px;
}

.ft-arkalkulator-geplista-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 10px;
}

.checkout-panel {
    margin-top: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid #d8e5f2;
    box-shadow: var(--shadow);
    padding: 18px;
}

.checkout-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.back-edit-button {
    min-height: 48px;
    min-width: 220px;
    background-color: #d4eda3;
    color: #1f4a1a;
}

.back-home-button {
    min-height: 48px;
    min-width: 180px;
    background-color: var(--accent);
    color: #fff;
}

.checkout-warning-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-strong);
    margin-bottom: 8px;
}

.checkout-warning-text {
    color: var(--text);
    background: #f8fbff;
    border: 1px solid #d7e4f2;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.selected-machines {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.selected-machine-table {
    width: auto;
    max-width: 320px;
    min-width: 240px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d2dfee;
    border-radius: 10px;
    background: #f7fbff;
}

.selected-machine-table td {
    border: none;
}

.selected-machine-image-cell,
.selected-machine-name-cell {
    padding: 8px;
}

.selected-machine-image-cell {
    width: 58px;
    text-align: center;
}

.selected-machine-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.selected-machine-name-cell {
    font-weight: 600;
    color: var(--primary-strong);
}

.checkout-total-wrapper {
    margin: 8px 0 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid #d8e5f2;
    box-shadow: 0 4px 12px rgba(20, 51, 84, 0.08);
    padding: 16px;
    margin-bottom: 12px;
}

.checkout-fee-card {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-total-card {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-total {
    width: 100%;
    white-space: normal;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-strong);
    text-align: center;
}

.checkout-total-eyebrow {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.checkout-total-price {
    font-size: 34px;
    line-height: 1.1;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.checkout-total-cta {
    font-size: 14px;
    color: #1f5e34;
    font-weight: 600;
}

.checkout-total-note {
    font-size: 14px;
    font-style: italic;
    color: var(--muted);
    font-weight: normal;
}

#akcio-uzenet {
    text-align: center;
    min-height: 1.6em;
    margin: 6px 0 0;
}

.akcio-uzenet {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.akcio-uzenet--folyamatban {
    background: #fff3cd;
    color: #7a5800;
    border: 1px solid #f0c040;
}

.akcio-uzenet--elert {
    background: #d4f0dc;
    color: #1a6634;
    border: 1px solid #6dbb8a;
}

.checkout-fee-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.checkout-fee-checkbox input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--accent);
}

.checkout-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.checkout-discount-notice {
    width: 100%;
    text-align: center;
}

.checkout-summary .checkout-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 8px 0;
    margin-bottom: 0;
}

.contact-form,
.ft-arkalkulator-contact-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ft-arkalkulator-contact-form .checkout-summary {
    width: 100%;
}

.contact-table {
    width: 100%;
    max-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d3e1ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.contact-table td {
    border-bottom: 1px solid #e6eef7;
    padding: 10px;
}

.contact-table tr:last-child td {
    border-bottom: none;
}

.contact-label-cell {
    width: 130px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.contact-table input[type=text] {
    width: 100%;
    box-sizing: border-box;
}

.contact-submit-cell {
    text-align: center;
}

.contact-note {
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--primary-strong);
}

.contact-adatvedelem-checkbox {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 12px;
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    cursor: pointer;
    max-width: 640px;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-adatvedelem-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    flex: 0 0 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.contact-adatvedelem-checkbox a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.contact-adatvedelem-hiba {
    display: block;
    text-align: center;
    margin: -4px auto 10px;
    max-width: 640px;
}

.contact-submit-button {
    height: 3.5em;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    background-color: #d4eda3;
    color: #1f4a1a;
    border-radius: 12px;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 20px rgba(180, 220, 100, 0.35);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.contact-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(150, 200, 80, 0.45);
    filter: brightness(1.06);
}

.contact-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(150, 200, 80, 0.3);
}

.contact-submit-button:disabled {
    background-color: #d4eda3;
    color: #1f4a1a;
    box-shadow: 0 6px 20px rgba(180, 220, 100, 0.35);
    cursor: not-allowed;
    filter: none;
    transform: none;
    opacity: 1;
}

.elkuldom-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

#elkuldom-fedolap {
    position: absolute;
    inset: 0;
    cursor: not-allowed;
}

.mezo-hiba {
    display: block;
    color: #c0392b;
    font-size: 13px;
    margin-top: 3px;
}

.mezo-hibas {
    background-color: #fdd !important;
}

.koszonjuk-panel {
    text-align: center;
    padding: 32px 24px;
}

.koszonjuk-ikon {
    font-size: 52px;
    color: #27ae60;
    line-height: 1;
    margin-bottom: 12px;
}

.koszonjuk-cim {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary, #27ae60);
    margin-bottom: 16px;
}

.koszonjuk-szoveg {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text, #333);
    max-width: 520px;
    margin: 0 auto 24px;
}

.koszonjuk-vissza {
    margin-top: 8px;
}

.checkout-help-note {
    margin: 14px 0 0;
    color: var(--muted);
}

#gepcsoport_lista div[name="kereseshez"] {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    margin: 0;
    padding: 0;
    border-radius: 14px;
    box-sizing: border-box;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

#gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt {
    background-color: transparent;
    box-shadow: 0 0 0 3px #e92990;
}

#gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt .gepkartya-fejlec,
#gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt .gepkartya-fejlec b,
#gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt .gepkartya-fejlec span,
#gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt .gepkartya-fejlec i {
    background-color: #e92990 !important;
    color: #ffffff !important;
}

#gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt .gepcsoport-csoport {
    color: #ffffff !important;
}

#gepcsoport_lista div[name="kereseshez"] label {
    display: block;
    cursor: pointer;
    line-height: 0;
    font-size: 16px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

#gepcsoport_lista div[name="kereseshez"] label .gepkartya-fejlec {
    line-height: 1.25;
}

#gepcsoport_lista table.ft-gepkartya-table td,
#gepcsoport_lista div[name="kereseshez"] table td {
    border: none !important;
}

#gepcsoport_lista table.ft-gepkartya-table,
#gepcsoport_lista div[name="kereseshez"] table {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5dc;
    box-shadow: 0 8px 18px rgba(26, 74, 118, 0.1);
    transition: box-shadow .16s ease;
    table-layout: fixed;
    width: 180px;
    margin: 0;
    contain: paint;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

#gepcsoport_lista div[name="kereseshez"] table {
    float: none !important;
}

#gepcsoport_lista table.ft-gepkartya-table:hover,
#gepcsoport_lista div[name="kereseshez"] table:hover {
    box-shadow: 0 12px 22px rgba(21, 66, 108, 0.16);
}

#gepcsoport_lista table.ft-gepkartya-table tr:last-child,
#gepcsoport_lista div[name="kereseshez"] table tr:last-child {
    height: auto;
}

#gepcsoport_lista table.ft-gepkartya-table tr:last-child td,
#gepcsoport_lista div[name="kereseshez"] table tr:last-child td {
    background-color: #f5f5dc;
    vertical-align: top;
    height: auto;
}

#gepcsoport_lista img {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

#gepcsoport_lista .gepkartya-fejlec {
    padding: 6px;
    vertical-align: top;
}

#gepcsoport_lista .gepcsoport-easy-name {
    display: inline-block;
    max-width: none;
    vertical-align: top;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
}

#gepcsoport_lista .gepcsoport-csoport {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.2;
}

#gepcsoport_lista .gepcsoport-codename {
    color: inherit !important;
    font-size: 16px;
}

#gepcsoport_lista .gepcsoport-codename,
#gepcsoport_lista .gepcsoport-easy-name,
#gepcsoport_lista .gepcsoport-easy-name-hosszu,
#gepcsoport_lista .gepcsoport-easy-name-nagyon-hosszu,
#gepcsoport_lista .gepcsoport-csoport,
#gepcsoport_lista .gepcsoport-csoport-hosszu,
#gepcsoport_lista .gepcsoport-csoport-nagyon-hosszu {
    line-height: 1.2;
}

#gepcsoport_lista .gepcsoport-easy-name-hosszu {
    font-size: 12px;
}

#gepcsoport_lista .gepcsoport-easy-name-nagyon-hosszu {
    font-size: 11px;
    line-height: 1.2;
}

#gepcsoport_lista .gepcsoport-csoport-hosszu {
    font-size: 11px;
}

#gepcsoport_lista .gepcsoport-csoport-nagyon-hosszu {
    font-size: 10px;
    line-height: 1.2;
}

.osztaly:hover {
    opacity: 0.86;
}

.osztaly2:hover {
    opacity: 0.7;
}

.nyil {
    background: url("//static.federaltrust.hu/images/nyil_cikk.png") 0 0 no-repeat;
    display: block;
    width: 60px;
    height: 43px;
    color: #000;
    text-transform: uppercase;
    margin-left: 100px;
}

.nyil span {
    position: relative;
    top: 9px;
    left: 14px;
    font-size: 13px;
}

table#okj_table tr td {
    background-color: #194371;
}

table#elokepzettseg_tabla {
    width: 140px;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* The Close Button */
.close {
    color: white;
    float: right;
    /* font-size: 28px; */
    font-size: 70px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    /* background-color: #5cb85c; */
    background-color: var(--accent);
    color: white;
}

.modal-body {
    padding: 2px 16px;
    color: black;
}

.modal-footer {
    padding: 2px 16px;
    /* background-color: #5cb85c; */
    background-color: var(--accent);
    color: white;
}

@media (max-width: 900px) {
    body:not(:has(#ft-arkalkulator.ft-arkalkulator-embed)) {
        padding: 14px 10px 28px;
    }

    h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    table#gombsor {
        width: calc(100% - 8px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        table-layout: fixed;
    }

    #gombsor tbody {
        display: table-row-group;
    }

    #gombsor tr {
        display: table-row;
    }

    #gombsor td {
        display: table-cell;
        width: 33.333%;
        vertical-align: top;
    }

    #gombsor td {
        padding: 3px 2px;
    }

    table#gombsor {
        padding: 8px;
    }

    .gombsor-tajekoztato-cell {
        padding: 2px 4px 0 !important;
    }

    .gombsor-tajekoztato-szoveg {
        font-size: 11px;
        line-height: 1.25;
    }

    .gepcsoport-db-szoveg {
        font-size: 10px;
        line-height: 1.2;
        margin-top: 1px;
    }

    #gombsor font[size="2"] {
        font-size: 12px;
        font-weight: 600;
    }

    .vegar,
    .vegar1,
    .vegar2,
    .vegar3 {
        min-height: 48px;
        font-size: 15px;
        padding: 6px 4px;
    }

    #eredmeny1,
    #eredmeny2,
    #eredmeny3 {
        font-size: 16px;
        word-break: break-all;
    }

    #gombsor button,
    #gombsor input[type=submit] {
        width: 100% !important;
        height: 2.8em !important;
        font-size: 14px;
        padding: 6px 8px;
    }

    #gepcsoport_lista:not(:empty) {
        justify-content: center;
        gap: 8px 12px;
    }

    .ft-arkalkulator-geplista-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px 12px;
        justify-content: stretch;
    }

    #gepcsoport_lista div[name="kereseshez"],
    #gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt {
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 0;
        box-sizing: border-box;
        flex: 0 0 calc(50% - 6px);
    }

    #gepcsoport_lista .ft-arkalkulator-geplista-grid div[name="kereseshez"],
    #gepcsoport_lista .ft-arkalkulator-geplista-grid div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt {
        width: 100%;
        max-width: none;
        flex: none;
    }

    #gepcsoport_lista div[name="kereseshez"].ft-arkalkulator-kartya-kijelolt {
        box-shadow: 0 0 0 3px #e92990;
    }

    #gepcsoport_lista table {
        width: 100% !important;
        margin: 0 !important;
    }

    #gepcsoport_lista table img {
        width: 100% !important;
        height: 140px !important;
        object-fit: contain !important;
    }

    #gepcsoport_lista .gepcsoport-csoport-hosszu,
    #gepcsoport_lista .gepcsoport-csoport-nagyon-hosszu {
        white-space: nowrap;
        word-break: normal;
        font-size: clamp(8px, 2.35vw, 10px);
        line-height: 1.2;
    }

    .checkout-panel {
        padding: 12px;
    }

    .ar-info-tooltip {
        display: none;
    }

    .ar-info-mobile-popover {
        display: none;
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 128px;
        z-index: 2100;
        background: #fff;
        color: var(--text);
        border: 1px solid #b8cce1;
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(20, 51, 84, 0.24);
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        box-sizing: border-box;
        max-height: min(44vh, 260px);
        overflow-y: auto;
    }

    .ar-info-mobile-popover.is-open {
        display: block;
    }

    .checkout-card {
        padding: 14px;
        margin-bottom: 10px;
    }

    .checkout-total {
        white-space: normal;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .checkout-total-price {
        font-size: 30px;
    }

    .checkout-total-cta {
        font-size: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.35;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .back-edit-button,
    .back-home-button {
        width: 100%;
        min-width: 0;
    }

    .selected-machines {
        justify-content: flex-start;
    }

    .selected-machine-table {
        max-width: min(320px, 100%);
    }

    .contact-label-cell {
        width: 96px;
        font-size: 14px;
    }

    .contact-note {
        font-size: 14px;
    }
}