.quote-widget {
    padding: 64px 0;
    background: #ffffff;
    border-top: 1px solid var(--border, #e5e7eb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    scroll-margin-top: 96px;
}

.quote-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.quote-copy {
    padding: 12px 0;
}

.quote-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--primary, #ff6b35);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.quote-copy h2 {
    font-size: 38px;
    line-height: 1.12;
    margin-bottom: 16px;
}

.quote-copy p {
    color: var(--muted, #6b7280);
    font-size: 17px;
    max-width: 560px;
}

.quote-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.quote-examples span {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    color: #374151;
    font-size: 13px;
}

.quote-form {
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 22px;
}

.quote-textarea {
    width: 100%;
    min-height: 144px;
    resize: vertical;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px;
    font: inherit;
    background: white;
    color: var(--text, #1a1a2e);
}

.quote-textarea:focus,
.quote-file:focus {
    outline: 2px solid rgba(255, 107, 53, 0.22);
    border-color: var(--primary, #ff6b35);
}

.quote-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 12px;
}

.quote-file {
    min-width: 0;
    padding: 11px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: white;
    font: inherit;
}

.quote-submit {
    border: none;
    cursor: pointer;
    background: #eeeeee;
    color: #111827;
    box-shadow: none;
}

.quote-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.quote-submit.is-ready {
    background: var(--primary, #ff6b35);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.22);
    cursor: pointer;
}

.quote-submit.is-ready:disabled {
    cursor: wait;
}

.quote-note {
    margin-top: 10px;
    color: var(--muted, #6b7280);
    font-size: 13px;
}

.quote-result {
    display: none;
    margin-top: 18px;
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
}

.quote-result.active {
    display: block;
}

.quote-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: #fff7ed;
}

.quote-total {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary, #ff6b35);
    white-space: nowrap;
}

.quote-items {
    max-height: 280px;
    overflow: auto;
}

.quote-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
}

.quote-row-name {
    font-weight: 700;
}

.quote-row-meta {
    color: var(--muted, #6b7280);
    font-size: 13px;
    margin-top: 2px;
}

.quote-row-price {
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.quote-unmatched {
    padding: 14px 16px;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    color: #92400e;
    font-size: 14px;
}

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border, #e5e7eb);
}

.quote-actions .quote-order {
    background: var(--primary, #ff6b35);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.22);
}

.quote-actions .btn-secondary {
    background: #ffffff;
    color: var(--primary, #f97316);
    border: 1px solid rgba(249, 115, 22, 0.28);
    box-shadow: none;
}

.quote-error {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.quote-error.active {
    display: block;
}

@media (max-width: 860px) {
    .quote-panel {
        grid-template-columns: 1fr;
    }

    .quote-copy h2 {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .quote-widget {
        padding: 28px 0 42px;
        border-top: 0;
    }

    .quote-panel {
        gap: 18px;
    }

    .quote-copy {
        padding: 0;
    }

    .quote-controls {
        grid-template-columns: 1fr;
    }

    .quote-form {
        padding: 14px;
        margin: 0 -2px;
    }

    .quote-textarea {
        min-height: 120px;
    }

    .quote-summary,
    .quote-actions,
    .quote-row,
    .quote-unmatched {
        padding-left: 12px;
        padding-right: 12px;
    }

    .quote-submit,
    .quote-actions .btn {
        width: 100%;
    }

    .quote-summary,
    .quote-row {
        grid-template-columns: 1fr;
    }

    .quote-row-price {
        text-align: left;
    }
}
