/* ===========================================
   REDLINE 3D - Professional Theme
   Primary Red:        #F20B0F
   Deep Red:           #AC0307
   Near Black:         #06010C
   Metallic Light Gray:#D8D8D8
   Metallic Dark Gray: #949392
   =========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body { background: #E8E8E8; overflow: hidden; }

.app-container, .embed-container { display: grid; height: 100vh; gap: 0; }

.app-container { grid-template-columns: 380px 1fr 400px; }

.embed-container { grid-template-columns: 320px 1fr 320px; }

/* Side Panels - Light theme for outdoor readability */
.controls-panel, .pricing-panel { 
  background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
  overflow-y: auto; 
  padding: 20px;
  min-width: 0;
}

.controls-panel { 
  border-right: 3px solid #F20B0F;
  box-shadow: 5px 0 15px rgba(0,0,0,0.1);
  padding-bottom: 40px;
}

.pricing-panel { 
  border-left: 3px solid #F20B0F;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* 3D Viewer Container */
.viewer-container { 
  background: #D8D8D8; 
  position: relative;
  overflow: hidden;
  min-width: 0;
}

#canvas-container { width: 100%; height: 100%; }

/* Logo */
.logo { 
  margin-bottom: 20px; 
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, #06010C 0%, #1a1a1a 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.logo img {
  max-width: 180px;
  height: auto;
}

/* Typography */
h2 { 
  font-size: 18px; 
  font-weight: 700; 
  margin-bottom: 16px; 
  color: #06010C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fieldsets */
fieldset { 
  border: 2px solid #D8D8D8; 
  border-radius: 8px; 
  padding: 12px; 
  margin-bottom: 12px; 
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

fieldset:hover {
  border-color: #F20B0F;
}

legend { 
  font-size: 11px; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  color: #F20B0F; 
  padding: 0 8px;
  background: #FFFFFF;
}

label { 
  display: block; 
  font-size: 12px; 
  font-weight: 600; 
  color: #06010C; 
  margin-bottom: 8px; 
}

/* Help Button */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #F20B0F;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
}

.help-btn:hover {
  background: #AC0307;
}

.help-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #06010C;
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: normal;
  white-space: normal;
  width: 220px;
  z-index: 1000;
  margin-bottom: 6px;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Form Inputs */
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; 
  padding: 10px 12px; 
  border: 2px solid #D8D8D8; 
  border-radius: 6px; 
  font-size: 14px; 
  font-family: inherit; 
  transition: all 0.2s; 
  background: #FFFFFF; 
  color: #06010C;
  font-weight: 500;
}

input:focus, select:focus, textarea:focus { 
  outline: none; 
  border-color: #F20B0F;
  box-shadow: 0 0 0 3px rgba(242, 11, 15, 0.15);
}

input[type="checkbox"] { 
  width: 18px; 
  height: 18px; 
  margin-right: 8px; 
  accent-color: #F20B0F;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 60px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Pricing Row */
.pricing-row { 
  display: flex; 
  justify-content: space-between; 
  padding: 10px 0; 
  border-bottom: 1px solid #E8E8E8; 
  font-size: 14px; 
  color: #06010C; 
}

.pricing-row.total { 
  border-top: 3px solid #F20B0F; 
  border-bottom: none; 
  padding-top: 14px; 
  margin-top: 10px; 
  font-weight: 800; 
  font-size: 22px; 
  color: #F20B0F; 
}

/* Buttons */
.btn { 
  width: 100%; 
  padding: 12px; 
  border: none; 
  border-radius: 6px; 
  font-size: 14px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.2s; 
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary { 
  background: linear-gradient(135deg, #F20B0F 0%, #AC0307 100%); 
  color: white;
  box-shadow: 0 4px 12px rgba(242, 11, 15, 0.3);
}

.btn-primary:hover { 
  background: linear-gradient(135deg, #AC0307 0%, #8a0205 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 11, 15, 0.4);
}

.btn-secondary { 
  background: #949392; 
  color: #FFFFFF; 
}

.btn-secondary:hover { 
  background: #06010C;
}

.btn-primary:disabled { 
  background: #D8D8D8; 
  cursor: not-allowed; 
  color: #949392;
  box-shadow: none;
}

.hidden { display: none !important; }

.success-message { 
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
  color: white; 
  padding: 12px; 
  border-radius: 6px; 
  margin-top: 10px; 
  text-align: center; 
  font-weight: 600; 
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6,1,12,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: #FFFFFF;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid #E8E8E8;
  overflow: hidden;
  position: fixed;
  top: 20px;
  left: 400px;
}

.modal-content .close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 28px;
  font-weight: bold;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.modal-content .close:hover {
  color: #FFFFFF;
}

#modalContent {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
}

#modalContent h3 {
  margin: 0;
  padding: 16px 24px;
  padding-right: 50px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #F20B0F 0%, #AC0307 100%);
}

#modalContent .grid-2,
#modalContent > div:not(:first-child) {
  padding: 0 24px;
}

#modalContent label {
  color: #06010C;
  font-weight: 600;
  font-size: 12px;
}

#modalContent input,
#modalContent select {
  background: #FFFFFF;
  border: 2px solid #D8D8D8;
  color: #06010C;
  padding: 10px 12px;
}

