@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Open Sans', Arial, Verdana, sans-serif;
    background-color: rgb(248 250 252);
    display: flex;
    flex-direction: column;
}

.root-container {
  margin: 0px;
}

/* Accessibility states */
[aria-busy=true] {background-color: yellow;}
[aria-invalid=true] {background-color: pink;}

/* Bar components */
.bar {height: 22px; position:absolute;}
.availability {background-color: #3498db;}
.product {background-color: yellow;}

/* Grid Styling for Listings */
.listings-grid {
  width: 100%;
  /*margin: 20px 0;*/
  margin: 0px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: transparent;
  border-radius: 8px;
  padding: 0;

  /*grid-template-areas:*/
                /*"itemA itemB itemC"   [> First row: three areas <]*/
                /*"itemD itemD itemD";*/
}

.listings-grid-header {
  display: grid;
  background-color: #f8f9fa;
  border: 1px solid #e0e6ed;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  /* TRBL */
  padding: 0px 16px 0px 16px;
  /*margin: 2px 0px 0px 8px;*/
  margin: 0px 0px 8px 0px;

  /*margin: 40px 0px 0px 8px;*/
  /*grid-template-columns: 1.8fr 0.7fr 0.7fr 0.7fr 1fr 1.2fr 1.2fr;*/
  /*grid-template-columns: 1.8fr 0.7fr 0.7fr 0.7fr 1fr 1.2fr 1.2fr;*/
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 1.1fr 1.1fr 0.8fr;
  /*grid-template-columns: 1.0fr 0.5fr 0.5fr 0.5fr 1fr 1.2fr 1.2fr;*/

  align-items: center; /* Align items vertically within the header */
}

.listings-header-item {
  color: #333;
  font-weight: 600;
  text-align: left;
  /*padding: 12px 15px;*/

  user-select: none; /* Prevent text selection */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ */
}

/* Header item container for sort buttons */
.header-sort-container {
  display: flex; /* Use flexbox for horizontal layout */
  align-items: center; /* Vertically center items */
  cursor: pointer; /* Show pointer cursor on hover */
  /* position: relative; */ /* Not needed with flexbox positioning */
  /* padding-right: 25px; */ /* Space handled by button margins */
}

.header-sort-container div {
}

/* Style for the individual sort button placeholders */
.sort-button {
  /* position: absolute; */ /* Not needed with flexbox */
  /* right: 5px; */ /* Not needed with flexbox */
  /* top: ...; */ /* Not needed with flexbox */
  width: 0;
  height: 0;
  border: none;
  padding: 0;
  background: none; /* Remove default button styles */
  cursor: pointer;
  margin-left: 5px; /* Add space between text and buttons */
}

.sort-asc {
  /* Up arrow using borders */
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #2c3e50; /* Highlighted arrow for active sort */
}

.sort-desc {
  /* Down arrow using borders */
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 8px solid #2c3e50; /* Highlighted arrow for active sort */
}

/* Style for the active sort direction arrow */
.sort-asc.active-sort {
  border-bottom-color: #2c3e50; /* Highlight active ascending arrow */
}

.sort-desc.active-sort {
  border-top-color: #2c3e50; /* Highlight active descending arrow */
}

/* Style for active header */
.active-sort-header {
  background-color: #e9ecef; /* Light grey background for active header */
  font-weight: 700; /* Make text bolder in active header */
}

.sort-button:hover {
  border-bottom-color: #333; /* Darker grey on hover */
  border-top-color: #333;
}

/* Style for the active sort header */
.active-sort-header {
  background-color: #e9ecef; /* Light grey background for active header */
  font-weight: 700; /* Make text bolder in active header */
}

.listing-item {
  display: grid;
  background-color: white;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  padding: 16px;
  /*grid-template-columns: 1.8fr 0.7fr 0.7fr 0.7fr 1fr 1.2fr 1.2fr;*/
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 1.1fr 1.1fr 0.8fr;
  /*grid-template-columns: 1.0fr 0.5fr 0.5fr 0.5fr 1fr 1.2fr 1.2fr;*/
  align-items: center; /* Align fields vertically within the item row */
  cursor: pointer;
  transition: all 0.2s ease;
}

.listing-delivery-field {
  font-size: 12px;
  color: #333;
}


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

.listing-item:hover {
  background-color: #f8fafe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #3498db;
}


.app-container {
  max-width: 100%;
  margin: 0 6px;
  padding: 0px 0px 0px 0px;
  /* display: contents; /* Removed to allow flex-grow */ */
  flex-grow: 1; /* Allow the main content area to grow and push the footer down */
}

/* Listings Container */
.listings-container {
  margin: 0;
}

/* Header layout container */
.listings-header-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

/* Listing component */
.listings-title {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 0;
  font-weight: 700;
  flex: 1;
  min-width: 275px;
}

.listings-header-spacer {
  flex: 3;
}

.geo-complete {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 8px 0 0 0 ;
  /*align-items: flex-end;*/
  /*text-align: left;*/
  text-align: center;
}

/* Desktop and larger */
/*@media screen and (min-width: 1024px) {*/
@media screen {
  .listing-ranch-img {
    width:  100px;
    height: 100px;
  }
  .listings-header-item {
    padding: 12px 15px;
  }
  .listing-field {
    padding: 8px 15px;
  }
  .listing-price-field {
    padding: 8px 10px;
  }
}

/* Tablet and larger */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .listing-ranch-img {
    width:  80px;
    height: 80px;
  }
  .desktop {
    display: none;
  }
}

