/* Custom Styles for China Export Factory (chinaexportfactory.com) */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #3f3f46;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-white-box {
  background-color: #FFFFFF !important;
}

[dir="rtl"] {
  text-align: right;
}

/* Subtle pulse for urgent orders */
@keyframes urgent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.urgent-badge {
  animation: urgent-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Account and order controls */
[hidden] { display: none !important; }
.cef-input { display:block; width:100%; padding:.55rem .75rem; margin-top:.3rem; border:1px solid #d4d4d8; border-radius:4px; background:transparent; }
.cef-button { display:inline-block; padding:.55rem 1rem; border-radius:4px; background:#ea580c; color:white; font-size:.85rem; white-space:nowrap; }
.cef-button:disabled { opacity:.5; cursor:wait; }
.cef-order { padding:1.25rem; border:1px solid #d4d4d8; border-radius:6px; }
.cef-order summary { cursor:pointer; font-size:.85rem; margin-top:1rem; }
.cef-order dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.8rem; margin:1rem 0; font-size:.85rem; }
.cef-order dt { color:#71717a; }
.cef-order dd { overflow-wrap:anywhere; }
.cef-order li { font-size:.8rem; margin-top:.5rem; overflow-wrap:anywhere; }
#supplier-header button, #supplier-header a { white-space:nowrap; flex-shrink:0; }
#supplier-header > div:first-child { gap:1rem; }
#supplier-header nav { gap:.25rem; }
#supplier-header nav button { padding-left:.6rem; padding-right:.6rem; }
@media (min-width:1024px) and (max-width:1279px) {
  #supplier-header nav { display:none; }
  #supplier-header > div:nth-child(2) { display:flex; }
}
@media (max-width:639px) {
  #supplier-header > div:first-child { height:auto; min-height:5rem; padding:.75rem 1rem; flex-wrap:wrap; }
  #supplier-header > div:first-child > div { gap:.5rem; }
  #supplier-header > div:first-child > div:last-child { width:100%; justify-content:flex-end; }
}

#buyer-header button, #buyer-header a { white-space:nowrap; flex-shrink:0; }
#buyer-header > div:first-child { gap:1rem; }
#buyer-header nav button { padding-left:.6rem; padding-right:.6rem; }
@media (max-width:767px) {
  #buyer-header > div:first-child { height:auto; min-height:5rem; padding:.75rem 1rem; flex-wrap:wrap; }
  #buyer-header > div:first-child > div { gap:.5rem; }
  #buyer-header > div:first-child > div:last-child { width:100%; justify-content:flex-end; flex-wrap:wrap; }
}