#modalContent input:focus,
#modalContent select:focus {
  border-color: #F20B0F;
  box-shadow: 0 0 0 3px rgba(242, 11, 15, 0.15);
}

#modalContent .modal-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 24px 24px;
  padding-top: 20px;
  border-top: 1px solid #E8E8E8;
}

#modalContent .modal-buttons .btn {
  flex: 1;
  margin-top: 0;
}

.modal-body {
  padding: 24px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons .btn {
  flex: 1;
  margin-top: 0;
}

/* Openings List */
.openings-list {
  max-height: 200px;
  overflow-y: auto;
}

.opening-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #06010C;
}

.opening-item:hover {
  border-color: #F20B0F;
}

.opening-item span {
  flex: 1;
}

.btn-remove {
  background: #F20B0F;
  color: white;
  border: none;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background: #AC0307;
}

/* Color Swatch Grid Styles */
.color-section {
  margin-bottom: 16px;
}

.color-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #06010C;
  margin-bottom: 6px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.color-swatch {
  aspect-ratio: 1;
  border: 2px solid #E8E8E8;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-swatch.selected {
  border-color: #F20B0F;
  box-shadow: 0 0 0 3px #F20B0F;
}

.color-swatch[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #06010C;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 4px;
}

.color-selected {
  font-size: 11px;
  color: #949392;
}

.color-selected span {
  font-weight: 600;
  color: #06010C;
}

/* Door/Window Color Dropdown Styles */
.color-dropdown {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #D8D8D8;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: #FFFFFF;
  color: #06010C;
}

.color-dropdown option {
  padding: 8px 10px;
  font-size: 14px;
}

/* ========================================
   QUOTE PANEL STYLES
   ======================================== */

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid #F20B0F;
}

.quote-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #06010C;
}