/* Smartphone */
@media screen and (max-width: 767px) {
  html, body {
    overflow-x: hidden;
  }

  .listings-grid-header {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr 1.5fr;
    padding: 0px 12px 0px 12px;
  }

  .listing-item {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr 1.5fr;
    padding: 12px;
    margin-bottom: 8px;
  }

  .listing-field {
    padding: 4px 0px;
    /* vertical-align: middle; is for table cells. Grid's align-items handles this. */
  }

  .listing-ranch-img {
    width:  60px;
    height: 60px;
  }
  .listings-header-layout {
    flex-direction: column;
    gap: 10px;
  }

  .listings-title {
    display: none;
  }

  .geo-complete {
    flex: none;
    align-items: flex-start;
    text-align: left;
  }
  .listing-view-button {
    display: none;
  }
  .listing-cows-available-field {
    display: none;
  }
  .desktop {
    display: none;
  }
  .tablet {
    display: none;
  }
  .listings-header-item {
    padding: 4px 4px;
  }

  .location-control {
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    margin: 4px 0 12px 0;
  }

  .filter-panel {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .filter-control {
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 16px 20px 12px 20px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 16px 20px 20px 20px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .modal-actions button {
    width: 100%;
  }
}

.listing-ranch-img {
  border-radius: 4px;
  object-fit: contain;
  display: block;
  margin-right: 10px;
}

.listing-link {
  color: #2980b9;
  text-decoration: none;
  display: block; /* Ensures the link takes up the field width for easier clicking */
  transition: color 0.2s;
}

.listing-link:hover {
  color: #3498db;
}

.listing-ranch-container {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center items horizontally in the column */
}

.listing-ranch-name {
  font-weight: 700; /* Make the font bold */
  font-size: 20px; /* Increase the font size */
  color: black;

  grid-row: 1;
  grid-column: 1 / -1;
}

/* Specific field styling */
.listing-price-field {
  font-weight: 600;
  text-align: left;
}

.listing-price-per-lb-field {
  color: #7f8c8d;
  font-size: 14px;
  text-align: right;
}

.listing-date-field, .listing-location-field {
  color: #555;
  font-size: 14px;
  /* Default text-align: left is fine */
}

.listing-action-field {
  text-align: center;
}

.listing-cows-available-field {
  font-size: 12px;
  color: #7f8c8d; /* Using a muted color similar to the price per lb */
}

.listing-miles-away {
  font-size: 12px;
  color: #7f8c8d; /* Match the cows-available styling */
}

/* Button styling */
button, .listing-view-button, .action-button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover, .listing-view-button:hover, .action-button:hover {
  background-color: #2980b9;
}

button:disabled, .listing-view-button:disabled, .action-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.toggle-button {
  background-color: #e74c3c;
}

.toggle-button:hover {
  background-color: #c0392b;
}

/* Checkbox styling */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

input[type='checkbox'] {
  margin-right: 8px;
}

.checkbox-label {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Layout containers */
div {
  margin-bottom: 8px;
}

code {
  background-color: #f8f9fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
}

/* About and Support page containers */
.about-container, .support-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}

.about-container h1, .support-container h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: 700;
}

.about-container h2, .support-container h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.about-container h3, .support-container h3 {
  font-size: 18px;
  color: #34495e;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.about-container section, .support-container section {
  margin-bottom: 30px;
}

.about-container p, .support-container p {
  margin-bottom: 15px;
  color: #555;
}

.about-container ul, .support-container ul,
.about-container ol, .support-container ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.about-container li, .support-container li {
  margin-bottom: 8px;
  color: #555;
}

/* Footer styling */
.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid #34495e;
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-separator {
  margin: 0 10px;
  color: #7f8c8d;
}

.footer-copyright {
  color: #bdc3c7;
  font-size: 13px;
}

/* Location control styling */
.location-control {
  background-color: white;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  margin: 8px 0 16px 0;
  text-align: right;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
  transition: box-shadow 0.2s ease;
}

.location-control:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
}

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

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f8f9fa;
  color: #2c3e50;
}

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

