.mek-calc{display:grid;gap:14px;margin:0 0 20px;padding:20px;border:1px solid #E6E6E6;border-radius:14px;background:#fff}
.mek-field{margin:0}
.mek-field[hidden]{display:none}
.mek-field label,.mek-field legend{display:block;font-weight:700;font-size:15px;margin:0 0 6px;padding:0}
fieldset.mek-field{border:0;padding:0;margin:0;min-width:0}
.mek-field select,.mek-field input[type=number],.mek-field input[type=text],.mek-field textarea{font-family:inherit;width:100%;max-width:340px;padding:10px 12px;border:1px solid #CFCFCF;border-radius:10px;font-size:16px;background:#fff}
.mek-field small{display:block;color:#666;font-size:13px;margin-top:4px}
.mek-pills{display:flex;flex-wrap:wrap;gap:8px}
.mek-pills label{margin:0;font-weight:600}
.mek-pills input{position:absolute;opacity:0;pointer-events:none}
.mek-pills span{display:inline-block;padding:9px 16px;border:1px solid #CFCFCF;border-radius:999px;cursor:pointer;transition:background-color .15s,border-color .15s}
.mek-pills input:checked+span{background:#FDD503;border-color:#FDD503;color:#3E3E3E}
.mek-pills input:focus-visible+span{outline:3px solid #1E9FDA;outline-offset:2px}
.mek-pdf{padding:14px;border:1px dashed #BDBDBD;border-radius:12px;background:#FAFAFA}
.mek-pdf-btn{display:inline-block;font-weight:700;cursor:pointer;color:#3E3E3E}
.mek-pdf-btn input{display:block;margin-top:6px;font-weight:400;max-width:100%}
.mek-pdf-status{display:block;color:#666;font-size:13px;margin-top:6px}
.mek-note{margin:0;font-size:13.5px;color:#535353;background:#FFF7CD;padding:10px 12px;border-radius:10px}
.mek-total{padding:16px;border-radius:12px;background:#F5F5F5;transition:opacity .15s}
.mek-calc.is-loading .mek-total{opacity:.6}
.mek-total-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.mek-total-row span{font-weight:700}
.mek-total-price{font-family:Archivo,sans-serif;font-size:28px;font-weight:800;color:#3E3E3E}
.mek-unit{font-size:14px;color:#535353;margin-top:2px}
.mek-lines{margin:8px 0 0;padding-left:18px;font-size:14px;color:#535353}
.mek-error{margin:8px 0 0;color:#B00020;font-weight:700}
.mek-from small{font-size:.8em;color:#666}

/* Színválasztó */
.mek-swatches legend .mek-sw-val{font-weight:400;color:#535353}
.mek-sw-list{display:flex;flex-wrap:wrap;gap:10px 14px}
.mek-sw-list label{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0;cursor:pointer;min-width:52px}
.mek-sw-list input{position:absolute;opacity:0;pointer-events:none}
.mek-sw-chip{position:relative;display:block;width:40px;height:40px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);outline:2px solid transparent;outline-offset:3px;transition:transform .15s,outline-color .15s}
.mek-sw-book .mek-sw-chip{width:38px;height:50px;border-radius:3px 6px 6px 3px;background:linear-gradient(90deg,rgba(0,0,0,.22) 0 5px,transparent 5px),var(--sw)}
.mek-sw-name{font-size:12.5px;font-weight:600;color:#535353;line-height:1}
.mek-sw-list label:hover .mek-sw-chip{transform:scale(1.08)}
.mek-sw-list input:checked+.mek-sw-chip{outline-color:#3E3E3E}
.mek-sw-list input:checked+.mek-sw-chip::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:14px;margin:-9px 0 0 -4px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg);filter:drop-shadow(0 0 1px rgba(0,0,0,.6))}
.mek-sw-list input[value="white"]:checked+.mek-sw-chip::after,.mek-sw-list input[value="yellow"]:checked+.mek-sw-chip::after{border-color:#3E3E3E;filter:none}
.mek-sw-list input:checked~.mek-sw-name{color:#3E3E3E}
.mek-sw-list input:focus-visible+.mek-sw-chip{outline-color:#1E9FDA}

.mek-calc input.mek-locked{background:#F5F5F5;color:#3E3E3E;cursor:not-allowed;border-style:dashed}
/* Fájlfeltöltő (CodeDropz) a kalkulátorban */
.mek-pdf.mek-has-dnd{padding:0;border:0;background:none}
.mek-calc .wc-dnd-file-upload{margin:0 0 6px}
.mek-calc .wc-dnd-file-upload > label:empty{display:none}
.mek-calc .codedropz-upload-handler{border:2px dashed #BDBDBD;border-radius:12px;background:#FAFAFA;transition:border-color .15s,background .15s}
.mek-calc .codedropz-upload-handler:hover,.mek-calc .codedropz-dragover .codedropz-upload-handler{border-color:#FDD503;background:#FFFBE6}
.mek-calc .codedropz-upload-inner .text{font-weight:700;color:#3E3E3E}
.mek-calc .cd-upload-btn{border-radius:6px!important;font-weight:700}
.mek-calc .dnd-upload-status{border-radius:8px}
