/* Custom styles for Order Search Portal - LESS Version */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.button-gradient {
  background: linear-gradient(135deg, #d946a6 0%, #a855f7 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
}
.button-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 70, 166, 0.4);
}
.button-gradient:active {
  transform: translateY(0);
}
.button-gradient:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.card-base {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(90, 31, 125, 0.15);
  transition: all 0.3s ease;
}
.card-base:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(90, 31, 125, 0.2);
}
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8a8d8 0%, #f5c6e8 50%, #e8b4e0 100%);
}
.order-search-page {
  min-height: 100vh;
  padding-bottom: 60px;
}
.header-banner {
  background: linear-gradient(135deg, #f8a8d8 0%, #f5c6e8 100%);
  padding: 40px 20px;
  text-align: center;
  color: white;
}
.header-banner .brand-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(90, 31, 125, 0.2);
}
.header-banner .brand-subtitle {
  font-size: 0.9rem;
  margin: 8px 0 0 0;
  opacity: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.search-section {
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8a8d8 0%, #f5c6e8 50%, #e8b4e0 100%);
}
.search-section .search-container {
  max-width: 600px;
  margin: 0 auto;
}
.search-section .search-title {
  text-align: center;
  color: #5a1f7d;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-section .search-input-group {
  display: flex;
  gap: 12px;
  background: white;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(90, 31, 125, 0.15);
}
.search-section .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 10px 16px;
  color: #333;
}
.search-section .search-input::placeholder {
  color: #999;
  font-style: italic;
}
.search-section .search-button {
  background: linear-gradient(135deg, #d946a6 0%, #a855f7 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
  padding: 10px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-section .search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 70, 166, 0.4);
}
.search-section .search-button:active {
  transform: translateY(0);
}
.search-section .search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}
.loading-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear;
}
.orders-section {
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8a8d8 0%, #f5c6e8 50%, #e8b4e0 100%);
  max-width: 1200px;
  margin: 0 auto;
}
.orders-section .orders-title {
  text-align: center;
  color: #5a1f7d;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 30px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.order-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(90, 31, 125, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}
.order-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(90, 31, 125, 0.2);
}
.order-card .order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.order-card .order-card-header .order-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.order-card .order-card-header .order-collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #d946a6;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.order-card .order-card-header .order-collapse-btn:hover {
  background: rgba(90, 31, 125, 0.1);
}
.order-card .order-card-header .order-collapse-btn .collapse-icon {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}
.order-card .order-card-header .order-collapse-btn.collapsed .collapse-icon {
  transform: rotate(180deg);
}
.order-card .order-card-header .order-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5a1f7d;
}
.order-card .order-content {
  max-height: 2000px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.order-card .order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.order-card .order-status.completed {
  background-color: #d1fae5;
  color: #065f46;
}
.order-card .order-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}
.order-card .order-status.cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}
.order-card .order-customer-info {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.order-card .order-detail {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.order-card .order-detail .order-detail-label {
  color: #999;
  font-weight: 600;
  display: inline-block;
  min-width: 120px;
  margin-right: 10px;
}
.order-card .order-detail .order-detail-value {
  color: #333;
  font-weight: 500;
  flex: 1;
}
.order-card .order-detail .phone-masked,
.order-card .order-detail .tracking-masked,
.order-card .order-detail .address-masked,
.order-card .order-detail .status-value {
  letter-spacing: 0.5px;
}
.order-card .order-products {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.order-card .order-products .products-label {
  color: #999;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.order-card .order-products .products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-card .order-products .product-item {
  display: flex;
  gap: 12px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  align-items: flex-start;
}
.order-card .order-products .product-item .product-image-wrapper {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.order-card .order-products .product-item .product-image-wrapper .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-card .order-products .product-item .product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.order-card .order-products .product-item .product-info .product-name {
  display: block;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}
.order-card .order-products .product-item .product-info .product-qty {
  color: #999;
  font-weight: 600;
  font-size: 0.8rem;
}
.order-card .order-products .product-item .product-info .product-price {
  color: #d946a6;
  font-weight: 700;
  font-size: 0.9rem;
}
.order-card .order-footer {
  display: flex;
  justify-content: flex-end;
}
.order-card .order-footer .order-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #d946a6;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #5a1f7d;
}
.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  stroke: rgba(90, 31, 125, 0.3);
  margin: 0 auto 20px;
}
.empty-state .empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.empty-state .empty-subtitle {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.8;
}
.error-alert {
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid rgba(255, 68, 68, 0.3);
  border-radius: 20px;
  padding: 20px;
  margin: 20px;
  display: flex;
  gap: 16px;
}
.error-alert .error-content {
  display: flex;
  gap: 16px;
  width: 100%;
}
.error-alert .error-icon {
  width: 24px;
  height: 24px;
  stroke: #cc3333;
  flex-shrink: 0;
}
.error-alert .error-title {
  font-weight: 700;
  color: #cc3333;
  margin: 0 0 8px 0;
}
.error-alert .error-message {
  color: #cc3333;
  margin: 0;
  font-size: 0.95rem;
}
.hidden {
  display: none !important;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes bounceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast-enter {
  animation: slideInUp 0.3s ease-out;
}
.toast-exit {
  animation: slideOutDown 0.3s ease-in;
}
@media (max-width: 768px) {
  .header-banner .brand-title {
    font-size: 2.5rem;
  }
  .search-section .search-title {
    font-size: 1.1rem;
  }
  .search-section .search-input-group {
    flex-direction: column;
    gap: 10px;
  }
  .search-section .search-button {
    width: 100%;
    padding: 12px;
  }
  .orders-grid {
    grid-template-columns: 1fr;
  }
  .orders-section .orders-title {
    font-size: 1.2rem;
  }
  .order-card .order-card-header {
    flex-direction: column;
    gap: 10px;
  }
  .order-card .order-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .order-card .order-detail .order-detail-label {
    min-width: auto;
    margin-right: 0;
  }
  .order-card .product-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-card .product-item .product-qty,
  .order-card .product-item .product-price {
    margin-right: 0;
  }
}
