.order-constructor__poster-card h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.order-constructor__poster-card > p {
    margin: 14px 0 0;
    color: #9a3412;
    font-weight: 600;
}

.order-constructor__poster-card-wrapper-image {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 24px auto 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

.order-constructor__poster-preview {
    position: relative;
    width: 100%;
    padding: 36px 20px 20px 52px;
}

.order-constructor__poster-card-image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.order-constructor__dimension {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    pointer-events: none;
}

.order-constructor__dimension_width {
    top: 0;
    left: 52px;
    right: 20px;
}

.order-constructor__dimension_height {
    top: 36px;
    bottom: 20px;
    left: 0;
    width: 36px;
    flex-direction: column;
    justify-content: center;
}

.order-constructor__dimension-line {
    display: block;
    position: relative;
    flex: 1 1 auto;
    min-width: 2px;
    min-height: 2px;
}

.order-constructor__dimension_width .order-constructor__dimension-line {
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.order-constructor__dimension_width .order-constructor__dimension-line:first-child::before,
.order-constructor__dimension_width .order-constructor__dimension-line:last-child::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #111827;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    transform: translateY(-50%);
}

.order-constructor__dimension_width .order-constructor__dimension-line:first-child::before {
    left: -10px;
}

.order-constructor__dimension_width .order-constructor__dimension-line:last-child::after {
    right: -10px;
    transform: translateY(-50%) rotate(180deg);
}

.order-constructor__dimension_height .order-constructor__dimension-line {
    width: 2px;
    border-radius: 999px;
    background: #111827;
}

.order-constructor__dimension_height .order-constructor__dimension-line:first-child::before,
.order-constructor__dimension_height .order-constructor__dimension-line:last-child::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #111827;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    transform: translateX(-50%);
}

.order-constructor__dimension_height .order-constructor__dimension-line:first-child::before {
    top: -10px;
}

.order-constructor__dimension_height .order-constructor__dimension-line:last-child::after {
    bottom: -10px;
    transform: translateX(-50%) rotate(180deg);
}

.order-constructor__dimension-value {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
    text-align: center;
}

.order-constructor__zoom-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.order-constructor__zoom-button:hover {
    background: #111827;
}

.order-constructor__zoom-button-icon {
    display: inline-flex;
}

.order-constructor__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 960px) {
    .order-constructor__poster-preview {
        padding: 34px 14px 14px 40px;
    }

    .order-constructor__dimension_width {
        left: 40px;
        right: 14px;
    }
}
