.orichi-hideprice-quote-button {
  font-weight: 400;
  text-align: center;
  border-radius: 0.375rem;
  border: 1px solid;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.75rem;
  font-size: 14px;
  line-height: 1rem;
  width: 100%;
  height: 47px;
  outline: none;
  position: relative;
  z-index: 3;
  margin-bottom: 10px;
}

.orichi-hideprice-quote-button.product {
  height: 47px;
  width: 100%;
}

.orichi-hideprice-quote-button:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05), 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.orichi-hideprice-quote-button:hover:not(:disabled) {
  opacity: 0.9;
}

.orichi-hideprice-quote-button:active:not(:disabled) {
  transform: scale(0.98);
}

.orichi-hideprice-quote-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Styles */
.orichi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: orichi-fade-in 0.2s ease;
}

@keyframes orichi-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.orichi-modal-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 1300px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: orichi-slide-up 0.3s ease;
  box-sizing: border-box;
}

@keyframes orichi-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orichi-modal-header {
  padding: 14px 24px;
  border-bottom: 1px solid #e1e3e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfb;
}

.orichi-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #202223;
}

.orichi-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6d7175;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.orichi-modal-close:hover {
  background: #f1f2f3;
  color: #202223;
}

.orichi-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
}

.orichi-section-header .orichi-section-title {
  margin: 0px !important;
}

.orichi-section-title {
  font-size: 14px;
  margin: 0px;
  font-weight: 600;
  color: #202223;
}

.orichi-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.orichi-field-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.orichi-field-label {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 4px;
  letter-spacing: normal !important;
  line-height: 13px !important;
  font-size: 13px;
  font-weight: 500;
  color: #202223;
}

.orichi-field-required {
  color: #bf0711;
}

.orichi-form-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline-offset: 0.0625rem;
}

.orichi-form-input:focus {
  outline: 0.125rem solid rgba(0, 91, 211, 1);
  box-shadow: 0 0 0 2px rgba(0, 91, 211, 0.2) !important;
}

.orichi-form-input:hover:not(:focus) {
  outline: 0.125rem solid rgba(0, 91, 211, 1);
}

.orichi-form-input::placeholder {
  color: #8c9196;
}

.orichi-form-textarea {
  min-height: 80px;
  resize: vertical;
}

.orichi-form-checkbox {
  width: auto;
  margin-right: 8px;
}

.orichi-modal-footer {
  padding: 12px 24px;
  border-top: 1px solid #e1e3e5;
  display: flex;
  justify-content: end;
  gap: 12px;
  background: #fafbfb;
}

.orichi-button-secondary {
  padding: 6px 16px;
  border: 1px solid #c9cccf;
  background: white;
  color: #202223;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.orichi-button-secondary:hover:not(:disabled) {
  background: #f7f8f9;
  border-color: #8c9196;
}

.orichi-button-secondary:active:not(:disabled) {
  background: #f1f2f3;
}

.orichi-button-primary {
  padding: 8px 16px;
  border: none;
  background: #000000;
  text-align: center;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.orichi-button-primary:hover:not(:disabled) {
  background: #2c2c2c;
}

.orichi-button-primary:active:not(:disabled) {
  background: #1a1a1a;
}

.orichi-button-primary:disabled {
  background: #8c9196;
  cursor: not-allowed;
}

/* Toast Styles */
.orichi-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10002;
  max-width: 400px;
  pointer-events: none;
}

.orichi-toast {
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: auto;
  border-left: 4px solid;
  overflow: hidden;
  max-width: 400px;
  min-width: 300px;
}

.orichi-toast-show {
  opacity: 1;
  transform: translateX(0);
}

.orichi-toast-hide {
  opacity: 0;
  transform: translateX(100%);
}

.orichi-toast-success {
  border-left-color: #1a7f37;
}

.orichi-toast-error {
  border-left-color: #bf0711;
}

.orichi-toast-warning {
  border-left-color: #f59e0b;
}

.orichi-toast-info {
  border-left-color: #005bd3;
}

.orichi-toast-content {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 8px;
}

.orichi-toast-icon {
  font-size: 16px;
  font-weight: bold;
  margin-top: 1px;
  flex-shrink: 0;
}

.orichi-toast-success .orichi-toast-icon {
  color: #1a7f37;
}

.orichi-toast-error .orichi-toast-icon {
  color: #bf0711;
}

.orichi-toast-warning .orichi-toast-icon {
  color: #f59e0b;
}

