/**
 * Loophole - My Account Quotes Styling
 */

/* Quote Timeline Styles */
.quote-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 40px 0;
    padding: 0 20px;
    position: relative;
}

.quote-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 120px);
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 140px;
    z-index: 2;
    transform: scale(0.75);
}

.timeline-step.active {
    transform: none;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #999;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.timeline-step.completed .step-circle {
    background: #9fa9ff;
    border-color: #9fa9ff;
    color: white;
}

.timeline-step.completed .step-title {
    color: #999999;
}

.timeline-step.active .step-circle {
    background: #4353ff;
    border-color: #4353ff;
    color: white;
    box-shadow: 0 0 0 4px rgba(67, 83, 255, 0.2);
}

.step-content {
    text-align: center;
}

.step-content .step-number {
    display: none; /* Hide duplicate numbers since they're in the circle */
}

.step-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Flagged Quote Timeline Styles */
.quote-timeline-container.flagged {
    position: relative;
    margin-bottom: 40px;
}

.quote-timeline.blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.flagged-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.flagged-message {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 30px;
    max-width: 600px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .quote-timeline {
        margin: 0 0px 30px 0px;
        padding: 0;
    }
    
    .quote-timeline::before {
        width: calc(100% - 80px);
        top: 16px;
    }
    
    .timeline-step {
        max-width: 80px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .step-title {
        font-size: 11px;
        line-height: 1.1;
        white-space: pre-line;
    }

    .status-badge {
        position: absolute;
        top: 155px;
        right: 30px;
        font-size: 11px !important;
    }
    .status-badge.flagged {
        position: absolute;
        top: 165px;
        right: 30px;
        font-size: 11px !important;
    }
    .status-badge.declined,
    .status-badge.expired,
    .status-badge.accepted,
    .status-badge.store-declined {
        position: absolute;
        top: 65px;
        right: 30px;
        font-size: 11px !important;
    }
    
    /* Flagged message mobile styles */
    .flagged-message {
        padding: 15px 20px;
        font-size: 13px;
        margin: 0 10px;
    }
}

/* Additional Context Section Styles */
.additional-context-section {
    margin-top: 20px;
}

.context-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0 15px 0;
}

.context-prompt {
    margin-bottom: 15px;
}

.context-question {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.optional-text {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    font-style: italic;
}

.add-context-btn, .edit-context-btn {
    background: none;
    border: none;
    color: #4353ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.add-context-btn:hover, .edit-context-btn:hover {
    color: #3142cc;
    text-decoration: underline;
}

.existing-context {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.context-content {
    color: #5c5c5c;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-style: italic;
}

.context-editor {
    margin-top: 15px;
}

.context-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
}

.context-textarea:focus {
    outline: none;
    border-color: #4353ff;
    box-shadow: 0 0 0 2px rgba(67, 83, 255, 0.1);
}

.context-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.save-context-btn, .cancel-context-btn {
    padding: 8px 16px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-context-btn {
    background: #4353ff;
    color: white;
    border-color: #4353ff;
}

.save-context-btn:hover {
    background: #3142cc;
    border-color: #3142cc;
}

.cancel-context-btn {
    background: white;
    color: #666;
}

.cancel-context-btn:hover {
    background: #f6f8fa;
    border-color: #b3b3b3;
}

/* Quote Bubble Navigation */
.loophole-quotes-bubble {
    background-color: #4353ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Problems Bubble Navigation */
.loophole-problems-bubble {
    background-color: #4353ff;
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 0px 6px 0px 5px;
}

/* Problems Count Badge for Mobile Navigation */
.loophole-problems-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #4353ff;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(67, 83, 255, 0.3);
    transition: all 0.3s ease;
}

/* Quotes Table Styles - Matching Login History Design */
.loophole-quotes-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
    background: #fff;
}

.loophole-quotes-table thead {
    background-color: #4353ff;
    color: white;
}

.loophole-quotes-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px !important;
}

