/* Xero Cart Widget Styles - Similar to page.tsx styling */

/* Base Styles */
.xero-cart-form {
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Loading and Error States */
.xero-loading, .xero-error {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
}

.xero-loading {
  color: #6b7280;
  font-size: 1.125rem;
}

.xero-error {
  color: #dc2626;
  font-size: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
}

/* Section Styles */
.xero-contact-section,
.xero-custom-section,
.xero-products-section,
.xero-submit-section {
  margin-bottom: 2rem;
}

.xero-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
}

/* Field Styles */
.xero-field-group {
  margin-bottom: 1rem;
}

.xero-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

.xero-field-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;  
  color: #111827;
  background: #ffffff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
}

.xero-field-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Product Styles */
.xero-product-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.xero-product-info {
  flex: 1;
}

.xero-product-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
}

.xero-product-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
}

.xero-product-code {
  display: none; /* Hide product codes */
}

.xero-product-pricing {
  text-align: right;
  margin-left: 1rem;
}

.xero-product-price {
  font-weight: 700;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

.xero-product-quantity {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

.xero-product-quantity-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.xero-quantity-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

.xero-quantity-input {
  width: 4rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  text-align: center;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

.xero-quantity-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.xero-quantity-input::-webkit-outer-spin-button,
.xero-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.xero-quantity-input[type=number] {
  -moz-appearance: textfield;
}

.xero-product-total {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

/* Total Section */
.xero-total-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.xero-total-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  text-align: right;
  font-family: var(--font-geist-mono, 'Monaco', monospace);
}

.xero-tax-note {
  display: none; /* Hide tax note */
}

/* Submit Button */
.xero-submit-section {
  margin-top: 2rem;
}

.xero-submit-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  font-family: var(--font-geist-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
}

.xero-submit-button:hover:not(:disabled) {
  background: #374151;
}

.xero-submit-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .xero-cart-form {
    padding: 1rem;
    margin: 0 1rem;
  }
  
  .xero-product-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .xero-product-pricing {
    text-align: left;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .xero-product-quantity-container {
    justify-content: flex-start;
  }
  
  .xero-quantity-input {
    width: 3.5rem;
    font-size: 0.8125rem;
  }
} 