.orichi-toast-info .orichi-toast-icon {
  color: #005bd3;
}

.orichi-toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #202223;
  line-height: 1.4;
}

.orichi-toast-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #6d7175;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.orichi-toast-close:hover {
  background: #f1f2f3;
  color: #202223;
}

.orichi-toast:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* View Quote Button Animations */
body .orichi-view-quote-button {
  z-index: 999;
}

.orichi-view-quote-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform-origin: center;
  max-width: max-content;
  position: fixed;
}

.orichi-view-quote-button.orichi-show {
  opacity: 1;
  visibility: visible;
}

/* Quote Table Styles */
.orichi-quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orichi-quote-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #202223;
  border-right: 1px solid #e1e3e5;
  background-color: #f7f8f9;
  position: sticky;
  top: 0;
  z-index: 1;
}

.orichi-quote-table td {
  padding: 12px 8px;
  border-right: 1px solid #e1e3e5;
  color: #202223;
  max-width: 200px;
  word-wrap: break-word;
}

.orichi-quote-table tr {
  border-bottom: 1px solid #e1e3e5;
  transition: background-color 0.2s ease;
}

.orichi-quote-table tbody tr:hover {
  background-color: #f7f8f9;
}

.orichi-table-container {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e1e3e5;
  border-radius: 6px;
}

.orichi-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6d7175;
}

.orichi-empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #202223;
  font-weight: 600;
}

.orichi-empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Table Responsive */
@media (max-width: 768px) {
  .orichi-quote-table {
    font-size: 12px;
  }

  .orichi-quote-table th,
  .orichi-quote-table td {
    padding: 8px 6px;
    max-width: 120px;
  }

  .orichi-table-container {
    max-height: 300px;
  }

  .orichi-modal-container {
    max-width: 100% !important;
  }

  .orichi-split-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* Toast Responsive */
@media (max-width: 640px) {
  .orichi-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .orichi-toast {
    min-width: auto;
    max-width: none;
  }
}

/* Responsive styles */
@media (max-width: 640px) {
  .orichi-modal-overlay {
    padding: 0px;
    align-items: flex-start;
  }

  .orichi-modal-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .orichi-modal-header {
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fafbfb;
  }

  .orichi-modal-close {
    width: 25px;
    height: 25px;
    font-size: 18px;
    padding: 4px;
  }

  .orichi-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    position: relative;
  }

  .orichi-modal-footer {
    padding: 16px;
    position: sticky;
    bottom: 0;
    background: #fafbfb;
  }

  .orichi-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .orichi-modal-footer {
    flex-direction: column-reverse;
  }

  .orichi-button-secondary,
  .orichi-button-primary {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
    min-height: 44px;
    font-size: 16px;
  }

  /* Split container mobile adjustments */
  .orichi-split-container {
    flex-direction: column;
    min-height: auto;
    height: auto;
    gap: 0;
    overflow: visible;
  }

  .orichi-product-section-container,
  .orichi-form-section-container {
    padding: 16px;
    overflow: visible;
    min-height: auto;
  }

  .orichi-section-header {
    padding: 12px;
  }

  .orichi-section-title {
    font-size: 14px;
  }
}

/* Split Layout Styles */
.orichi-split-container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 600px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.orichi-product-section-container {
  padding: 24px;
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: visible;
}
.orichi-product-section-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  box-shadow: 0.0625rem 0rem 0rem 0rem rgba(0, 0, 0, 0.13) inset,
    -0.0625rem 0rem 0rem 0rem rgba(0, 0, 0, 0.13) inset,
    0rem -0.0625rem 0rem 0rem rgba(0, 0, 0, 0.17) inset,
    0rem 0.0625rem 0rem 0rem rgba(204, 204, 204, 0.5) inset;
  border-radius: 0.5rem;
  pointer-events: none;
  mix-blend-mode: luminosity;
}

.orichi-form-section-container {
  padding: 0px;
  position: relative;
  border-radius: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.orichi-form-section-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  box-shadow: 0.0625rem 0rem 0rem 0rem rgba(0, 0, 0, 0.13) inset,
    -0.0625rem 0rem 0rem 0rem rgba(0, 0, 0, 0.13) inset,
    0rem -0.0625rem 0rem 0rem rgba(0, 0, 0, 0.17) inset,
    0rem 0.0625rem 0rem 0rem rgba(204, 204, 204, 0.5) inset;
  border-radius: 0.5rem;
  pointer-events: none;
  mix-blend-mode: luminosity;
}

