.moving-quote-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.widget-header {
    background: linear-gradient(135deg, #017301 0%, #61993B 100%);
    color: white;
    padding: 20px 24px;
}

.widget-header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.widget-header .header-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.widget-header h2 {
    margin: 0;
    font-size: 21.6px;
    font-weight: 600;
    text-align: center;
	color: white !important;
}

.widget-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
    font-size: 14px;
    color: #6c757d;
}

/* Make step names larger and bold */
.step .step-text {
	font-size: 16px;
	font-weight: 700;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #017301;
    color: white;
}

.step.completed .step-number {
    background: #0871B4;
    color: white;
}

.step.active {
    color: #017301;
}

.step.completed {
    color: #0871B4;
}

.widget-content {
    padding: 30px;
    min-height: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #017301;
    box-shadow: 0 0 0 3px rgba(1, 115, 1, 0.1);
}

.furniture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.furniture-item {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.furniture-item:hover {
    border-color: #61993B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.furniture-item.selected {
    border-color: #017301;
    background: #017301;
    color: white;
}

.furniture-image {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.furniture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.furniture-image-placeholder {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.6;
}

.furniture-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.furniture-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.furniture-item p {
    margin: 0 0 10px 0;
    font-size: 12px;
    opacity: 0.8;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.furniture-item:not(.selected) .quantity-btn {
    background: #61993B;
    color: white;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.volume-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.volume-summary h3 {
    margin: 0 0 10px 0;
    color: #017301;
    font-size: 18px;
}

.volume-display {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
}

.navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #017301;
    color: white;
}

.btn-primary:hover {
    background: #61993B;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-section h3 {
    margin: 0 0 15px 0;
    color: #017301;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 14px;
}

.summary-item strong {
    color: #495057;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group input,
.form-group select {
    transition: all 0.3s ease;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
    background-color: #fff5f5;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.error .error-message {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-color: #f8fff8;
}

.form-group input[type="email"]:invalid:not(:placeholder-shown),
.form-group input[name*="postcode"]:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Enhanced API validation error styling */
.form-group input.api-validation-error {
    background-color: #fff5f5 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
    animation: validationError 0.4s ease-in-out;
}

/* Front-end validation error styling (lighter) */
.form-group input.frontend-validation-error {
    background-color: #ffeaea !important;
    border-color: #dc3545 !important;
    animation: validationError 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes validationError {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.moving-quote-widget .toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-bottom: 6px !important; /* tighter vertical spacing */
    font-weight: 500;
    color: #495057;
}

.moving-quote-widget .toggle-label span {
	font-size: 12px !important;
	line-height: 1.1 !important; /* tighter line height */
}

/* Ensure mobile rules don't shrink these */
@media (max-width: 768px) {
	.moving-quote-widget .toggle-label {
		margin-bottom: 6px !important;
	}
	.moving-quote-widget .toggle-label span {
		font-size: 12px !important;
		line-height: 1.1 !important;
	}
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 15px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #017301;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.summary-section h4 {
    margin: 0 0 15px 0;
    color: #017301;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-bottom: 0;
    cursor: pointer;
    accent-color: #017301;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #495057;
}

/* Preset buttons styling */
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.preset-button {
    padding: 10px 14px;
    background: #5F9A3C;
    border: 1px solid #5F9A3C;
    border-radius: 8px;
    color: white;
    font-size: 12px !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    flex: 1;
    max-width: 150px;
    min-width: 100px;
    text-align: center;
}

.preset-button:hover {
    background: #017301;
    border-color: #017301;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 115, 1, 0.2);
}

.preset-button:active {
    transform: translateY(0);
}

.clear-selection-button {
    padding: 10px 14px;
    background: #2477a3;
    border: 1px solid #2477a3;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 150px;
    min-width: 100px;
    text-align: center;
}

.clear-selection-button:hover {
    background: #1e5f7f;
    border-color: #1e5f7f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 119, 163, 0.2);
}

.clear-selection-button:active {
    transform: translateY(0);
}

.preset-buttons h5 {
    width: 100%;
    margin: 0 0 15px 0;
    color: #505050;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
}

.furniture-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e1e5e9;
    margin: 20px 0 0 0;
    gap: 5px;
}

.furniture-tab {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.furniture-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.furniture-tab.active {
    background: #017301;
    color: white;
    border-color: #017301;
    border-bottom: 2px solid #017301;
}

.furniture-tab-content {
    padding: 20px 0;
    min-height: 200px;
}

.furniture-tab-panel {
    display: none;
}

.furniture-tab-panel.active {
    display: block;
}

@media (max-width: 1024px) {
    .moving-quote-widget {
        max-width: 700px;
        margin: 15px;
    }

    .furniture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .furniture-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        gap: 2px;
    }

    .furniture-tab {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
    }

    .preset-buttons {
        padding: 15px;
        gap: 8px;
    }

    .preset-button {
        min-width: 90px;
        padding: 8px 10px;
        font-size: 12px !important;
        font-weight: bold;
    }

    .clear-selection-button {
        min-width: 90px;
        padding: 8px 10px;
        font-size: 12px !important;
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .moving-quote-widget {
        margin: 10px;
        border-radius: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .furniture-grid {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        padding: 15px 10px;
    }

    .step {
        margin: 0 5px;
        font-size: 12px;
    }

    .step-text {
        display: none;
    }

    .widget-content {
        padding: 20px;
    }

    .navigation {
        padding: 15px 20px;
    }

    .preset-buttons {
        padding: 10px;
        margin: 15px 0;
    }

    .preset-button {
        min-width: 70px;
        padding: 6px 8px;
        font-size: 8px !important;
        font-weight: bold;
        flex: 1;
    }

    .clear-selection-button {
        min-width: 70px;
        padding: 6px 8px;
        font-size: 8px !important;
        font-weight: bold;
        flex: 1;
    }

    .preset-buttons h5 {
        font-size: 16px;
        font-weight: bold;
        margin: 0 0 10px 0;
    }

    /* COMPREHENSIVE MOBILE FONT SIZE REDUCTION - 25% SMALLER */
    
    /* General text elements */
    .moving-quote-widget {
        font-size: 12px !important;
    }
    
    .moving-quote-widget h1 {
        font-size: 18px !important;
    }
    
    .moving-quote-widget h2 {
        font-size: 16px !important;
    }
    
    .moving-quote-widget h3 {
        font-size: 14px !important;
    }
    
    .moving-quote-widget h4 {
        font-size: 12px !important;
    }
    
    .moving-quote-widget p {
        font-size: 11px !important;
    }
    
    .moving-quote-widget span {
        font-size: 10px !important;
    }
    
    .moving-quote-widget div {
        font-size: 11px !important;
    }
    
    /* Buttons - override the iOS Safari zoom prevention */
    .moving-quote-widget button,
    .moving-quote-widget .btn {
        font-size: 11px !important;
        padding: 8px 16px !important;
    }
    
    .moving-quote-widget .btn-primary,
    .moving-quote-widget .btn-secondary {
        font-size: 10px !important;
        padding: 6px 12px !important;
    }
    
    /* Strong/bold text */
    .moving-quote-widget strong {
        font-size: 11px !important;
    }
}

/* Cost breakdown table responsive styles */
.cost-breakdown-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e1e5e9;
    text-align: center;
}

.cost-breakdown-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #f8f9fa;
    border-bottom: 2px solid #e1e5e9;
    font-weight: bold;
    text-align: center;
}

.cost-breakdown-total {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #f0f8ff;
    border-top: 2px solid #017301;
    font-weight: bold;
    text-align: center;
}

.cost-breakdown-cell {
    padding: 15px;
    border-right: 1px solid #e1e5e9;
}

.cost-breakdown-cell:last-child {
    border-right: none;
}

.cost-breakdown-cell.left-align {
    text-align: left;
}

/* Enhanced mobile responsiveness with proper font scaling */
@media (max-width: 768px) {
    /* Responsive font sizing for mobile - REDUCED BY 25% */
    .cost-breakdown-table,
    .cost-breakdown-header,
    .cost-breakdown-total {
        font-size: 9px !important;
    }
    
    .cost-breakdown-cell {
        padding: 4px 6px !important;
        font-size: 9px !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Smaller font for subtext (like packing details) */
    .cost-breakdown-cell span {
        font-size: 7px !important;
        line-height: 1.1;
    }
    
    /* Adjust grid column proportions for mobile */
    .cost-breakdown-table,
    .cost-breakdown-header,
    .cost-breakdown-total {
        grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
    }
    
    .cost-breakdown-cell.left-align {
        font-size: 8px !important;
        font-weight: bold;
    }
    
    .cost-breakdown-cell.left-align strong {
        font-size: 9px !important;
        display: block;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - even smaller fonts */
    .cost-breakdown-table,
    .cost-breakdown-header,
    .cost-breakdown-total {
        font-size: 8px !important;
    }
    
    .cost-breakdown-cell {
        padding: 3px 4px !important;
        font-size: 8px !important;
    }
    
    .cost-breakdown-cell.left-align strong {
        font-size: 8px !important;
    }
    
    .cost-breakdown-cell span {
        font-size: 6px !important;
    }
    
    /* Tighter grid for very small screens */
    .cost-breakdown-table,
    .cost-breakdown-header,
    .cost-breakdown-total {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr !important;
    }
    
    /* Even smaller general text for tiny screens */
    .moving-quote-widget {
        font-size: 10px !important;
    }
    
    .moving-quote-widget h3 {
        font-size: 12px !important;
    }
    
    .moving-quote-widget h4 {
        font-size: 10px !important;
    }
    
    .moving-quote-widget p {
        font-size: 9px !important;
    }
    
    .moving-quote-widget button,
    .moving-quote-widget .btn {
        font-size: 9px !important;
        padding: 6px 12px !important;
    }
}

/* Override iOS Safari zoom prevention only for form inputs, not all buttons */
input, select, textarea {
    font-size: 16px !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Allow buttons to be responsive on mobile */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 14px !important;
    }
}

.quantity-controls {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* WordPress plugin specific font size overrides - reduce overall text size */
.moving-quote-widget table {
    font-size: 12px !important;
}

.moving-quote-widget table th {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 8px !important;
}

.moving-quote-widget table td {
    font-size: 12px !important;
    padding: 6px 8px !important;
    line-height: 1.3 !important;
}

.moving-quote-widget h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.moving-quote-widget h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

/* Estimation display specific styles */
.moving-quote-widget .cost-breakdown-container {
    font-size: 11px !important;
}

.moving-quote-widget .cost-breakdown-container table {
    font-size: 11px !important;
}

.moving-quote-widget .cost-breakdown-container td,
.moving-quote-widget .cost-breakdown-container th {
    font-size: 11px !important;
    padding: 4px 6px !important;
    line-height: 1.2 !important;
}

/* Keep Total Estimated Cost section large and prominent */
.moving-quote-widget div[style*="background: linear-gradient(135deg, #017301"] h3 {
    font-size: 28px !important;
}

.moving-quote-widget div[style*="background: linear-gradient(135deg, #017301"] p {
    font-size: 42px !important;
    font-weight: bold !important;
}

/* Packing material pricelist styles */
.moving-quote-widget .packing-material-table {
    font-size: 11px !important;
}

.moving-quote-widget .packing-material-table td,
.moving-quote-widget .packing-material-table th {
    font-size: 11px !important;
    padding: 4px 6px !important;
    line-height: 1.2 !important;
}

/* Estimation details styles */
.moving-quote-widget .estimation-details {
    font-size: 12px !important;
}

.moving-quote-widget .estimation-details div {
    font-size: 12px !important;
    padding: 6px 0 !important;
}

/* General paragraph and text overrides */
.moving-quote-widget p {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.moving-quote-widget span {
    font-size: 11px !important;
}

.moving-quote-widget strong {
    font-size: 11px !important;
}

/* Cost breakdown specific overrides - smaller text with higher specificity */
.moving-quote-widget table td,
.moving-quote-widget table.cost-breakdown td,
.moving-quote-widget div table td,
.moving-quote-widget * table td {
    font-size: 10px !important;
    padding: 3px 5px !important;
    line-height: 1.1 !important;
}

.moving-quote-widget table th,
.moving-quote-widget table.cost-breakdown th,
.moving-quote-widget div table th,
.moving-quote-widget * table th {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 5px !important;
}

/* Ultra-specific overrides for cost breakdown content */
.moving-quote-widget div[style] table td,
.moving-quote-widget div[style] table th {
    font-size: 10px !important;
}

.moving-quote-widget div[style] table th {
    font-size: 11px !important;
}

/* Override any WordPress theme table styles */
body .moving-quote-widget table,
body .moving-quote-widget table td,
body .moving-quote-widget table th {
    font-size: 10px !important;
}

body .moving-quote-widget table th {
    font-size: 11px !important;
}

/* Additional WordPress theme overrides */
.moving-quote-widget .cost-breakdown-table,
.moving-quote-widget .cost-breakdown-header,
.moving-quote-widget .cost-breakdown-total,
.moving-quote-widget .cost-breakdown-cell {
    font-size: 10px !important;
}

/* Unified Estimation Display Styling System */
.estimation-header {
    background: linear-gradient(135deg, #017301 0%, #61993B 100%);
    color: white;
    padding: 20px 24px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.estimation-header .header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.estimation-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

/* Guard against theme overrides on client sites */
.moving-quote-widget .estimation-header h2 {
	color: white !important;
}

/* Main section titles - reduced to 16px */
.moving-quote-widget .estimation-section-title,
.estimation-section-title {
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 0 15px 0 !important;
}

/* Ensure compact rows inside the two-column recap cards */
.moving-quote-widget .recap-row {
	font-size: 14px !important;
	line-height: 1.2 !important;
	margin: 2px 0 !important;
	padding: 4px 0 !important;
}

/* Print/PDF optimizations */
@media print {
	.moving-quote-widget * {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.moving-quote-widget .cost-breakdown-title,
	.moving-quote-widget .estimation-section-title {
		color: #017301 !important;
	}

	/* Avoid awkward splits */
	.moving-quote-widget .cost-breakdown-total,
	.moving-quote-widget .estimation-header,
	.moving-quote-widget .recap-row,
	.moving-quote-widget .cost-breakdown-table,
	.moving-quote-widget .cost-section,
	.moving-quote-widget .estimation-section {
		page-break-inside: avoid;
	}

	/* Keep the new two-column recap on one page when possible */
	.moving-quote-widget .two-column-recap {
		page-break-inside: avoid;
	}
}

/* Cost Breakdown title - reduced to 18px */
.moving-quote-widget .cost-breakdown-title,
.cost-breakdown-title {
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: white !important;
}

/* Main service titles - increased to 14px */
.moving-quote-widget .main-service-title,
.main-service-title {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Table headers - reduced to 14px */
.moving-quote-widget .table-header-text,
.table-header-text {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Service subtitles - 14px with proper spacing to prevent overlap */
.moving-quote-widget .service-subtitle,
.service-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    display: block !important;
}

/* Control the line break between title and subtitle */
.moving-quote-widget .main-service-title + br {
    line-height: 0.05 !important;
    margin: 0 !important;
    height: 1px !important;
    font-size: 1px !important;
}

/* Currency figures - reduced to 14px */
.moving-quote-widget .currency-figure,
.currency-figure {
    font-size: 14px !important;
    font-weight: normal !important;
}

/* Total section - reduced to 14px */
.moving-quote-widget .total-emphasis,
.total-emphasis {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Other charges title - reduced to 18px */
.moving-quote-widget .other-charges-title,
.other-charges-title {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Other charges items - increased to 14px */
.moving-quote-widget .other-charges-item,
.other-charges-item {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Section content styling - 14px for all content within specific sections */
.moving-quote-widget div[style*="background: #f0f8ff"] p,
.moving-quote-widget div[style*="background: #fff8dc"] p,
.moving-quote-widget div[style*="background: #fcfcf7"] p,
.moving-quote-widget div[style*="background: #fff"] p {
    font-size: 14px !important;
}

.moving-quote-widget div[style*="background: #f0f8ff"] strong,
.moving-quote-widget div[style*="background: #fff8dc"] strong,
.moving-quote-widget div[style*="background: #fcfcf7"] strong,
.moving-quote-widget div[style*="background: #fff"] strong {
    font-size: 14px !important;
}

/* Packing Material Pricelist table styling - force 14px with highest specificity */
.moving-quote-widget div[style*="background: #fcfcf7"] table,
.moving-quote-widget div[style*="background: #fcfcf7"] table td,
.moving-quote-widget div[style*="background: #fcfcf7"] table th,
.moving-quote-widget div[style*="background: #fcfcf7"] td,
.moving-quote-widget div[style*="background: #fcfcf7"] th {
    font-size: 14px !important;
}

/* Additional high-specificity selectors for packing material table */
body .moving-quote-widget div[style*="background: #fcfcf7"] table td,
body .moving-quote-widget div[style*="background: #fcfcf7"] table th,
body .moving-quote-widget div[style*="background: #fcfcf7"] td,
body .moving-quote-widget div[style*="background: #fcfcf7"] th {
    font-size: 14px !important;
}

/* Ultra-specific selectors to override any inline styles in packing material table */
.moving-quote-widget div[style*="background: #fcfcf7"] table[style] td[style],
.moving-quote-widget div[style*="background: #fcfcf7"] table[style] th[style],
.moving-quote-widget div[style*="background: #fcfcf7"] table tbody tr td,
.moving-quote-widget div[style*="background: #fcfcf7"] table thead tr th {
    font-size: 14px !important;
}

/* Estimation Details content styling */
.moving-quote-widget div[style*="background: #fff"] div[style*="display: flex"] span,
.moving-quote-widget div[style*="background: #fff"] div[style*="display: flex"] strong {
    font-size: 14px !important;
}

/* Cost breakdown table rows - fix alignment and borders */
.moving-quote-widget div[style*="display: grid"][style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    align-items: stretch !important;
}

/* Ensure all cells have same height and proper borders */
.moving-quote-widget div[style*="display: grid"][style*="grid-template-columns: 2fr 1fr 1fr 1fr"] > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

/* First column (description) should be left-aligned and top-aligned */
.moving-quote-widget div[style*="display: grid"][style*="grid-template-columns: 2fr 1fr 1fr 1fr"] > div:first-child {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
}

/* Target inline styled divs that contain tables */
.moving-quote-widget div[style*="background: #fff"] table,
.moving-quote-widget div[style*="background: white"] table,
.moving-quote-widget div[style*="border:"] table {
    font-size: 10px !important;
}

.moving-quote-widget div[style*="background: #fff"] table td,
.moving-quote-widget div[style*="background: white"] table td,
.moving-quote-widget div[style*="border:"] table td {
    font-size: 10px !important;
    padding: 3px 4px !important;
}

.moving-quote-widget div[style*="background: #fff"] table th,
.moving-quote-widget div[style*="background: white"] table th,
.moving-quote-widget div[style*="border:"] table th {
    font-size: 11px !important;
    padding: 4px 4px !important;
}

/* Compact spacing for WordPress */
.moving-quote-widget div[style*="padding"] {
    padding: 12px !important;
}

.moving-quote-widget div[style*="margin"] {
    margin: 8px 0 !important;
}

/* Header responsive styles */
@media (max-width: 768px) {
    .widget-header .header-logo {
        height: 35px;
    }
    
    .widget-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .widget-header {
        padding: 16px 20px;
    }
    
    .widget-header .header-content {
        gap: 12px;
    }
    
    .widget-header h2 {
        font-size: 16.2px;
        line-height: 1.3;
    }
    
    .widget-header .header-logo {
        height: 32px;
    }
}

/* Custom Confirmation Dialog Styles */
.kmqw-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.kmqw-confirmation-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    padding: 32px 24px 24px 24px;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e1e5e9;
}

.kmqw-confirmation-dialog-icon {
    text-align: center;
    margin-bottom: 20px;
}

.kmqw-confirmation-dialog-icon svg {
    width: 48px;
    height: 48px;
}

.kmqw-confirmation-dialog-body {
    padding: 0;
    text-align: center;
}

.kmqw-confirmation-dialog-body .main-question {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
}

.kmqw-confirmation-dialog-body .explanatory-text {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.kmqw-confirmation-dialog-footer {
    padding: 24px 0 0 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.kmqw-confirmation-dialog-footer .btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.kmqw-confirmation-dialog-footer .btn-confirm {
    background: #017301;
    color: white;
    text-transform: none;
}

.kmqw-confirmation-dialog-footer .btn-confirm:hover {
    background: #61993B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 115, 1, 0.3);
}

.kmqw-confirmation-dialog-footer .btn-cancel {
    background: #ff6b6b;
    color: white;
    border: none;
    text-transform: none;
}

.kmqw-confirmation-dialog-footer .btn-cancel:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .kmqw-confirmation-dialog {
        max-width: 90%;
        width: 90%;
        padding: 24px 20px 20px 20px;
    }
    
    .kmqw-confirmation-dialog-body .main-question {
        font-size: 16px;
    }
    
    .kmqw-confirmation-dialog-body .explanatory-text {
        font-size: 13px;
    }
    
    .kmqw-confirmation-dialog-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .kmqw-confirmation-dialog-footer .btn {
        max-width: 100%;
        width: 100%;
    }
}