/* ==========================================================
   EVERKI laptop fit widget (Everki_LaptopFit), ek-fit-* only.
   Uses the ek design tokens of ek-design-page.css with fallbacks, because that file loads
   async: every size that affects layout is set here, so nothing moves when it arrives.
   ========================================================== */
.ek-fit {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--ek-border, rgba(17, 24, 39, 0.12));
    border-radius: var(--ek-radius-sm, 12px);
    background: #fff;
    color: var(--ek-text, #111827);
}
/* Editor-inserted mount in the product description (CMS widget everki_laptopfit_check). The
   description is full width, so the mount sits in .ek-container like the spec mount does. The same
   container values are repeated here, with fallbacks, only for the wrapper of this mount, because
   ek-design-page.css loads async. The model row stops at 640px; below that it is full width. */
.ek-scope > .ek-container:has(> .ek-fit--content) {
    max-width: var(--ek-container, 1280px);
    margin-inline: auto;
    padding-inline: var(--ek-gutter, clamp(16px, 4vw, 48px));
}
.ek-fit--content { margin: 24px 0; }
.ek-fit--content .ek-fit__row { max-width: 640px; }
.ek-fit--spec {
    max-width: var(--ek-container, 1280px);
    margin: 32px auto 0;
}
.ek-fit__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
}
.ek-fit__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ek-muted, #374151);
}
.ek-fit__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.ek-fit__combo { position: relative; flex: 1 1 220px; min-width: 0; }
.ek-fit__input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--ek-border-ui, #80848b);
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
    color: inherit;
}
.ek-fit__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ek-border-ui, #80848b);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.ek-fit__option { padding: 10px 12px; cursor: pointer; line-height: 1.35; }
.ek-fit__option[aria-selected="true"],
.ek-fit__option:hover { background: #f3f4f6; box-shadow: inset 3px 0 0 var(--ek-accent, #c2410c); }
.ek-fit__go {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}
.ek-fit__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    align-items: center;
    margin-top: 4px;
}
.ek-fit__linkbtn {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ek-accent, #c2410c);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.ek-fit__linkbtn:hover { color: var(--ek-accent-hover, #7c2d12); }
.ek-fit__check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.ek-fit__check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ek-accent, #c2410c); }
.ek-fit__size {
    margin: 8px 0 0;
    padding: 12px 16px 16px;
    border: 1px solid var(--ek-border, rgba(17, 24, 39, 0.12));
    border-radius: 8px;
}
.ek-fit__size > legend { padding: 0 4px; font-weight: 700; }
.ek-fit__units { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 4px; padding: 0; border: 0; }
.ek-fit__units > legend { float: left; margin-right: 12px; padding: 12px 0 0; font-weight: 600; }
.ek-fit__dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.ek-fit__field label { display: block; margin-bottom: 4px; font-size: 0.875rem; line-height: 1.3; }
.ek-fit__result { margin-top: 12px; min-height: 3rem; }
.ek-fit__line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; font-weight: 700; line-height: 1.4; }
.ek-fit__line svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ek-fit__line--fits svg { color: #166534; }
.ek-fit__line--tight svg { color: #92400e; }
.ek-fit__line--no svg { color: #b91c1c; }
.ek-fit__note { margin: 4px 0; font-size: 0.875rem; line-height: 1.45; color: var(--ek-muted, #374151); }
.ek-fit__choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ek-fit__choice {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--ek-border-ui, #80848b);
    border-radius: 9999px;
    background: #fff;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.ek-fit__choice:hover { border-color: var(--ek-text, #111827); }
.ek-fit__alts { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.ek-fit__alts li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ek-fit__chip {
    padding: 2px 10px;
    border-radius: 9999px;
    background: #f3f4f6;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ek-muted, #374151);
}
.ek-fit .ek-link { min-height: 24px; display: inline-block; }
@media (max-width: 640px) {
    .ek-fit--spec { margin-top: 24px; }
    .ek-fit__dims { grid-template-columns: minmax(0, 1fr); }
    .ek-fit__go { width: 100%; }
}
