.evropat-calc {
--ev-blue: #103683;
--ev-blue-dark: #0B245C;
--ev-red: #A80504;
--ev-ink: #14213D;
--ev-gray: #5A667E;
--ev-muted: #97A0B2;
--ev-blue-50: #EEF3FC;
--ev-border: #DDE3EE;
--ev-success: #16A46B;
--ev-warn-bg: #FFF6E5;
--ev-warn-ink: #8A5A00;
--ev-radius-ui: 8px;
--ev-radius-card: 16px;
max-width: 980px;
color: var(--ev-ink);
font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
}
.evropat-calc *,
.evropat-calc *::before,
.evropat-calc *::after { box-sizing: border-box; }
.evropat-calc__title {
margin: 0 0 24px;
font-size: 1.9rem;
font-weight: 800;
letter-spacing: -.01em;
color: var(--ev-blue-dark);
}
.evropat-calc__form { margin: 0; } .evropat-calc__step { margin: 0 0 36px; }
.evropat-calc__step-title {
display: flex;
align-items: center;
gap: 12px;
margin: 0 0 20px;
font-size: 1.3rem;
font-weight: 700;
color: var(--ev-ink);
}
.evropat-calc__step-num {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 32px;
height: 32px;
font-size: .9rem;
font-weight: 700;
color: #fff;
background: var(--ev-blue-dark);
border-radius: 50%;
}
.evropat-calc__grid2 {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px 28px;
}
.evropat-calc__side,
.evropat-calc__field { min-width: 0; }
.evropat-calc__side .evropat-calc__field { margin-top: 18px; } .evropat-calc__label {
display: block;
margin: 0 0 8px;
padding: 0;
font-size: .85rem;
font-weight: 600;
color: var(--ev-gray);
}
.evropat-calc__input {
width: 100%;
min-height: 48px;
padding: 12px 14px;
font-family: inherit;
font-size: 1rem;
color: var(--ev-ink);
background: #fff;
border: 1.5px solid var(--ev-border);
border-radius: var(--ev-radius-ui);
transition: border-color .15s ease, box-shadow .15s ease;
}
.evropat-calc__input::placeholder { color: #A7AFBF; }
.evropat-calc__input:focus {
outline: none;
border-color: var(--ev-blue);
box-shadow: 0 0 0 3px rgba(16, 54, 131, .16);
}
.evropat-calc__input[aria-invalid="true"] {
border-color: var(--ev-red);
box-shadow: 0 0 0 3px rgba(168, 5, 4, .10);
}
.evropat-calc__hint {
margin-top: 6px;
font-size: .8rem;
color: var(--ev-muted);
}
.evropat-calc__place-meta {
margin-top: 6px;
font-size: .8rem;
color: var(--ev-gray);
}
.evropat-calc__place-meta:empty { display: none; }
.evropat-calc__hint[hidden] { display: none; } .evropat-calc__msg:empty { display: none; }
.evropat-calc__msg {
margin-top: 8px;
font-size: .85rem;
line-height: 1.45;
}
.evropat-calc__msg.is-error { color: var(--ev-red); font-weight: 600; }
.evropat-calc__msg.is-info { color: var(--ev-gray); }
.evropat-calc__msg.is-warn {
padding: 10px 12px;
color: var(--ev-warn-ink);
background: var(--ev-warn-bg);
border-radius: var(--ev-radius-ui);
}
.evropat-calc__msg--form { margin-top: 12px; }
.evropat-calc__switch,
.evropat-calc__inquiry {
display: inline;
padding: 0;
font: inherit;
font-weight: 700;
color: var(--ev-blue);
text-decoration: underline;
text-underline-offset: 2px;
background: none;
border: 0;
cursor: pointer;
}
.evropat-calc__switch:hover,
.evropat-calc__inquiry:hover { color: var(--ev-blue-dark); } .evropat-calc__choice {
margin: 0;
padding: 0;
border: 0;
min-width: 0;
}
.evropat-calc__options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.evropat-calc__options--wide { max-width: 560px; }
.evropat-calc__options--types {
grid-template-columns: repeat(4, minmax(0, 1fr));
max-width: 880px;
}
.evropat-calc__total-weight {
margin-top: 12px;
padding: 10px 14px;
font-size: .88rem;
line-height: 1.45;
border-radius: var(--ev-radius-ui);
}
.evropat-calc__total-weight[hidden] { display: none; }
.evropat-calc__total-weight strong { font-weight: 700; }
.evropat-calc__total-weight.is-info {
color: var(--ev-ink);
background: var(--ev-blue-50);
}
.evropat-calc__total-weight.is-warn {
color: var(--ev-warn-ink);
background: var(--ev-warn-bg);
}
.evropat-calc__option {
position: relative;
display: block;
cursor: pointer;
}
.evropat-calc__option input {
position: absolute;
opacity: 0;
width: 1px;
height: 1px;
}
.evropat-calc__option-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 64px;
padding: 12px 10px;
font-size: .95rem;
font-weight: 600;
text-align: center;
color: var(--ev-ink);
background: #fff;
border: 1.5px solid var(--ev-border);
border-radius: var(--ev-radius-ui);
transition: border-color .15s ease, background-color .15s ease;
}
.evropat-calc__option:hover .evropat-calc__option-box { border-color: #B9C5DD; }
.evropat-calc__option input:checked + .evropat-calc__option-box {
color: var(--ev-blue-dark);
background: var(--ev-blue-50);
border-color: var(--ev-blue);
}
.evropat-calc__option input:focus-visible + .evropat-calc__option-box {
outline: 3px solid rgba(16, 54, 131, .35);
outline-offset: 2px;
}
.evropat-calc__icon { flex: 0 0 auto; }
.evropat-calc__option-note {
display: block;
font-size: .72rem;
font-weight: 500;
color: var(--ev-gray);
}
.evropat-calc__options .evropat-calc__option-box { height: 100%; }
.evropat-calc__option:has(input:disabled) { cursor: not-allowed; }
.evropat-calc__option input:disabled + .evropat-calc__option-box {
color: var(--ev-muted);
background: #F7F8FB;
border-style: dashed;
}
.evropat-calc__option:hover input:disabled + .evropat-calc__option-box { border-color: var(--ev-border); } .evropat-calc__combo { position: relative; }
.evropat-calc__list {
position: absolute;
z-index: 20;
top: calc(100% + 6px);
left: 0;
right: 0;
max-height: 320px;
margin: 0;
padding: 6px;
overflow-y: auto;
list-style: none;
background: #fff;
border: 1px solid var(--ev-border);
border-radius: var(--ev-radius-ui);
box-shadow: 0 12px 28px rgba(11, 36, 92, .12);
}
.evropat-calc__list[hidden] { display: none; }
.evropat-calc__opt {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 9px 10px;
border-radius: 6px;
cursor: pointer;
}
.evropat-calc__opt:hover,
.evropat-calc__opt[aria-selected="true"] { background: var(--ev-blue-50); }
.evropat-calc__opt-text { display: flex; flex-direction: column; min-width: 0; }
.evropat-calc__opt-name { font-weight: 700; color: var(--ev-ink); }
.evropat-calc__opt-meta { font-size: .8rem; color: var(--ev-gray); }
.evropat-calc__opt-empty {
padding: 10px;
font-size: .9rem;
color: var(--ev-gray);
}
.evropat-calc__badge {
flex: 0 0 auto;
padding: 2px 10px;
font-size: .7rem;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--ev-blue);
background: var(--ev-blue-50);
border: 1px solid #D5E0F5;
border-radius: 999px;
} .evropat-calc__info {
margin: 18px 0;
padding: 12px 16px;
font-size: .88rem;
color: var(--ev-gray);
background: var(--ev-blue-50);
border-radius: var(--ev-radius-ui);
}
.evropat-calc__info strong { color: var(--ev-ink); }
.evropat-calc__info[hidden] { display: none; }
.evropat-calc__info-extra {
display: block;
margin-top: 4px;
}
.evropat-calc__rows { display: grid; gap: 12px; }
.evropat-calc__row {
padding: 16px 18px 18px;
background: #fff;
border: 1px solid var(--ev-border);
border-radius: var(--ev-radius-card);
}
.evropat-calc__row-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}
.evropat-calc__row-title {
font-size: .8rem;
font-weight: 700;
letter-spacing: .06em;
text-transform: uppercase;
color: var(--ev-gray);
}
.evropat-calc__remove {
padding: 4px 8px;
font-family: inherit;
font-size: .82rem;
font-weight: 600;
color: var(--ev-gray);
background: none;
border: 0;
border-radius: 6px;
cursor: pointer;
}
.evropat-calc__remove:hover { color: var(--ev-red); background: #FBEDED; }
.evropat-calc__remove:focus-visible { outline: 3px solid rgba(16, 54, 131, .35); }
.evropat-calc__row-fields {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.evropat-calc__add {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 14px;
padding: 11px 18px;
font-family: inherit;
font-size: .92rem;
font-weight: 600;
color: var(--ev-blue-dark);
background: #fff;
border: 1.5px dashed #B9C5DD;
border-radius: var(--ev-radius-ui);
cursor: pointer;
}
.evropat-calc__add:hover { border-color: var(--ev-blue); background: var(--ev-blue-50); }
.evropat-calc__add:disabled { opacity: .5; cursor: default; }
.evropat-calc__add[hidden] { display: none; }
.evropat-calc__add:focus-visible { outline: 3px solid rgba(16, 54, 131, .35); outline-offset: 2px; } .evropat-calc__day { max-width: 460px; margin-top: 20px; }
.evropat-calc__select {
appearance: none;
-webkit-appearance: none;
padding-right: 42px;
cursor: pointer;
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A667E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
} .evropat-calc__card {
padding: 18px;
background: #fff;
border: 1px solid var(--ev-border);
border-radius: var(--ev-radius-card);
}
.evropat-calc__card .evropat-calc__field { margin-top: 14px; }
.evropat-calc__card .evropat-calc__field:first-child { margin-top: 0; }
.evropat-calc__services {
margin: 20px 0 0;
padding: 0;
border: 0;
min-width: 0;
}
.evropat-calc__checks {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 28px;
}
.evropat-calc__check {
position: relative;
display: flex;
align-items: flex-start;
gap: 10px;
padding: 6px 0;
cursor: pointer;
}
.evropat-calc__check input {
position: absolute;
opacity: 0;
width: 1px;
height: 1px;
}
.evropat-calc__check-box {
flex: 0 0 auto;
width: 20px;
height: 20px;
margin-top: 1px;
background: #fff;
border: 1.5px solid #B9C5DD;
border-radius: 5px;
transition: background-color .15s ease, border-color .15s ease;
}
.evropat-calc__check input:checked + .evropat-calc__check-box {
background: var(--ev-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
border-color: var(--ev-blue);
}
.evropat-calc__check input:focus-visible + .evropat-calc__check-box {
outline: 3px solid rgba(16, 54, 131, .35);
outline-offset: 2px;
}
.evropat-calc__check input:disabled + .evropat-calc__check-box { background: #F2F4F8; border-color: var(--ev-border); }
.evropat-calc__check:has(input:disabled) { cursor: default; }
.evropat-calc__check-text { font-size: .95rem; color: var(--ev-ink); }
.evropat-calc__check input:disabled ~ .evropat-calc__check-text { color: var(--ev-muted); }
.evropat-calc__check-hint {
display: block;
font-size: .78rem;
color: var(--ev-muted);
} .evropat-calc__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px 16px;
margin-top: 4px;
}
.evropat-calc__reset {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 52px;
padding: 14px 22px;
font-family: inherit;
font-size: .95rem;
font-weight: 600;
cursor: pointer;
border-radius: var(--ev-radius-ui);
transition: background-color .15s ease, border-color .15s ease;
}
.evropat-calc .evropat-calc__reset,
.evropat-calc .evropat-calc__reset:focus {
color: var(--ev-blue-dark);
background: #fff;
border: 1.5px solid var(--ev-border);
}
.evropat-calc .evropat-calc__reset:hover,
.evropat-calc .evropat-calc__reset:active {
color: var(--ev-blue-dark);
background: var(--ev-blue-50);
border: 1.5px solid var(--ev-blue);
}
.evropat-calc .evropat-calc__reset:focus-visible {
outline: 3px solid rgba(16, 54, 131, .35);
outline-offset: 3px;
}
.evropat-calc__submit {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 52px;
padding: 14px 28px;
font-family: inherit;
font-size: 1rem;
font-weight: 700;
color: #fff;
background: var(--ev-blue);
border: 0;
border-radius: var(--ev-radius-ui);
cursor: pointer;
transition: background-color .15s ease;
}
.evropat-calc__submit:hover { background: var(--ev-blue-dark); }
.evropat-calc__submit:focus-visible { outline: 3px solid rgba(16, 54, 131, .4); outline-offset: 3px; }
.evropat-calc__submit.is-loading { opacity: .75; cursor: progress; } .evropat-calc button {
text-transform: none;
letter-spacing: normal;
text-shadow: none;
box-shadow: none;
line-height: 1.4;
}
.evropat-calc .evropat-calc__switch,
.evropat-calc .evropat-calc__switch:hover,
.evropat-calc .evropat-calc__switch:focus,
.evropat-calc .evropat-calc__switch:active {
min-height: 0;
padding: 0;
color: var(--ev-blue);
background: transparent;
border: 0;
border-radius: 0;
}
.evropat-calc .evropat-calc__switch:hover,
.evropat-calc .evropat-calc__inquiry:hover,
.evropat-calc .evropat-calc__inquiry:focus { color: var(--ev-blue-dark); }
.evropat-calc .evropat-calc__switch:focus-visible,
.evropat-calc .evropat-calc__inquiry:focus-visible {
outline: 2px solid rgba(16, 54, 131, .45);
outline-offset: 2px;
border-radius: 3px;
}
.evropat-calc .evropat-calc__add,
.evropat-calc .evropat-calc__add:focus {
color: var(--ev-blue-dark);
background: #fff;
border: 1.5px dashed #B9C5DD;
}
.evropat-calc .evropat-calc__add:hover,
.evropat-calc .evropat-calc__add:active {
color: var(--ev-blue-dark);
background: var(--ev-blue-50);
border: 1.5px dashed var(--ev-blue);
}
.evropat-calc .evropat-calc__add:disabled,
.evropat-calc .evropat-calc__add:disabled:hover {
color: var(--ev-blue-dark);
background: #fff;
border: 1.5px dashed #B9C5DD;
opacity: .5;
}
.evropat-calc .evropat-calc__remove,
.evropat-calc .evropat-calc__remove:focus {
min-height: 0;
color: var(--ev-gray);
background: transparent;
border: 0;
}
.evropat-calc .evropat-calc__remove:hover,
.evropat-calc .evropat-calc__remove:active {
color: var(--ev-red);
background: #FBEDED;
border: 0;
}
.evropat-calc .evropat-calc__submit,
.evropat-calc .evropat-calc__submit:focus {
color: #fff;
background: var(--ev-blue);
border: 0;
}
.evropat-calc .evropat-calc__submit:hover,
.evropat-calc .evropat-calc__submit:active {
color: #fff;
background: var(--ev-blue-dark);
border: 0;
} .evropat-calc__result { margin-top: 24px; scroll-margin: 24px; }
.evropat-calc__result[hidden] { display: none; }
.evropat-calc__result:focus { outline: none; }
.evropat-calc__result-card {
max-width: 560px;
overflow: hidden;
background: #fff;
border: 1.5px solid var(--ev-blue);
border-radius: var(--ev-radius-card);
box-shadow: 0 12px 32px rgba(11, 36, 92, .08);
transition: opacity .2s ease;
}
.evropat-calc__result-head {
padding: 22px 24px 18px;
background: var(--ev-blue-50);
border-bottom: 1px solid var(--ev-border);
}
.evropat-calc__result-title {
margin: 0;
font-size: .8rem;
font-weight: 700;
letter-spacing: .06em;
text-transform: uppercase;
color: var(--ev-gray);
}
.evropat-calc__total {
margin: 4px 0 0;
font-size: 2.4rem;
font-weight: 800;
line-height: 1.15;
letter-spacing: -.02em;
color: var(--ev-blue);
font-variant-numeric: tabular-nums;
}
.evropat-calc__lines { margin: 0; padding: 14px 24px 6px; }
.evropat-calc__line {
display: flex;
justify-content: space-between;
gap: 16px;
padding: 7px 0;
font-size: .95rem;
}
.evropat-calc__line dt { color: var(--ev-ink); }
.evropat-calc__line dd {
margin: 0;
font-weight: 600;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.evropat-calc__line--sub { padding: 2px 0 2px 14px; font-size: .85rem; }
.evropat-calc__line--sub dt,
.evropat-calc__line--sub dd { color: var(--ev-gray); font-weight: 400; }
.evropat-calc__line--total {
margin-top: 8px;
padding-top: 12px;
border-top: 1px solid var(--ev-border);
font-size: 1.05rem;
}
.evropat-calc__line--total dt,
.evropat-calc__line--total dd { font-weight: 800; color: var(--ev-blue-dark); }
.evropat-calc__note {
margin: 0;
padding: 0 24px 18px;
font-size: .8rem;
color: var(--ev-muted);
}
.evropat-calc__note--pallet {
padding-bottom: 10px;
font-size: .85rem;
color: var(--ev-ink);
}
.evropat-calc__note--pallet strong { font-weight: 700; }
.evropat-calc__note--pos {
margin: 0 24px 10px;
padding: 10px 12px;
font-size: .85rem;
font-weight: 600;
color: var(--ev-warn-ink);
background: var(--ev-warn-bg);
border-radius: var(--ev-radius-ui);
}
.evropat-calc__stale {
display: none;
margin: 0;
padding: 10px 24px;
font-size: .85rem;
font-weight: 600;
color: var(--ev-warn-ink);
background: var(--ev-warn-bg);
}
.evropat-calc__result.is-stale .evropat-calc__stale { display: block; }
.evropat-calc__result.is-stale .evropat-calc__result-head,
.evropat-calc__result.is-stale .evropat-calc__lines { opacity: .45; } @media (max-width: 760px) {
.evropat-calc__options--types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evropat-calc__grid2 { grid-template-columns: 1fr; gap: 28px; }
.evropat-calc__checks { grid-template-columns: 1fr; }
.evropat-calc__row-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evropat-calc__submit,
.evropat-calc__reset { width: 100%; justify-content: center; }
.evropat-calc__title { font-size: 1.6rem; }
}
@media (max-width: 520px) {
.evropat-calc__options--types { grid-template-columns: 1fr; gap: 8px; }
.evropat-calc__options--types .evropat-calc__option-box {
flex-direction: row;
justify-content: flex-start;
gap: 10px;
min-height: 52px;
padding: 10px 16px;
}
}
@media (max-width: 380px) {
.evropat-calc__option-box { font-size: .88rem; }
.evropat-calc__total { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
.evropat-calc__input,
.evropat-calc__option-box,
.evropat-calc__check-box,
.evropat-calc__submit,
.evropat-calc__result-card { transition: none; }
}