/* Prevent table headers from changing color on hover */
.loophole-quotes-table th:hover {
    background-color: #4353ff;
}

.loophole-quotes-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px !important;
}

/* Set column widths */
.loophole-quotes-table th.status-column,
.loophole-quotes-table td.status-column {
    width: 145px;
}

/* Prevent pointer events on table headers */
.loophole-quotes-table th {
    pointer-events: none;
}

.loophole-quotes-table tr:hover {
    background-color: #f6f9fc;
    transition: background-color 0.2s ease;
}

.loophole-quotes-table tr:last-child td {
    border-bottom: none;
}

/* Quote meta styling for quote number and date */
.quote-meta {
    font-size: 12px !important;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* Main Quote Container */
.intake-quote-details {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Header with Quote Info */
.quote-header-new {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-info {
    flex: 1;
}

.quote-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.quote-title {
    font-size: 25px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.quote-subtitle {
    color: #cccccc;
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
    width: fit-content;
    transition: all 0.4s ease;
    cursor: default;
}

@media (min-width: 601px) {
.quote-subtitle:hover {
    color: #666666;
    transition: all 0.4s ease;
}
}

.status-indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.status-badge {
    background: #d4f4dd;
    color: #0a7c42;
    padding: 6px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.declined {
    background: #ff9b9d;
    color: white;
}

.status-badge.expired {
    background: #ffb366;
    color: white;
}

.status-badge.accepted {
    background: #4CAF50;
    color: white;
}

.status-badge.flagged {
    background: #cc4018;
    color: white;
}

.status-badge.store-declined {
    background: #ff9b9d;
    color: white;
}

.expire-date {
    font-size: 13px;
    color: #9fa9ff;
    font-weight: 600;
}

/* Two Column Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 30px;
}

/* Left Column - Details */
.details-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards */
.quote-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.quote-card.problem-link-card {
    border-radius: 0;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #4254ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Situation Details */
.situation-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Desired Outcome */
.desired-outcome {
    background: #f0f4ff;
    border-left: 3px solid #4353ff;
    padding: 16px;
    border-radius: 0 8px 8px 0;
}

.desired-outcome-label {
    font-size: 12px;
    font-weight: 600;
    color: #4353ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.desired-outcome-text {
    color: #333;
    position: relative;
    line-height: 1.3;
}

.lma-desired-outcome-card-editable {
    cursor: pointer;
}

.lma-desired-outcome-current {
    display: block;
}

.lma-desired-outcome-current-strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
}

.lma-desired-outcome-pending-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    flex-direction: column;
}

.lma-desired-outcome-pending-badge {
    flex-shrink: 0;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.lma-desired-outcome-pending-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.outcome-disclaimer {
    position: absolute;
    bottom: -20px;
    right: -12px;
    font-size: 8px;
    color: #999999;
    font-style: italic;
    pointer-events: none;
}

/* Q&A Section */
.qa-item {
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 16px;
}

.qa-item:last-child {
    margin-bottom: 0;
}

.question {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.answer {
    color: #666;
    font-size: 15px;
}

/* Right Column - Pricing */
.pricing-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #4353ff;
    overflow: hidden;
}

.pricing-header {
    background: linear-gradient(135deg, #4353ff, #6b7aff);
    color: white;
    padding: 20px;
    text-align: center;
}

.service-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
}

.pricing-body {
    padding: 24px;
}

.includes-section {
    margin-bottom: 24px;
}

.includes-title {
    font-size: 14px;
    color: #4254ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.includes-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.check-icon {
    color: #4353ff;
    font-size: 18px;
    margin-top: 2px;
}

/* Step styling for "How It Works" section in pricing card */
.includes-item .step-number {
    background: #4353ff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.includes-item .step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.includes-item .step-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.3;
}

.includes-item .step-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.action-buttons,
.quote-actions {
    display: flex;
    gap: 12px;
}

button.button.btn-quote.btn-secondary.decline-quote {
    min-height: 30px;
}

.btn-quote {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: #4353ff;
    color: white;
}

.btn-primary:hover {
    background: #3344ee;
    box-shadow: 0 4px 12px rgba(67, 83, 255, 0.3);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.checkout-note {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* Modal Styles */
.workflow-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.workflow-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.workflow-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.workflow-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.workflow-modal-body {
    padding: 24px;
}

.workflow-disclaimer {
    background: #fff9e6;
    border: 1px solid #ffdc7d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.workflow-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.workflow-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Step styling for workflow modal */
.workflow-step .step-number {
    width: 36px;
    height: 36px;
    background: #4353ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.workflow-step .step-content {
    flex: 1;
    text-align: left;
}

.workflow-step .step-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-size: 16px;
}

.workflow-step .step-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.step-credit {
    color: #4353ff;
    font-size: 13px;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-column {
        position: static;
    }
    
    .quote-header-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .status-indicators {
        align-items: flex-start;
        width: 100%;
    }

    .context-textarea {
        font-size: 16px;
    }
}

/* Quote Confirmation Modal */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.quote-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    text-align: center;
    animation: quoteModalFadeIn 0.3s ease;
    border: none;
}

.quote-modal-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #252525;
}

.quote-modal-message {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.quote-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.quote-modal-btn {
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    border: none;
    font-size: 15px;
    transition: all 0.2s ease;
    min-width: 100px;
}

.quote-accept-confirm {
    background-color: #4353ff;
    color: white;
    box-shadow: 0 2px 8px rgba(67, 83, 255, 0.3);
}

.quote-accept-confirm:hover {
    background-color: #3a49e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 83, 255, 0.4);
}

.quote-decline-confirm {
    background-color: #ff000063;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.quote-decline-confirm:hover {
    background-color: #ff0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.quote-modal-cancel {
    background-color: #f5f5f5;
    color: #333;
}

.quote-modal-cancel:hover {
    background-color: #eaeaea;
}

@keyframes quoteModalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-modal-disclaimer {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    margin-top: 15px;
    text-align: center;
    margin-bottom: -20px;
}

.quote-modal-disclaimer a {
    color: #4353ff;
    text-decoration: none;
}

.lma-quote-edit-outcome-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.quote-desired-outcome-dialog .quote-modal-content.lma-quote-modal-sm {
    max-width: 450px;
    padding: 0;
    text-align: left;
}

.quote-desired-outcome-dialog .lma-quote-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.quote-desired-outcome-dialog .lma-quote-modal-header .quote-modal-title {
    margin: 0;
}

.quote-desired-outcome-dialog .lma-quote-modal-body {
    padding: 24px;
}

.quote-desired-outcome-dialog .lma-quote-modal-footer {
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-top: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.quote-desired-outcome-dialog .quote-modal-btn {
    min-width: auto;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transform: none !important;
    box-shadow: none !important;
}

.quote-desired-outcome-dialog .quote-edit-outcome-submit {
    background: #4353ff;
    color: #fff;
}

.quote-desired-outcome-dialog .quote-edit-outcome-submit:hover:not(:disabled) {
    background: #3444e6;
}

.quote-desired-outcome-dialog .quote-modal-cancel {
    background: #f3f4f6;
    color: #374151;
}

.quote-desired-outcome-dialog .quote-modal-cancel:hover {
    background: #e5e7eb;
}

.lma-quote-edit-outcome-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.lma-quote-edit-outcome-textarea {
    width: 100%;
    min-height: 110px;
    resize: none;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    color: #333;
}

.lma-quote-edit-outcome-textarea:focus {
    outline: none;
    border-color: #4353ff;
    box-shadow: 0 0 0 2px rgba(67, 83, 255, 0.1);
}

.quote-edit-outcome-submit:disabled {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.quote-edit-outcome-submit:disabled:hover {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    transform: none !important;
    box-shadow: none !important;
}

.lma-quote-edit-outcome-error {
    margin-top: 10px;
    color: #c62828;
    font-size: 13px;
    text-align: left;
}

.lma-quote-processing-body {
    min-height: 110px;
    display: flex;
    align-items: center;
}

.lma-quote-processing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.lma-quote-processing-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #dbe2ff;
    border-top-color: #4353ff;
    border-radius: 50%;
    animation: lmaQuoteSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.lma-quote-result-message {
    margin: 0;
    text-align: left;
}

@keyframes lmaQuoteSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Legacy quote styles for non-intake quotes */
.quote-details {
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    margin-bottom: 30px;
}

.quote-details h2 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    padding: 0 0 10px;
    border-bottom: 1px solid #eaeaea;
}

.quote-info-section {
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.quote-order-info {
    margin: 0 0 15px;
    font-size: 15px;
}

.quote-expiration-date {
    font-size: 16px;
    margin: 10px 0;
}

.quote-expiration-date strong {
    color: #1e85be;
    font-weight: 600;
}

.quote-ready-message {
    background-color: #e7f5ff;
    border-left: 3px solid #1e85be;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 3px;
}

.quote-ready-message p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

.quote-section-heading {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.quote-products-section {
    margin-bottom: 30px;
}

.shop_table.order_details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shop_table.order_details th,
.shop_table.order_details td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.shop_table.order_details thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.shop_table.order_details .product-total {
    text-align: right;
}

.shop_table.order_details tfoot th {
    text-align: right;
    font-weight: normal;
}

.shop_table.order_details tfoot tr:last-child th,
.shop_table.order_details tfoot tr:last-child td {
    font-weight: 600;
    color: #1e85be;
}

.quote-conditions-section {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.quote-conditions-section .quote-section-heading {
    margin-top: 0;
    border-bottom-color: #e1e1e1;
}

.quote-conditions-content {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.quote-conditions-content p:first-child {
    margin-top: 0;
}

.quote-conditions-content p:last-child {
    margin-bottom: 0;
}

.quote-notes-section {
    margin-bottom: 30px;
}

.quote-notes-content {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px 20px;
    font-size: 15px;
    line-height: 1.6;
}

.quote-actions {
    margin-top: 25px;
    display: flex;
    text-align: right;
    gap: 15px;
    justify-content: flex-end;
}

.button.accept-quote {
    background-color: #4353ff;
    color: #ffffff;
    border: none;
    padding: 10px 20px !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button.accept-quote:hover {
    background-color: #45a049;
}

.button.decline-quote {
    background-color: #ff000063 !important;
    color: #ffffff;
    border: none;
    padding: 10px 20px !important;
    border-radius: 7px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button.decline-quote:hover {
    background-color: #ff0000 !important;
}

.processing-action {
    display: inline-block;
    margin-left: 15px;
    color: #666;
    font-style: italic;
}

.quote-action-success {
    background-color: #e8f5e9;
    border-left: 3px solid #4CAF50;
    padding: 12px 15px;
    color: #2e7d32;
    border-radius: 3px;
    font-weight: 500;
}

.quote-action-error {
    background-color: #ffebee;
    border-left: 3px solid #f44336;
    padding: 12px 15px;
    color: #c62828;
    border-radius: 3px;
    font-weight: 500;
    margin-top: 15px;
}

/* Workflow Card Styles */
.workflow-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.workflow-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin: 0;
    text-transform: none;
}

.view-details-text {
    color: #4353ff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

/* Problem Link Card - for accepted quotes */
.problem-link-card .problem-link-message {
    color: #444;
    margin: 8px 0 16px 0;
    font-size: 14px;
    line-height: 1.3;
}

.view-problem-btn {
    display: inline-block;
    background: #4353ff;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.view-problem-btn:hover {
    background: #3444d9;
    color: white;
}

/* Decline Quote Modal Form Styles */
.quote-modal-form {
    margin-bottom: 25px;
    text-align: left;
}

.decline-reason-group {
    margin-bottom: 15px;
}

.decline-reason-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'><path fill='%23666' d='m0,1l2,2l2-2l0-1l-4,0l0,1z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
}

.decline-reason-select:focus {
    outline: none;
    border-color: #4353ff;
    box-shadow: 0 0 0 2px rgba(67, 83, 255, 0.1);
}

.decline-other-group {
    margin-top: 15px;
}

.decline-other-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    resize: none;
    box-sizing: border-box;
    color: #333;
    min-height: 60px;
}

.decline-other-textarea:focus {
    outline: none;
    border-color: #4353ff;
    box-shadow: 0 0 0 2px rgba(67, 83, 255, 0.1);
}

.decline-other-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.quote-decline-confirm:disabled {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.quote-decline-confirm:disabled:hover {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile responsive for decline modal */
@media (max-width: 600px) {
    .quote-desired-outcome-dialog .quote-modal-content.lma-quote-modal-sm {
        max-width: 100%;
        width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .quote-desired-outcome-dialog .lma-quote-modal-header {
        padding: 20px;
        flex-shrink: 0;
    }

    .quote-desired-outcome-dialog .lma-quote-modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }

    .quote-desired-outcome-dialog .lma-quote-modal-footer {
        padding: 16px 20px;
        flex-shrink: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .decline-reason-select,
    .decline-other-textarea,
    .lma-quote-edit-outcome-textarea {
        font-size: 16px;
    }
}

/* Balance Warning Styles */
.quote-balance-warning {
    margin-top: 20px;
    margin-bottom: 20px;
}

.balance-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.balance-notice h4 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.balance-notice p {
    color: #856404;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.balance-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.balance-actions .button {
    min-width: 120px;
    text-align: center;
}

.balance-actions .button-primary {
    background-color: #4353ff;
    border-color: #4353ff;
    color: white;
}

.balance-actions .button-primary:hover {
    background-color: #3142d8;
    border-color: #3142d8;
}

a.button.button-primary {
    width: 100% !important;
    min-height: 30px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 10px !important;
}

/* Mobile responsive for balance warning */
@media (max-width: 600px) {
    .balance-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .balance-actions .button {
        width: 100%;
        min-width: auto;
        font-size: 16px; /* Prevent iOS auto-zoom */
    }
    
    .balance-notice {
        padding: 15px;
    }
    
    .balance-notice h4 {
        font-size: 16px;
    }
    
    .balance-notice p {
        font-size: 13px;
    }
}

/* Account Status Warning Styles */
.quote-account-warning {
    margin-top: 20px;
    margin-bottom: 20px;
}

.account-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.account-notice.pending {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.account-notice.frozen {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.account-notice.business-upgrade {
    background: #e7f3ff;
    border-color: #b3d9ff;
}

.account-notice h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.account-notice.pending h4 {
    color: #856404;
}

.account-notice.frozen h4 {
    color: #721c24;
}

.account-notice.business-upgrade h4 {
    color: #0066cc;
}

.account-notice p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

.account-notice.pending p {
    color: #856404;
}

.account-notice.frozen p {
    color: #721c24;
}

.account-notice.business-upgrade p {
    color: #0066cc;
}

.account-notice:last-child p {
    margin-bottom: 0;
}

.account-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.account-actions .button {
    min-width: 120px;
    text-align: center;
}

.account-actions .button-primary {
    background-color: #4353ff;
    border-color: #4353ff;
    color: white;
}

.account-actions .button-primary:hover {
    background-color: #3142d8;
    border-color: #3142d8;
}

/* Mobile responsive for account warnings */
@media (max-width: 600px) {
    .account-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .account-actions .button {
        width: 100%;
        min-width: auto;
        font-size: 16px; /* Prevent iOS auto-zoom */
    }
    
    .account-notice {
        padding: 15px;
    }
    
    .account-notice p {
        font-size: 13px;
    }
}