/* Quote & Cut Advanced — STEP folding review card */

.quoteandcut-step-card {
    margin: 10px 0;
}

.quoteandcut-step-busy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #f7f9fb;
    font-size: 13px;
}

.quoteandcut-step-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #c6ccd4;
    border-top-color: #3a6df0;
    border-radius: 50%;
    animation: quoteandcut-step-spin 0.8s linear infinite;
}

@keyframes quoteandcut-step-spin {
    to { transform: rotate(360deg); }
}

.quoteandcut-step-review {
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    background: #f8fafc;
    padding: 20px;
    font-size: 13px;
}

.quoteandcut-step-review.is-blocked {
    background: #fdf8f0;
}

.quoteandcut-step-review.is-error {
    background: #fdf3f3;
}

.quoteandcut-step-review__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.quoteandcut-step-review__meta {
    color: #5a6572;
    font-size: 12px;
    white-space: nowrap;
}

.quoteandcut-step-review__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
}

.quoteandcut-step-review__note {
    margin: 4px 0 8px;
    color: #5a6572;
    font-size: 12px;
}

.quoteandcut-step-bends {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 12px;
}

.quoteandcut-step-bends th,
.quoteandcut-step-bends td {
    border: 1px solid #dde3ea;
    padding: 4px 8px;
    text-align: left;
}

.quoteandcut-step-bends th {
    background: #eef2f7;
    font-weight: 600;
}

.quoteandcut-step-review__warnings,
.quoteandcut-step-review__reasons {
    list-style: none;
    margin: 8px 0 0;
    padding-left: 0;
    font-size: 12px;
}

.quoteandcut-step-review__warnings li,
.quoteandcut-step-review__reasons li {
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 5px;
    background: #fdf4e3;
    border: 1px solid #ecd9b0;
    color: #8a5d00;
}

.quoteandcut-step-review__reasons li {
    color: #a05a00;
}

.quoteandcut-step-review.is-error p {
    margin: 6px 0;
}

.quoteandcut-step-review-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d4dbe4;
}

.quoteandcut-step-review-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}

.quoteandcut-step-review-form input[type="email"],
.quoteandcut-step-review-form textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 3px;
}

.quoteandcut-step-review-form__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quoteandcut-step-review-form__status {
    font-size: 12px;
    color: #5a6572;
}

.quoteandcut-step-review-form__done {
    color: #1d7a3a;
    font-weight: 600;
}

/* --- layout hardening (studio + all form styles) --- */

.quoteandcut-step-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    margin: 12px 0;
}

/* Full-width row: keep the animation a sensible size on wide screens. */
.quoteandcut-step-card .quoteandcut-step-preview {
    max-width: 460px;
}

/* --- animated fold preview --- */

.quoteandcut-step-preview {
    position: relative;
    margin: 6px 0 10px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.quoteandcut-step-preview__canvas {
    display: block;
    margin: 0 auto;
}

.quoteandcut-step-preview__play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid #c6ccd4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2c3745;
    cursor: pointer;
}

.quoteandcut-step-preview__play:hover {
    background: #f0f4f9;
    border-color: #9fb0c4;
}

/* --- orbit interaction --- */

.quoteandcut-step-preview__hint {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 2px 9px;
    font-size: 11px;
    line-height: 1.6;
    color: #5a6572;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dde3ea;
    border-radius: 999px;
    pointer-events: none;
}

/* --- availability + thickness notices --- */

.quoteandcut-step-review__avail,
.quoteandcut-step-review__thick {
    margin: 6px 0;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 5px;
    background: #fdf4e3;
    border: 1px solid #ecd9b0;
    color: #8a5d00;
}


/* --- part header attention badge (rejected STEP uploads) --- */

.quoteandcut-step-status-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    border-radius: 999px;
    background: #fbe9e9;
    border: 1px solid #e5b4b4;
    color: #a12f2f;
    vertical-align: middle;
}

/* --- folded view inside the preview lightbox (in-stage layer) --- */

.quoteandcut-step-lightbox-fold {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 5;
}

.quoteandcut-step-lightbox-fold.is-visible {
    display: flex;
}

.quoteandcut-step-lightbox-fold .quoteandcut-step-preview__hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
}

.quoteandcut-step-lightbox-fold .quoteandcut-step-preview__play {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.quoteandcut-step-lightbox-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    border: 1px solid #c6ccd4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #2c3745;
    cursor: pointer;
}

.quoteandcut-step-lightbox-toggle:hover {
    background: #f0f4f9;
    border-color: #9fb0c4;
}