.modal-body p {
  margin: 0 0 16px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.zip-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.zip-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-save {
  background-color: #3498db;
}

.modal-save:hover {
  background-color: #2980b9;
}

.modal-cancel {
  background-color: #95a5a6;
}

.modal-cancel:hover {
  background-color: #7f8c8d;
}

/* Filter panel styling */
.filter-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
}

.filter-control {
  background-color: white;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.filter-control:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Family Calculator Styling */
.family-calculator {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.family-calculator h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.family-calculator-intro {
  margin-bottom: 30px;
  text-align: center;
}

.family-calculator-intro div {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.family-input-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.family-input-table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 20px;
  text-align: center;
  border: none;
}

.family-input-table thead th:first-child {
  text-align: left;
  padding-left: 24px;
}

.family-input-table tbody tr {
  border-bottom: 1px solid #e8ecf4;
  transition: background-color 0.2s ease;
}

.family-input-table tbody tr:hover {
  background-color: #f8fafe;
}

.family-input-table tbody tr:last-child {
  border-bottom: none;
}

.family-input-table td {
  padding: 16px 20px;
  vertical-align: middle;
}

.family-input-table td:first-child {
  padding-left: 24px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
}

.family-input-table input {
  width: 100%;
  max-width: 80px;
  padding: 10px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  transition: all 0.2s ease;
  background-color: #fafbfc;
}

.family-input-table input:focus {
  outline: none;
  border-color: #3498db;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.carnivore-slider-container {
  background-color: #f8f9fa;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.carnivore-slider {
  width: 100%;
  max-width: 400px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #27ae60, #f39c12, #e74c3c);
  outline: none;
  margin: 20px 0;
  -webkit-appearance: none;
  appearance: none;
}

.carnivore-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #3498db;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.carnivore-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carnivore-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #3498db;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.carnivore-score-label {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 15px;
}

.results-container {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 12px;
  padding: 24px;
  color: white;
  text-align: center;
}

.result-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.result-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.result-label {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cow-duration-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.cow-duration-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.cow-duration-fraction {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cow-duration-days {
  font-size: 14px;
  opacity: 0.9;
}

/* Responsive design for family calculator */
@media (max-width: 768px) {
  .family-calculator {
    margin: 0 10px;
    padding: 16px;
  }

  .family-calculator h1 {
    font-size: 24px;
  }

  .family-input-table td {
    padding: 12px 8px;
  }

  .family-input-table td:first-child {
    padding-left: 12px;
    font-size: 14px;
  }

  .family-input-table input {
    max-width: 60px;
    padding: 8px;
  }

  .carnivore-slider-container {
    padding: 16px;
  }

  .results-container {
    padding: 16px;
  }

  .cow-duration-results {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-value {
    font-size: 20px;
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Freezer Data Table Styles */
.freezer-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin: 20px 0 30px 0;
}

.freezer-data-table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 20px;
  text-align: center;
  border: none;
}

.freezer-data-table thead th:first-child {
  text-align: left;
  padding-left: 24px;
}

.freezer-data-table tbody tr {
  border-bottom: 1px solid #e8ecf4;
  transition: background-color 0.2s ease;
}

.freezer-data-table tbody tr:hover {
  background-color: #f8fafe;
}

.freezer-data-table tbody tr:last-child {
  border-bottom: none;
}

.freezer-data-table td {
  padding: 16px 20px;
  vertical-align: middle;
  color: #555;
}

.freezer-data-table td:first-child {
  padding-left: 24px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
}

@media (max-width: 768px) {
  .freezer-data-table {
    font-size: 14px;
  }

  .freezer-data-table thead th,
  .freezer-data-table td {
    padding: 12px 16px;
  }

  .freezer-data-table thead th:first-child,
  .freezer-data-table td:first-child {
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .freezer-data-table {
    font-size: 12px;
  }

  .freezer-data-table thead th,
  .freezer-data-table td {
    padding: 8px 12px;
  }

  .freezer-data-table thead th:first-child,
  .freezer-data-table td:first-child {
    padding-left: 12px;
  }

  .product-card-field {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card-field-label {
    margin-bottom: 4px;
    margin-right: 0;
  }
}

.map-container {
  width: 900px;
  height: 800px;
}

/* Listing Detail Styles */
.listing-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  font-family: 'Open Sans', Arial, Verdana, sans-serif;
  background-color: #fafbfc;
  min-height: 100vh;
}

.listing-detail h1 {
  color: #2c3e50;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
}

.listing-detail h2, .listing-detail h3 {
  color: #2c3e50;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

.listing-detail img {
  display: block;
  margin: 0 auto 24px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vendor-profile {
  background-color: white;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vendor-profile div {
  margin-bottom: 12px;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}

.vendor-profile h2, .vendor-profile h3 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.vendor-profile table {
  width: 100%;
  margin-top: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.vendor-profile table td {
  padding: 12px 16px;
  color: #444;
  border-bottom: 1px solid #e9ecef;
}

.vendor-profile table td:first-child {
  font-weight: 600;
  background-color: #e9ecef;
  width: 40%;
}

.vendor-profile table tr:last-child td {
  border-bottom: none;
}

/* Products Grid Container */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Product Card Styles - Similar to listing cards */
.product-card {
  display: grid;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* When deposits are shown, add extra columns */
.product-card.with-deposits {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.product-card:hover {
  background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
  box-shadow: 0 12px 30px rgba(52, 152, 219, 0.18);
  transform: translateY(-6px);
  border-color: #3498db;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db 0%, #2980b9 50%, #27ae60 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-field {
  display: flex;
  flex-direction: column;
}

.product-card-field-label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  opacity: 0.8;
}

.product-card-field-value {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 500;
}

.product-card-field-value.weight::before {
  content: '🐄';
  margin-right: 6px;
  font-size: 14px;
}

.product-card-field-value.date::before {
  content: '📅';
  margin-right: 6px;
  font-size: 14px;
}

.product-card-name {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #27ae60;
  display: flex;
  align-items: center;
}

.product-card-price::before {
  content: '💰';
  margin-right: 6px;
  font-size: 16px;
}

.product-card-price-per-lb {
  font-size: 16px;
  font-weight: 600;
  color: #e67e22;
  display: flex;
  align-items: center;
}

.product-card-price-per-lb::before {
  content: '⚖️';
  margin-right: 6px;
  font-size: 14px;
}

/* Products Header */
.products-header {
  display: grid;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #d6dbdf;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* When deposits are shown, add extra columns */
.products-header.with-deposits {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.products-header-item {
  font-weight: 700;
  color: #2c3e50;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.9;
}

/* Responsive Design for Product Cards */
@media screen and (max-width: 1024px) {
  .product-card {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 12px;
  }

  .product-card.with-deposits {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  }

  .products-header {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 12px;
  }

  .products-header.with-deposits {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .listing-detail {
    padding: 16px;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  /*.products-header {*/
    /*display: none; [> Hide header on mobile <]*/
  /*}*/

  .product-card-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .product-card-field:last-child {
    border-bottom: none;
  }

  .product-card-field-label {
    margin-bottom: 4px;
    margin-right: 0;
  }

  .product-card-name {
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 2px solid #3498db;
    margin-bottom: 8px;
  }

  .product-card-price {
    font-size: 16px;
  }

  .product-card-price-per-lb {
    font-size: 14px;
  }

  .product-card-field-value {
    font-size: 14px;
  }
}

/* Go Back Button Styling */
.go-back-button {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
  margin-top: 40px;
  display: block;
  /*margin-left: auto;*/
  /*margin-right: auto;*/
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.go-back-button:hover {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.go-back-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Products Section Header */
.products-section-header {
  margin: 40px 0 20px 0;
  text-align: center;
}

.products-section-header h3 {
  font-size: 24px;
  color: #2c3e50;
  font-weight: 700;
  margin: 0;
  padding: 16px 0;
  border-bottom: 3px solid #3498db;
  display: inline-block;
  position: relative;
}

.products-section-header h3:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-radius: 2px;
}

.balance-due-date {
  font-weight: 600;
}

/* Order Panel Styles */
.order-panel-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  animation: fadeIn 0.5s ease-out;
}

.order-panel-header {
  text-align: center;
  margin-bottom: 30px;
}

.order-panel-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
  text-align: center;
}

.vendor-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.vendor-logo img {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-details-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out;
}

.order-item-section {
  padding: 30px;
  border-bottom: 1px solid #f1f3f5;
}

.order-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
}

.order-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 2px;
  margin-right: 12px;
}

.order-info-grid {
  display: grid;
  gap: 16px;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.order-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.order-info-item:hover::before {
  left: 100%;
}

.order-info-item:hover {
  background: #f1f3f5;
  border-left-color: #3498db;
}

.order-info-label {
  font-weight: 500;
  color: #495057;
  font-size: 0.95rem;
}

.order-info-value {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.order-info-value.highlight {
  color: #27ae60;
  font-size: 1.1rem;
}

.order-pricing-section {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #e8ecf4;
  transition: background-color 0.2s ease;
  position: relative;
  overflow: hidden;
}


.pricing-item:hover {
  background: #f8fafe;
}

.pricing-item:last-child:not(.total-due) {
  border-bottom: none;
}

.pricing-item.total-due {
  background: #f8fafe;
  color: #2c3e50;
  border: 2px solid #3498db !important;
  padding: 16px 18px;
  margin: 12px 0 4px 0;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
  border-radius: 8px;
}

.pricing-item.total-due:hover {
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.pricing-label {
  font-weight: 500;
  color: #495057;
  font-size: 0.95rem;
}

.pricing-label.total {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.1rem;
}

.pricing-value {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.05rem;
}

.pricing-value.total {
  color: #3498db;
  font-size: 1.3rem;
  font-weight: 700;
}

.order-notice {
  margin: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #f39c12;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-weight: 600;
  color: #d68910;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.notice-content p:last-child {
  margin: 0;
  color: #856404;
  line-height: 1.5;
}

.order-actions {
  padding: 30px;
  background: #f8f9fa;
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid #e9ecef;
}

.order-actions .checkout-button {
  margin-left: auto;
}

.order-actions .go-back-button {
  margin-top: 0;
}

.checkout-button {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-button:hover {
  background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.checkout-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

@media screen and (max-width: 768px) {
  .order-panel-container {
    padding: 15px;
    margin: 0 10px;
  }

  .order-panel-title {
    font-size: 2rem;
  }

  .order-item-section,
  .order-pricing-section,
  .order-actions {
    padding: 20px;
  }

  .order-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .order-info-value {
    align-self: flex-end;
  }

  .pricing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pricing-value {
    align-self: flex-end;
  }

  .order-notice {
    margin: 20px;
    padding: 15px;
  }

  .order-actions {
    flex-direction: column;
  }

  .checkout-button, .go-back-button {
    width: 100%;
    margin-bottom: 10px;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Keyframe animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  }
  to {
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.5);
  }
}

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

@media screen and (max-width: 480px) {
  .mobile-hide {
    display: none;
  }

  .order-panel-container {
    padding: 10px;
    margin: 0 5px;
  }

  .order-panel-title {
    font-size: 1.8rem;
  }

  .order-section-title {
    font-size: 1.2rem;
  }

  .vendor-logo img {
    max-width: 120px;
    max-height: 60px;
  }
  .product-card-field-label {
    display: none;
  }

  /*.product-card-field { border-bottom: none; }*/
}

/* Order Success Panel Styles */
.order-success-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
  min-height: 100vh;
  animation: fadeIn 0.8s ease-out;
}

/* Success Header */
.order-success-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
}

.order-success-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  display: block;
  animation: bounceIn 1s ease-out;
}

.order-success-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-subtitle {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

/* Thank You Card */
.thank-you-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thank-you-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db 0%, #2980b9 50%, #27ae60 100%);
}

.thank-you-text {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Base Styles */
.payment-details-card,
.contact-details-card,
.next-steps-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.payment-details-card:hover,
.contact-details-card:hover,
.next-steps-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Card Headers */
.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 25px;
  border-bottom: 1px solid #e8ecf0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  flex: 1;
}

.card-content {
  padding: 25px;
}

/* Payment Details Specific */
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.3s ease;
}

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

.payment-row:hover {
  background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
  margin: 0 -25px;
  padding-left: 25px;
  padding-right: 25px;
  border-radius: 8px;
}

.payment-label {
  font-weight: 500;
  color: #495057;
  font-size: 1rem;
}

.payment-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2c3e50;
}

.payment-value.amount-paid {
  color: #27ae60;
  background: linear-gradient(135deg, #d5f4e6 0%, #a3e8c8 100%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.payment-value.balance-amount {
  color: #e67e22;
  background: linear-gradient(135deg, #fef4e6 0%, #fde7c8 100%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
}

.payment-value.due-date {
  color: #8e44ad;
  font-style: italic;
  background: linear-gradient(135deg, #f4f0ff 0%, #e8d5ff 100%);
  padding: 6px 12px;
  border-radius: 16px;
}

.balance-section {
  margin-top: 20px;
  padding-top: 20px;
}

.balance-divider {
  height: 2px;
  background: linear-gradient(90deg, #e9ecef 0%, #3498db 50%, #e9ecef 100%);
  border-radius: 1px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.due-date-row {
  background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
  border-radius: 8px;
  margin: 10px -15px -15px -15px;
  padding: 15px;
  border: 1px solid #e8d5ff;
}

/* Contact Information Specific */
.vendor-message {
  font-size: 1.1rem;
  color: #495057;
  margin: 0 0 20px 0;
  text-align: center;
  font-weight: 500;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.contact-row:hover::before {
  transform: scaleY(1);
}

.contact-row:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
  background: linear-gradient(135deg, #f1f8ff 0%, #ffffff 100%);
}

.contact-icon {
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-details {
  flex: 1;
}

.contact-type {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

/* Next Steps Specific */
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.next-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.next-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.next-step:hover::before {
  left: 100%;
}

.next-step:hover {
  background: linear-gradient(135deg, #f1f8ff 0%, #ffffff 100%);
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  font-size: 1rem;
  color: #495057;
  line-height: 1.6;
  font-weight: 500;
  margin-top: 8px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .order-success-container {
    padding: 20px 15px;
  }

  .order-success-header {
    padding: 20px;
    margin-bottom: 25px;
  }

  .order-success-title {
    font-size: 2rem;
  }

  .success-icon {
    font-size: 3rem;
  }

  .thank-you-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .thank-you-text {
    font-size: 1.6rem;
  }

  .card-header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .card-content {
    padding: 20px;
  }

  .payment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }

  .payment-value {
    align-self: flex-end;
    font-size: 1.1rem;
  }

  .contact-row {
    padding: 15px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .next-step {
    padding: 15px;
    gap: 15px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .step-content {
    font-size: 0.95rem;
    margin-top: 5px;
  }
}

@media screen and (max-width: 480px) {
  .order-success-container {
    padding: 15px 10px;
  }

  .order-success-header {
    padding: 15px;
    border-radius: 15px;
  }

  .order-success-title {
    font-size: 1.8rem;
  }

  .success-icon {
    font-size: 2.5rem;
  }

  .thank-you-text {
    font-size: 1.4rem;
  }

  .card-header {
    padding: 12px 15px;
  }

  .card-content {
    padding: 15px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .payment-value.amount-paid {
    font-size: 1.1rem;
    padding: 6px 12px;
  }

  .contact-row {
    gap: 12px;
  }

  .next-step {
    gap: 12px;
  }
}

/* Keyframe Animations */
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Order Cancel Panel Styles */
.cancel-panel-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #fdf2f2 0%, #ffffff 100%);
  min-height: 100vh;
  animation: fadeIn 0.8s ease-out;
}

/* Cancel Header */
.cancel-panel-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(231, 76, 60, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
}

.cancel-panel-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

.cancel-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  display: block;
  animation: shakeCancel 1s ease-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.cancel-panel-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cancel Confirmation Card */
.cancel-confirmation-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cancel-confirmation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
}

.cancel-confirmation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Confirmation Message */
.confirmation-message {
  padding: 40px 30px;
  text-align: center;
}

.confirmation-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confirmation-description {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.6;
  margin: 0 0 30px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Session Details */
.session-details {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #e8ecf0;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-info,
.session-status {
  margin: 0;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  color: #495057;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.session-status {
  border-left-color: #f39c12;
}

/* Cancel Actions */
.cancel-actions {
  padding: 30px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e9ecef;
}

/* Additional Cards for Better UX */
.what-happened-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.what-happened-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.what-happened-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 25px;
  border-bottom: 1px solid #e8ecf0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.what-happened-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.what-happened-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  flex: 1;
}

.what-happened-content {
  padding: 25px;
}

.what-happened-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.what-happened-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s ease;
}

.what-happened-item:hover {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-color: #e74c3c;
  transform: translateX(5px);
}

.what-happened-bullet {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  flex-shrink: 0;
}

.what-happened-text {
  flex: 1;
  color: #495057;
  line-height: 1.5;
  margin-top: 3px;
}

/* Next Steps Card */
.next-steps-cancel-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8ecf0;
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-steps-cancel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.next-steps-cancel-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 25px;
  border-bottom: 1px solid #e8ecf0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.next-steps-cancel-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.next-steps-cancel-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  flex: 1;
}

.next-steps-cancel-content {
  padding: 25px;
}

.next-steps-cancel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.next-step-cancel {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.next-step-cancel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.next-step-cancel:hover::before {
  left: 100%;
}

.next-step-cancel:hover {
  background: linear-gradient(135deg, #f1f8ff 0%, #ffffff 100%);
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.step-number-cancel {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  flex-shrink: 0;
}

.step-content-cancel {
  flex: 1;
  font-size: 1rem;
  color: #495057;
  line-height: 1.6;
  font-weight: 500;
  margin-top: 8px;
}

/* Responsive Design for Cancel Page */
@media screen and (max-width: 768px) {
  .cancel-panel-container {
    padding: 20px 15px;
  }

  .cancel-panel-header {
    padding: 20px;
    margin-bottom: 25px;
  }

  .cancel-panel-title {
    font-size: 2rem;
  }

  .cancel-icon {
    font-size: 3rem;
  }

  .confirmation-message {
    padding: 30px 20px;
  }

  .confirmation-title {
    font-size: 1.5rem;
  }

  .confirmation-description {
    font-size: 1rem;
  }

  .session-details {
    padding: 20px;
  }

  .what-happened-header,
  .next-steps-cancel-header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .what-happened-content,
  .next-steps-cancel-content {
    padding: 20px;
  }

  .what-happened-item,
  .next-step-cancel {
    padding: 15px;
    gap: 15px;
  }

  .what-happened-bullet,
  .step-number-cancel {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .what-happened-icon,
  .next-steps-cancel-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .cancel-panel-container {
    padding: 15px 10px;
  }

  .cancel-panel-header {
    padding: 15px;
    border-radius: 15px;
  }

  .cancel-panel-title {
    font-size: 1.8rem;
  }

  .cancel-icon {
    font-size: 2.5rem;
  }

  .confirmation-message {
    padding: 20px 15px;
  }

  .confirmation-title {
    font-size: 1.3rem;
  }

  .session-details {
    padding: 15px;
  }

  .what-happened-header,
  .next-steps-cancel-header {
    padding: 12px 15px;
  }

  .what-happened-content,
  .next-steps-cancel-content {
    padding: 15px;
  }

  .what-happened-title,
  .next-steps-cancel-title {
    font-size: 1.2rem;
  }
}

/* Shake Animation for Cancel Icon */
@keyframes shakeCancel {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* ===========================
   CHECKOUT PANEL STYLING
   =========================== */

/* Main Checkout Container */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgb(248, 250, 252);
  min-height: 100vh;
}

/* Checkout Header */
.checkout-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 2px solid #e0e6ed;
}

.checkout-title {
  font-size: 2rem;
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.vendor-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vendor-logo img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Content Layout */
.checkout-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Section Styling */
.section-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

/* Order Summary Section */
.order-summary-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e6ed;
}

.order-summary-card {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.order-info-grid {
  display: grid;
  gap: 0;
  margin-bottom: 20px;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8ecf4;
  background: white;
  transition: background-color 0.2s ease;
}

.order-info-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.order-info-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.order-info-item:hover {
  background: #f8fafe;
}

.order-info-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.95rem;
}

.order-info-value {
  font-weight: 600;
  color: #2c3e50;
  text-align: right;
  font-size: 1rem;
}

.order-info-value.highlight {
  color: #3498db;
  font-weight: 700;
}

/* Pricing Breakdown */
.pricing-breakdown {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 2px solid #e0e6ed;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-label {
  font-weight: 500;
  color: #555;
}

.pricing-value {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.balance-due-date {
  color: #e67e22;
  font-weight: 600;
  font-style: italic;
}

.pricing-item.total-due {
  margin-top: 15px;
  padding-top: 20px;
  border-top: 2px solid #3498db;
  font-size: 1.1rem;
}

.pricing-label.total {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.2rem;
}

.pricing-value.total {
  font-weight: 700;
  color: #3498db;
  font-size: 1.3rem;
}

/* Order Notice */
.order-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-weight: 700;
  color: #856404;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.notice-content p:last-child {
  margin: 0;
  color: #856404;
  line-height: 1.5;
}

/* Form Sections */
.form-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e6ed;
}

/* Form Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.2s ease;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background-color: #f8fafe;
}

/* Only show validation errors after user interaction */
.form-input.error {
  border-color: #e74c3c;
}

.form-input.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Modern browsers - only show invalid state after user has interacted */
.form-input:user-invalid {
  border-color: #e74c3c;
}

.form-input:user-invalid:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-input::placeholder {
  color: #aab7c4;
  font-style: italic;
}

/* Payment Section */
.payment-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e6ed;
}

.payment-form {
  margin-bottom: 25px;
}

/* Stripe Payment Element */
.payment-element {
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background-color: white;
  margin-bottom: 15px;
  transition: border-color 0.2s ease;
  min-height: 40px;
}

.payment-element:focus-within {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.payment-errors {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #fdf2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  display: none;
}

.payment-errors:not(:empty) {
  display: block;
}


/* Checkout Actions */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.checkout-actions .go-back-button,
.checkout-actions .checkout-button {
  margin-top: 0;
}

/* Payment Button */
.pay-button {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
  flex: 1;
  max-width: 300px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pay-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

.pay-button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pay-button.processing {
  background: #3498db;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.6);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .checkout-container {
    padding: 15px;
  }

  .checkout-title {
    font-size: 1.6rem;
  }

  .vendor-logo img {
    max-height: 60px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .checkout-actions {
    flex-direction: column;
    gap: 15px;
  }

  .pay-button {
    max-width: none;
    width: 100%;
  }

  .order-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .order-info-value {
    text-align: left;
  }

  .pricing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .pricing-value {
    align-self: flex-end;
  }
}

@media screen and (max-width: 480px) {
  .checkout-container {
    padding: 10px;
  }

  .checkout-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .order-summary-section,
  .form-section,
  .payment-section {
    padding: 20px 15px;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 16px; /* Prevent zoom on mobile */
  }

  .pay-button {
    padding: 14px 24px;
    font-size: 1rem;
  }
}