.quote-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quote-actions .btn-sm {
  background: linear-gradient(135deg, #F20B0F 0%, #AC0307 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(242, 11, 15, 0.3);
  border: none;
}

.quote-actions .btn-sm:hover {
  background: linear-gradient(135deg, #AC0307 0%, #8a0205 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 11, 15, 0.4);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 4px;
  text-transform: uppercase;
}

.btn-full {
  width: 100%;
}

/* Quote Images */
.quote-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.quote-image-slot {
  aspect-ratio: 16/10;
  background: #FFFFFF;
  border: 2px dashed #D8D8D8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.quote-image-slot:hover {
  border-color: #F20B0F;
}

.quote-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-image-slot .placeholder-text {
  font-size: 10px;
  color: #949392;
  text-align: center;
  padding: 8px;
}

.quote-image-slot.has-image {
  border-style: solid;
  border-color: #F20B0F;
}

/* Quote Sections */
.quote-section {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
  border-bottom: 1px solid #E8E8E8;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #06010C;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-dims {
  font-size: 12px;
  font-weight: 700;
  color: #F20B0F;
}

.section-specs {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  background: #FAFAFA;
  border-bottom: 1px solid #E8E8E8;
  font-size: 11px;
  color: #949392;
}

.section-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Line Items */
.line-item, .line-item-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid #F5F5F5;
}

.line-item:last-child, .line-item-sub:last-child {
  border-bottom: none;
}

.line-item span:first-child {
  color: #06010C;
}

.line-item span:last-child {
  font-weight: 700;
  color: #06010C;
}

.line-item-sub {
  padding-left: 24px;
  background: #FAFAFA;
}

.line-item-sub span:first-child {
  color: #949392;
  font-size: 11px;
}

.line-item-sub span:last-child {
  color: #06010C;
  font-weight: 600;
}

.line-item.subtotal {
  background: #F5F5F5;
  font-weight: 700;
}

.line-item.deduct span:last-child {
  color: #AC0307;
}

.text-muted span:first-child {
  color: #949392;
  font-style: italic;
}

/* Quote Total */
.quote-total {
  background: linear-gradient(135deg, #F20B0F 0%, #AC0307 100%);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(242, 11, 15, 0.3);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-row span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.total-row span:last-child {
  font-size: 28px;
  font-weight: 900;
  color: white;
}

/* Payment Section */
.payment-section {
  background: #FFFFFF;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid #F5F5F5;
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-row span:first-child {
  color: #949392;
}

.payment-row span:last-child {
  font-weight: 700;
  color: #06010C;
}

/* Customer Section */
.customer-section {
  margin-top: 12px;
}

.customer-section .form-row {
  margin-bottom: 8px;
}

.customer-section label {
  font-size: 11px;
  margin-bottom: 4px;
}

.customer-section input,
.customer-section textarea {
  font-size: 13px;
  padding: 8px 10px;
}

/* Quote Buttons */
.quote-buttons {
  margin-top: 12px;
}

.quote-buttons .btn {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
}

/* Openings List */
#openings_list .line-item-sub {
  padding-left: 12px;
}

/* Dealer Info Section */
.dealer-info-section,
.customer-info-section {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dealer-header,
.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #06010C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.customer-header {
  cursor: pointer;
}

.customer-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 11, 15, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.dealer-header:hover .toggle-btn,
.customer-header:hover .toggle-btn {
  background: rgba(242, 11, 15, 0.2);
}

.toggle-text {
  font-size: 10px;
  font-weight: 600;
  color: #F20B0F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collapse-text {
  display: inline;
}

.expand-text {
  display: none;
}

.dealer-header.collapsed .collapse-text,
.customer-header.collapsed .collapse-text {
  display: none;
}

.dealer-header.collapsed .expand-text,
.customer-header.collapsed .expand-text {
  display: inline;
}

.toggle-icon {
  font-size: 10px;
  transition: transform 0.2s;
  color: #F20B0F;
}

.dealer-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.dealer-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
}

.dealer-content.hidden {
  display: none;
}

.customer-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
}

.customer-content.hidden {
  display: none;
}

.dealer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dealer-logo-preview {
  width: 60px;
  height: 60px;
  background: #F5F5F5;
  border: 2px dashed #D8D8D8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #949392;
  overflow: hidden;
}

.dealer-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dealer-logo-preview.has-logo {
  border-style: solid;
  border-color: #F20B0F;
}

.dealer-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dealer-logo-actions label {
  cursor: pointer;
}

.dealer-fields,
.customer-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}

.dealer-content .dealer-fields {
  padding: 0;
}

.dealer-input {
  background: #FFFFFF;
  border: 2px solid #E8E8E8;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  color: #06010C;
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
}

