﻿.ec-phone-validation-message {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ec-phone-validation-message.valid {
  color: #1e8e3e;
}

.ec-phone-validation-message.invalid {
  color: #d93025;
}

.ec-duplicate-order-warning {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.45;
}

.ec-duplicate-order-popup {
  text-align: left;
}

.ec-duplicate-order-swal {
  border-radius: 8px;
  margin-top: 18px;
  padding: 0 0 18px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  width: min(620px, calc(100vw - 28px)) !important;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.ec-device-blocked-swal {
  border-radius: 8px;
  width: min(540px, calc(100vw - 28px)) !important;
}

.ec-device-blocked-swal .swal2-title {
  color: #991b1b;
}

.ec-device-blocked-popup {
  text-align: center;
}

.ec-device-blocked-popup p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.65;
}

.ec-duplicate-order-swal::-webkit-scrollbar {
  width: 10px;
}

.ec-duplicate-order-swal::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.ec-duplicate-order-swal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border: 2px solid #f1f5f9;
  border-radius: 999px;
}

.ec-duplicate-order-swal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b, #475569);
}

.ec-duplicate-order-swal-container {
  align-items: flex-start !important;
  padding-top: 18px !important;
}

.ec-duplicate-order-swal .swal2-icon {
  width: 74px;
  height: 74px;
  margin: 30px auto 16px;
}

.ec-duplicate-order-swal .swal2-title {
  margin: 0 18px 16px;
  padding: 0;
  font-size: 28px;
}

.ec-duplicate-order-swal .swal2-html-container {
  margin: 0 22px;
  overflow: visible;
}

.ec-duplicate-order-popup p {
  margin: 0 auto;
  max-width: 500px;
  line-height: 1.7;
  text-align: center;
}

.swal2-popup .swal2-close.ec-duplicate-order-close {
  all: unset;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  position: absolute !important;
  inset: 18px 18px auto auto !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #fecaca !important;
  border-radius: 50% !important;
  background: #fff1f2 !important;
  color: #dc2626 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .14) !important;
  outline: none !important;
  transform: none !important;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

.swal2-popup .swal2-close.ec-duplicate-order-close::before,
.swal2-popup .swal2-close.ec-duplicate-order-close::after {
  content: "" !important;
  box-sizing: border-box !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: 15px !important;
  height: 2px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

.swal2-popup .swal2-close.ec-duplicate-order-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.swal2-popup .swal2-close.ec-duplicate-order-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.swal2-popup .swal2-close.ec-duplicate-order-close:hover,
.swal2-popup .swal2-close.ec-duplicate-order-close:focus {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, .2) !important;
  transform: scale(1.04) !important;
}

.ec-duplicate-order-items {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
}

.ec-duplicate-order-items > strong {
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

.ec-duplicate-order-items table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.ec-duplicate-order-items th,
.ec-duplicate-order-items td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
}

.ec-duplicate-order-items th {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ec-duplicate-order-items tr:last-child td {
  border-bottom: 0;
}

.ec-duplicate-order-id {
  width: 72px;
  font-weight: 800;
  color: #1d4ed8;
  text-align: center;
}

.ec-duplicate-order-image {
  width: 72px;
}

.ec-duplicate-order-image img {
  display: block;
  margin: 0 auto;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: none !important;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #dbe3ef;
}

.ec-duplicate-order-name {
  font-weight: 700;
  color: #111827;
  word-break: break-word;
  text-align: center;
}

.ec-duplicate-order-name span {
  color: #64748b;
  font-weight: 700;
}

.ec-duplicate-order-price {
  width: 110px;
  font-weight: 800;
  color: #0f766e;
  text-align: center;
  word-break: normal;
  white-space: nowrap;
}

.ec-duplicate-order-popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.ec-duplicate-order-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #155e75 0%, #2563eb 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ec-duplicate-order-popup-btn:hover {
  color: #fff;
  filter: brightness(1.05);
}

.ec-duplicate-order-popup-whatsapp {
  background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%);
}

.ec-duplicate-order-popup-close {
  margin-left: auto;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}

.ec-duplicate-order-popup-close:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}

.ec-duplicate-order-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

@media (max-width: 640px) {
  .ec-duplicate-order-swal .swal2-html-container {
    margin: 0 14px;
  }
  .ec-duplicate-order-popup-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ec-duplicate-order-popup-btn,
  .ec-duplicate-order-popup-close {
    width: 100%;
    margin-left: 0;
  }
  .ec-duplicate-order-items {
    padding: 10px;
  }
}