.orichi-field-input .orichi-error-message {
  margin-top: 4px;
}
.orichi-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

.orichi-section-header {
  padding: 16px;
  display: flex;
  width: 100%;
  justify-content: center;
  border-bottom: 1px solid rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.orichi-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animation for split sections */
.orichi-product-section-container,
.orichi-form-section-container {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Information Styles */
.orichi-product-info {
  margin-bottom: 24px;
}

/* Empty State Styles */
.orichi-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: #ffffff;
  min-height: 200px;
  transition: all 0.3s ease;
}

.orichi-empty-icon {
  margin-bottom: 16px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.orichi-empty-state:hover .orichi-empty-icon {
  transform: scale(1.05);
}

.orichi-empty-content {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.orichi-empty-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.orichi-empty-description {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Empty State Size Variants */
.orichi-empty-state-sm {
  padding: 24px 16px;
  min-height: 120px;
}

.orichi-empty-state-sm .orichi-empty-icon svg {
  width: 32px;
  height: 32px;
}

.orichi-empty-state-sm .orichi-empty-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.orichi-empty-state-sm .orichi-empty-description {
  font-size: 12px;
}

.orichi-empty-state-lg {
  padding: 64px 32px;
  min-height: 280px;
}

.orichi-empty-state-lg .orichi-empty-icon svg {
  width: 64px;
  height: 64px;
}

.orichi-empty-state-lg .orichi-empty-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.orichi-empty-state-lg .orichi-empty-description {
  font-size: 16px;
}

/* Empty State Type Variants */

.orichi-empty-form {
  border-color: #fef3c7;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.orichi-empty-form:hover {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fafbfc 0%, #fef3c7 100%);
}

.orichi-empty-search {
  border-color: #f3e8ff;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.orichi-empty-search:hover {
  border-color: #e9d5ff;
  background: linear-gradient(135deg, #fafbfc 0%, #f3e8ff 100%);
}

/* Empty State Button */
.orichi-empty-button {
  margin-top: 16px;
  padding: 8px 12px;
  background: #333;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(51, 51, 51, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orichi-empty-button svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.orichi-empty-button:hover {
  background: #272727;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.orichi-empty-button:active {
  background: #1a1a1a;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(51, 51, 51, 0.2);
}

/* Product Search Modal Styles */
.orichi-product-search-container {
  max-width: 90%;
  width: 800px;
  max-height: 95vh;
  overflow: hidden;
  box-sizing: border-box;
}

.orichi-product-search-body {
  padding: 24px;
  max-height: 60vh;
  min-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.orichi-search-container {
  margin-bottom: 24px;
}

.orichi-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.orichi-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Product search modal body with scroll */
.orichi-product-search-body {
  max-height: 60vh;
  overflow-y: auto;
}

.orichi-products-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
/* Product List Item Styles */
.orichi-product-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.orichi-product-list-item:hover {
  border-color: #333333;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.orichi-product-checkbox {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.orichi-product-checkbox input[type="checkbox"],
.orichi-product-checkbox-input {
  display: none !important;
}

.orichi-checkbox-label {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.orichi-checkbox-label:hover {
  border-color: #333333;
}

.orichi-product-checkbox-input:checked + .orichi-checkbox-label {
  background: #333333;
  border-color: #333333;
}

.orichi-product-checkbox-input:checked + .orichi-checkbox-label::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.orichi-product-list-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #f3f4f6;
  flex-shrink: 0;
}

.orichi-product-list-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.orichi-product-list-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orichi-product-list-price {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

.orichi-product-list-sku {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* No Products State */
.orichi-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}

.orichi-no-products p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive design for product search */
@media (max-width: 640px) {
  .orichi-empty-state {
    width: 100%;
  }
  .orichi-products-grid,
  .orichi-no-products {
    box-sizing: border-box;
    width: 100%;
  }
  .orichi-product-search-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .orichi-product-search-body {
    padding: 16px;
    max-height: calc(100vh - 120px);
    min-height: calc(100vh - 120px);
  }

  .orichi-search-input {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  .orichi-search-container {
    margin-bottom: 16px;
  }

  .orichi-products-grid {
    gap: 8px;
  }

  .orichi-product-list-item {
    padding: 16px 16px;
    gap: 16px;
    min-height: 72px;
    border-radius: 8px;
  }

  .orichi-product-list-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
  }

  .orichi-product-list-title {
    font-size: 15px;
    line-height: 1.4;
  }

  .orichi-product-list-price {
    font-size: 15px;
    font-weight: 600;
  }

  .orichi-product-list-sku {
    font-size: 13px;
  }

  .orichi-checkbox-label {
    width: 20px;
    height: 20px;
    border-width: 2px;
  }

  .orichi-no-products {
    padding: 32px 16px;
  }

  .orichi-no-products p {
    font-size: 15px;
  }

  .orichi-loading-products {
    padding: 32px 16px;
  }

  .orichi-loading-products p {
    font-size: 15px;
  }
}

@media (max-width: 768px) and (min-width: 641px) {
  .orichi-product-search-container {
    max-width: 95%;
    width: 95%;
    margin: 0;
    border-radius: 8px;
  }

  .orichi-product-search-body {
    padding: 20px;
  }

  .orichi-search-input {
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }
}

.orichi-product-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  margin-bottom: 16px;
  position: relative;
}

.orichi-product-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.orichi-product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.orichi-product-details {
  flex: 1;
}

.orichi-product-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.orichi-product-property {
  margin: 2px 0;
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.orichi-product-property strong {
  color: #333;
  font-weight: 500;
}

/* Product Actions */
.orichi-product-actions {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}

.orichi-product-actions .orichi-empty-button {
  margin: 0px;
}

.orichi-quantity-control {
  display: flex;
  align-items: center;
  gap: 25px;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 8px;
}

.orichi-quantity-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin: 0px;
}

.orichi-quantity-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.orichi-quantity-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: background-color 0.2s;
}

.orichi-quantity-btn:hover {
  background: #e9ecef;
}

.orichi-quantity-input {
  border: none;
  width: 30px;
  height: 32px;
  text-align: center;
  font-size: 14px;
  background: #ffffff;
  outline: none;
}

.orichi-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  transition: background-color 0.2s;
  padding: 0px;
  margin: 0px;
}

.orichi-remove-btn:hover {
  background: #f8f9fa;
}

/* Product Fields Styles */
.orichi-product-fields-section {
  margin-top: 20px;
}

.orichi-product-fields {
  display: grid;
  gap: 16px;
}

/* Form Fields Styles */
.orichi-form-section {
  padding: 16px 0px;
  margin: 0px 16px;
  border-bottom: 1px solid #e1e3e5;
}

.orichi-form-section-container h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  text-transform: none;
  letter-spacing: normal;
}

/* Form Row Styles */
.orichi-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.orichi-form-row:last-child {
  margin-bottom: 0;
}

/* Single column for wide fields */
.orichi-form-row.full-width {
  grid-template-columns: 1fr;
}

/* Field Container */
.orichi-field-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orichi-field-required {
  color: #dc3545;
  font-size: 14px;
}

/* Form Input Styles */
.orichi-form-input {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  border-radius: 0.5rem;
  border: 0.04125rem solid rgba(138, 138, 138, 1);
  box-sizing: border-box;
  box-shadow: 0 0 0 -0.125rem rgba(0, 91, 211, 1);
  tab-size: 4;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  box-sizing: border-box;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  margin: 0;
  font-weight: 400;
  letter-spacing: initial;
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0.375rem 0.75rem;
  background: none;
  appearance: none;
  caret-color: #333;
  color: #333;
  align-items: center;
  font-size: 14px;
  line-height: 1.3;
  max-height: 32px;
}

.orichi-form-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.orichi-form-input::placeholder {
  color: #999;
  font-size: 14px;
}

.orichi-form-textarea {
  resize: vertical;
}

/* Error Message */
.orichi-error-message {
  color: #dc3545;
  font-size: 12px;
}

/* Responsive Design for Split Layout */
@media (max-width: 768px) {
  .orichi-split-container {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .orichi-product-section-container {
    padding: 20px;
  }

  .orichi-form-section {
    padding: 12px 0px;
    margin: 0px 12px;
  }

  .orichi-form-section-container {
    padding: 20px;
    margin-bottom: 10px;
  }

  .orichi-section-title {
    font-size: 14px;
  }

  .orichi-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .orichi-product-header {
    gap: 12px;
  }

  .orichi-product-image {
    width: 50px;
    height: 50px;
  }

  .orichi-product-title {
    font-size: 13px;
  }

  .orichi-product-property {
    font-size: 11px;
  }

  /* Empty state responsive */
  .orichi-empty-state {
    padding: 32px 16px;
    min-height: 160px;
  }

  .orichi-empty-title {
    font-size: 16px;
  }

  .orichi-empty-description {
    font-size: 13px;
  }

  .orichi-empty-button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Additional responsive breakpoint for very small screens */
@media (max-width: 480px) {
  .orichi-section-title {
    font-size: 13px;
  }

  .orichi-form-input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .orichi-field-label {
    font-size: 13px;
  }

  .orichi-quantity-input-group {
    transform: scale(0.9);
  }
}

.orichi-product-wrapper {
  display: flex;
  gap: 20px;
  flex: 1;
}

/* Loading Spinner Styles */
.orichi-loading-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.orichi-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007cba;
  border-radius: 50%;
  animation: orichi-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes orichi-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.orichi-loading-products p {
  color: #666;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

/* Autocomplete Styles */
.orichi-autocomplete-container {
  position: relative;
  width: 100%;
}

.orichi-autocomplete-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.orichi-autocomplete-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.orichi-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10001;
  max-height: 200px;
  overflow-y: auto;
}

.orichi-autocomplete-results {
  padding: 0;
}

.orichi-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  transition: background-color 0.2s;
}

.orichi-autocomplete-item:last-child {
  border-bottom: none;
}

.orichi-autocomplete-item:hover,
.orichi-autocomplete-item.active {
  background-color: #f3f4f6;
  color: #1f2937;
}

.orichi-autocomplete-item.orichi-no-results {
  color: #6b7280;
  cursor: default;
  font-style: italic;
}

.orichi-autocomplete-item.orichi-no-results:hover {
  background-color: transparent;
}

.orichi-autocomplete-loading {
  padding: 12px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .orichi-autocomplete-dropdown {
    max-height: 150px;
  }

  .orichi-autocomplete-item {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Product removal animation - similar to modal animation */
.orichi-product-remove {
  animation: orichi-slide-down 0.2s ease forwards;
}

@keyframes orichi-slide-down {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.orichi-product-header {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Phone Input Styles */
.orichi-phone-container {
  position: relative;
  width: 100%;
}

.orichi-phone-input-group {
  display: flex;
  align-items: center;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0.5rem;
  outline: 0.04125rem solid rgba(138, 138, 138, 1);
  font-size: 14px;
  box-sizing: border-box;
}

.orichi-country-code-search input {
  border-left: 0.04125rem;
}

.orichi-phone-input-group input {
  border-left: none;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  box-shadow: none !important;
}

.orichi-phone-input-group .orichi-phone-input-group {
  outline: none;
}

.orichi-country-code-dropdown {
  position: relative;
  border-right: 1px solid rgba(138, 138, 138, 1);
}

.orichi-country-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
  justify-content: center;
}

.orichi-country-code-btn:hover {
  background: #e9ecef;
}

.orichi-country-code {
  font-weight: 500;
  font-size: 13px;
}

.orichi-dropdown-icon {
  color: #666;
  transition: transform 0.2s ease;
}

.orichi-country-code-dropdown-menu {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  background: white;
  border: 1px solid #e1e3e5;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  max-height: 300px;
  overflow: hidden;
  min-width: 280px;
}

.orichi-country-code-search {
  padding: 8px;
  border-bottom: 1px solid #e1e3e5;
}

.orichi-country-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: 0.5rem !important;
  border: 0.04125rem solid rgba(138, 138, 138, 1) !important;
  box-shadow: 0 0 0 -0.125rem rgba(0, 91, 211, 1) !important;
  font-size: 13px;
  outline: none;
}

.orichi-country-search-input:focus {
  border-color: #007bff !important;
}

.orichi-country-code-list {
  max-height: 240px;
  overflow-y: auto;
}

.orichi-country-code-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.orichi-country-code-item:hover {
  background: #f8f9fa;
}

.orichi-country-name {
  flex: 1;
  color: #333;
}

.orichi-country-code-item .orichi-country-code {
  color: #666;
  font-weight: 500;
  min-width: 50px;
  text-align: right;
}

.orichi-phone-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  background: transparent;
  border: none;
}

.orichi-phone-input:focus,
.orichi-phone-input:hover {
  outline-offset: 0.0625rem;
  outline: 0.125rem solid rgba(0, 91, 211, 1);
  box-shadow: 0 0 0 2px rgba(0, 91, 211, 0.2) !important;
}

/* Responsive phone input */
@media (max-width: 640px) {
  .orichi-country-code-dropdown-menu {
    min-width: 260px;
    left: -50px;
  }

  .orichi-country-code-item {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .orichi-modal-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 10px;
  }

  .orichi-phone-input {
    width: 100%;
  }
}
