﻿.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-phone-validation-message.checking {
  color: #475569;
}

.ec-phone-validation-message.blocked {
  color: #b42318;
}

.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;
  }
}




/* Scoped checkout phone error dialog; other SweetAlert popups remain independent. */
.swal2-container.ec-phone-error-container {
  overflow-y: auto;
  padding: 16px;
}
.swal2-popup.ec-phone-error-popup {
  height: auto;
  max-height: none;
  overflow: visible;
  align-self: safe center;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-width: 100%;
  padding: 28px 26px 26px;
  border: 1px solid #fee2e2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
  font-family: inherit;
}
.ec-phone-error-popup .ec-phone-error-icon {
  margin: 4px auto 20px;
  border-color: #fda4af;
  background: #fff1f2;
  color: #e11d48;
  transform: scale(.82);
}
.ec-phone-error-popup .swal2-x-mark-line-left,
.ec-phone-error-popup .swal2-x-mark-line-right { background-color: #e11d48; }
.ec-phone-error-popup .ec-phone-error-title {
  margin: 0;
  padding: 0;
  color: #172b3a;
  font-size: clamp(21px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ec-phone-error-popup .ec-phone-error-message {
  overflow: visible;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 12px 0 0;
  padding: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ec-phone-error-popup .ec-phone-error-actions { width: 100%; margin: 24px 0 0; padding: 0; }
.ec-phone-error-popup button.ec-phone-error-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-kit-primary, #0f766e);
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .12);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
  transition: filter .18s ease, box-shadow .18s ease;
}
.ec-phone-error-popup button.ec-phone-error-confirm:hover { filter: brightness(.92); }
.ec-phone-error-popup button.ec-phone-error-confirm:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 4px;
}
@media (max-width: 480px) {
  .swal2-popup.ec-phone-error-popup { padding: 22px 20px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-phone-error-popup, .ec-phone-error-popup *, .ec-phone-error-popup *::before, .ec-phone-error-popup *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Duplicate-order dialog: match the rounded phone-validation design. */
.swal2-container.ec-duplicate-order-dialog-container {
  overflow-y: auto;
  padding: 16px !important;
}
.swal2-popup.ec-duplicate-order-swal {
  box-sizing: border-box;
  width: min(600px, calc(100vw - 32px)) !important;
  height: auto;
  max-height: none;
  overflow: visible;
  align-self: safe center;
  margin: 0;
  padding: 26px;
  border: 1px solid #ffedd5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
  font-family: inherit;
}
.ec-duplicate-order-swal .swal2-icon {
  width: 64px;
  height: 64px;
  margin: 6px auto 20px;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #ea580c;
}
.ec-duplicate-order-swal .swal2-title {
  margin: 0 10px 14px;
  color: #172b3a;
  font-size: clamp(21px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ec-duplicate-order-swal .swal2-html-container {
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.ec-duplicate-order-swal .ec-duplicate-order-popup p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ec-duplicate-order-swal .ec-duplicate-order-items {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.ec-duplicate-order-swal .ec-duplicate-order-items > strong { margin-bottom: 14px; color: #172b3a; font-size: 15px; }
.ec-duplicate-order-swal .ec-duplicate-order-items table { margin: 0; border: 0; border-radius: 10px; }
.ec-duplicate-order-swal .ec-duplicate-order-items th { padding: 10px 6px; font-size: 10px; color: #64748b; }
.ec-duplicate-order-swal .ec-duplicate-order-items td { padding: 12px 6px; font-size: 13px; overflow-wrap: anywhere; }
.ec-duplicate-order-swal .ec-duplicate-order-id { color: #475569; }
.ec-duplicate-order-swal .ec-duplicate-order-price { white-space: normal; color: #0f766e; }
.ec-duplicate-order-swal .ec-duplicate-order-image img { border-radius: 10px; }
.ec-duplicate-order-swal .ec-duplicate-order-popup-actions { gap: 10px; margin-top: 20px; }
.ec-duplicate-order-swal .ec-duplicate-order-popup-btn {
  box-sizing: border-box;
  flex: 1 1 130px;
  min-height: 46px;
  margin: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-kit-primary, #0f766e);
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .1);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  transition: filter .18s ease;
}
.ec-duplicate-order-swal .ec-duplicate-order-popup-whatsapp { background: #15803d; }
.ec-duplicate-order-swal .ec-duplicate-order-popup-btn:hover { color: #fff; filter: brightness(.92); }
.ec-duplicate-order-swal .ec-duplicate-order-popup-btn:focus-visible,
.ec-duplicate-order-swal .ec-duplicate-order-close:focus-visible { outline: 3px solid #0f766e !important; outline-offset: 4px; }
.ec-duplicate-order-swal .swal2-close.ec-duplicate-order-close {
  inset: 14px 14px auto auto !important;
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  box-shadow: none !important;
}
.ec-duplicate-order-swal .swal2-close.ec-duplicate-order-close:hover {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
  transform: none !important;
}
@media (max-width: 480px) {
  .swal2-popup.ec-duplicate-order-swal { padding: 22px 16px; border-radius: 18px; }
  .ec-duplicate-order-swal .ec-duplicate-order-items { padding: 10px; }
  .ec-duplicate-order-swal .ec-duplicate-order-items td { padding: 10px 4px; font-size: 11px; }
  .ec-duplicate-order-swal .ec-duplicate-order-items th { padding: 8px 3px; font-size: 9px; letter-spacing: 0; }
  .ec-duplicate-order-swal .ec-duplicate-order-image img { width: 38px !important; height: 38px !important; min-width: 38px !important; }
}
@media (max-width: 640px) {
  .ec-duplicate-order-swal .ec-duplicate-order-popup-btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-duplicate-order-swal, .ec-duplicate-order-swal *, .ec-duplicate-order-swal *::before, .ec-duplicate-order-swal *::after {
    animation: none !important;
    transition: none !important;
  }
}
