.ygpe-size-spec,
.ygpe-size-spec *,
.ygpe-size-spec *::before,
.ygpe-size-spec *::after {
    box-sizing: border-box;
}
.ygpe-size-spec {
    width: 100%;
    margin: 10px 0 18px;
    color: inherit;
    font: inherit;
}
.ygpe-size-spec__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.12fr 1fr;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    direction: ltr;
}
.ygpe-size-spec__cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 10px 12px;
    text-align: center;
    direction: rtl;
    position: relative;
}
.ygpe-size-spec__cell:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(0, 0, 0, .16);
}
.ygpe-size-spec__icon {
    position: relative;
    width: min(100%, 142px);
    aspect-ratio: 4096 / 1436;
    height: auto;
    margin: 0 auto 30px;
    overflow: visible;
}
.ygpe-size-spec__icon img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}
.ygpe-size-spec__icon--temple_length {
    width: min(100%, 158px);
    aspect-ratio: 2172 / 724;
}
.ygpe-size-spec__icon--lens_height {
    width: min(100%, 124px);
}
.ygpe-size-spec__measure {
    position: absolute;
    z-index: 2;
    display: block;
    pointer-events: none;
    color: #2d5fe8;
}
.ygpe-size-spec__measure::before,
.ygpe-size-spec__measure::after {
    content: '';
    position: absolute;
    display: block;
    background: currentColor;
    border-radius: 999px;
}
/* Horizontal measurement bars */
.ygpe-size-spec__measure--frame_width,
.ygpe-size-spec__measure--lens_width,
.ygpe-size-spec__measure--bridge_width,
.ygpe-size-spec__measure--temple_length {
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
    top: calc(100% + 7px);
}
.ygpe-size-spec__measure--frame_width::before,
.ygpe-size-spec__measure--frame_width::after,
.ygpe-size-spec__measure--lens_width::before,
.ygpe-size-spec__measure--lens_width::after,
.ygpe-size-spec__measure--bridge_width::before,
.ygpe-size-spec__measure--bridge_width::after,
.ygpe-size-spec__measure--temple_length::before,
.ygpe-size-spec__measure--temple_length::after {
    width: 1.5px;
    height: 6px;
    top: -2.25px;
}
.ygpe-size-spec__measure--frame_width::before,
.ygpe-size-spec__measure--lens_width::before,
.ygpe-size-spec__measure--bridge_width::before,
.ygpe-size-spec__measure--temple_length::before { left: 0; }
.ygpe-size-spec__measure--frame_width::after,
.ygpe-size-spec__measure--lens_width::after,
.ygpe-size-spec__measure--bridge_width::after,
.ygpe-size-spec__measure--temple_length::after { right: 0; }
.ygpe-size-spec__measure--frame_width {
    left: 0;
    width: 100%;
}
.ygpe-size-spec__measure--lens_width {
    left: 57.4%;
    width: 36%;
}
.ygpe-size-spec__measure--bridge_width {
    left: 44.5%;
    width: 11%;
    top: calc(100% + 5px);
}
.ygpe-size-spec__measure--temple_length {
    left: 0;
    width: 100%;
}
/* Vertical lens-height bar: same height as the deliberately smaller frame. */
.ygpe-size-spec__measure--lens_height {
    width: 1.5px;
    height: 100%;
    right: -4px;
    top: 0;
    background: currentColor;
    border-radius: 999px;
}
.ygpe-size-spec__measure--lens_height::before,
.ygpe-size-spec__measure--lens_height::after {
    width: 6px;
    height: 1.5px;
    left: -2.25px;
}
.ygpe-size-spec__measure--lens_height::before { top: 0; }
.ygpe-size-spec__measure--lens_height::after { bottom: 0; }
.ygpe-size-spec__label {
    display: flex;
    margin-top: auto;
    align-items: flex-end;
    justify-content: center;
    height: 1.55em;
    font-size: .98em;
    font-weight: 600;
    color: #7a7a7a;
    margin-bottom: 6px;
    line-height: 1.45;
    white-space: nowrap;
}
.ygpe-size-spec__value {
    display: inline-flex;
    align-self: center;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    color: #111;
    font-variant-numeric: tabular-nums;
}
.ygpe-size-spec__value strong {
    font-size: 1.68em;
    line-height: 1;
    font-weight: 800;
    color: #111;
}
.ygpe-size-spec__value span {
    font-size: .96em;
    font-weight: 700;
    color: #111;
    opacity: 1;
}
.ygpe-size-spec__unit--placeholder {
    visibility: hidden;
}
@media (max-width: 768px) {
    .ygpe-size-spec__grid {
        grid-template-columns: 1fr 1fr 1fr 1.12fr 1fr;
    }
    .ygpe-size-spec__cell {
        padding: 10px 4px 9px;
    }
    .ygpe-size-spec__cell:not(:last-child)::after {
        right: 0;
    }
    .ygpe-size-spec__icon {
        width: min(100%, 66px);
        aspect-ratio: 4096 / 1436;
        height: auto;
        margin-bottom: 24px;
    }
    .ygpe-size-spec__icon--temple_length {
        width: min(100%, 72px);
        aspect-ratio: 2172 / 724;
    }
    .ygpe-size-spec__icon--lens_height {
        width: min(100%, 54px);
    }
    .ygpe-size-spec__measure--frame_width,
    .ygpe-size-spec__measure--lens_width,
    .ygpe-size-spec__measure--temple_length {
        top: calc(100% + 5px);
    }
    .ygpe-size-spec__measure--bridge_width {
        left: 42%;
        width: 16%;
        top: calc(100% + 4px);
    }
    .ygpe-size-spec__measure--lens_height {
        right: -4px;
    }
    .ygpe-size-spec__label {
        font-size: .72em;
        margin-bottom: 5px;
    }
    .ygpe-size-spec__value {
        gap: 2px;
    }
    .ygpe-size-spec__value strong {
        font-size: 1.10em;
        font-weight: 800;
    }
    .ygpe-size-spec__value span {
        font-size: .64em;
        font-weight: 700;
    }
}
@media (max-width: 420px) {
    .ygpe-size-spec__cell {
        padding: 9px 3px 8px;
    }
    .ygpe-size-spec__icon {
        width: min(100%, 60px);
        aspect-ratio: 4096 / 1436;
        height: auto;
        margin-bottom: 23px;
    }
    .ygpe-size-spec__icon--temple_length {
        width: min(100%, 66px);
        aspect-ratio: 2172 / 724;
    }
    .ygpe-size-spec__icon--lens_height {
        width: min(100%, 50px);
    }
    .ygpe-size-spec__measure--bridge_width {
        left: 41%;
        width: 18%;
    }
    .ygpe-size-spec__measure--lens_height {
        right: -3px;
    }
    .ygpe-size-spec__label {
        font-size: .66em;
    }
    .ygpe-size-spec__value strong {
        font-size: 1.00em;
    }
    .ygpe-size-spec__value span {
        font-size: .60em;
    }
}