.dealer-input:focus {
  outline: none;
  border-color: #F20B0F;
  box-shadow: 0 0 0 3px rgba(242, 11, 15, 0.15);
}

.dealer-input::placeholder {
  color: #949392;
}

.customer-input {
  background: #FFFFFF;
  border: 2px solid #E8E8E8;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  color: #06010C;
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
}

.customer-input:focus {
  outline: none;
  border-color: #F20B0F;
  box-shadow: 0 0 0 3px rgba(242, 11, 15, 0.15);
}

.customer-input::placeholder {
  color: #949392;
}

.customer-fields label {
  font-size: 11px;
  font-weight: 600;
  color: #06010C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #E8E8E8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #949392 0%, #D8D8D8 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F20B0F;
}

/* Section Divider */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #F20B0F 50%, transparent 100%);
  margin: 16px 0;
}

/* Print/PDF Styles */
@media print {
  .pricing-panel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .quote-actions {
    display: none;
  }
  
  .customer-section,
  .quote-buttons {
    display: none;
  }
  
  .quote-section {
    break-inside: avoid;
  }
}

/* ===========================================
   COLLAPSIBLE RIGHT PANEL
   =========================================== */

/* Toggle Tab - Always visible on right edge */
.quote-panel-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(180deg, #C41E3A 0%, #8B0000 100%);
  color: white;
  padding: 24px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 0 20px rgba(0,0,0,0.4), 0 0 30px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  border-right: none;
}

.quote-panel-toggle:hover {
  background: linear-gradient(180deg, #D4343F 0%, #A00000 100%);
  padding-right: 20px;
  box-shadow: -8px 0 25px rgba(0,0,0,0.5), 0 0 40px rgba(196, 30, 58, 0.5);
}

.quote-panel-toggle:hover .toggle-arrow {
  animation: none;
  transform: translateX(-3px);
}

.quote-panel-toggle .toggle-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(-4px); opacity: 0.7; }
}

/* When panel is open, hide the toggle tab */
.app-container:not(.quote-collapsed) .quote-panel-toggle {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.app-container.quote-collapsed .quote-panel-toggle {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.app-container.quote-collapsed .quote-panel-toggle .toggle-arrow {
  transform: rotate(180deg);
}

/* Panel collapse bar (at top of pricing panel) */
.quote-collapse-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #C41E3A 0%, #8B0000 100%);
  color: #fff;
  padding: 14px 20px;
  margin: -20px -20px 16px -20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid #06010C;
  position: sticky;
  top: -20px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.quote-collapse-bar:hover {
  background: linear-gradient(180deg, #D4343F 0%, #A00000 100%);
  padding-right: 30px;
}

.quote-collapse-bar .collapse-text {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.quote-collapse-bar .collapse-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.quote-collapse-bar:hover .collapse-arrow {
  transform: translateX(5px);
}

/* App container transitions */
.app-container {
  transition: grid-template-columns 0.3s ease;
}

.app-container.quote-collapsed {
  grid-template-columns: 380px 1fr 0px;
}

/* Pricing panel base and expanded state */
.pricing-panel {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Pricing panel collapse state */
.app-container.quote-collapsed .pricing-panel {
  transform: translateX(100%);
  opacity: 0;
  width: 0;
  padding: 0;
  min-width: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Viewer container expands when panel collapsed */
.viewer-container {
  transition: all 0.3s ease;
}

/* Embed container support */
.embed-container {
  transition: grid-template-columns 0.3s ease;
}

.embed-container.quote-collapsed {
  grid-template-columns: 320px 1fr 0px;
}

.embed-container.quote-collapsed .pricing-panel {
  transform: translateX(100%);
  opacity: 0;
  width: 0;
  padding: 0;
  min-width: 0;
  pointer-events: none;
  overflow: hidden;
}

.embed-container:not(.quote-collapsed) .quote-panel-toggle {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.embed-container.quote-collapsed .quote-panel-toggle {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
