/* Cart options — minimal modern */
.ezlens-cart-opts {
  direction: rtl;
  margin-top: 8px;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  max-width: 280px;
}
.ezlens-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}
.ezlens-cart-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.ezlens-cart-btn-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  position: relative;
  flex-shrink: 0;
}
.ezlens-cart-btn-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
}

.ezlens-cart-panel {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.ezlens-cart-panel[hidden] {
  display: none !important;
}
.ezlens-cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}
.ezlens-cart-panel-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.ezlens-cart-panel-body {
  padding: 10px 12px 12px;
}

.ezlens-cart-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin: 8px 0 6px;
}
.ezlens-cart-group-title:first-child {
  margin-top: 0;
}

.ezlens-cart-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ezlens-cart-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.ezlens-cart-rows li:last-child {
  border-bottom: none;
}
.ezlens-cart-rows .k {
  color: #64748b;
  flex-shrink: 0;
}
.ezlens-cart-rows .v {
  color: #0f172a;
  font-weight: 600;
  text-align: left;
  word-break: break-word;
}

.ezlens-cart-extra {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #047857;
}
.ezlens-cart-extra strong {
  font-weight: 700;
}

/* Accordion */
.ezlens-cart-acc {
  margin-bottom: 6px;
}
.ezlens-cart-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}
.ezlens-cart-acc-toggle[aria-expanded="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
}
.ezlens-cart-acc-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.ezlens-cart-acc-toggle[aria-expanded="true"] .ezlens-cart-acc-chevron {
  transform: rotate(225deg);
}
.ezlens-cart-acc-body {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.ezlens-cart-acc-body[hidden] {
  display: none !important;
}

/* Inline */
.ezlens-cart-mode-inline .ezlens-cart-group {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 6px;
}

/* Table layout */
.ezlens-cart-opts {
  max-width: 320px;
}
.ezlens-cart-table-wrap {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.ezlens-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 12px;
}
.ezlens-cart-table th,
.ezlens-cart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  text-align: right;
}
.ezlens-cart-table tr:last-child th,
.ezlens-cart-table tr:last-child td {
  border-bottom: none;
}
.ezlens-cart-table th {
  width: 42%;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
}
.ezlens-cart-table td {
  color: #0f172a;
  font-weight: 600;
}
.ezlens-cart-val {
  word-break: break-word;
}
.ezlens-cart-empty {
  color: #cbd5e1;
}

.ezlens-cart-thumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1d4ed8;
  max-width: 100%;
}
.ezlens-cart-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  flex-shrink: 0;
}
.ezlens-cart-thumb-name {
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.ezlens-cart-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}
.ezlens-cart-file-icon {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 10px;
  font-weight: 800;
}

.ezlens-cart-panel {
  max-width: 340px;
}
.ezlens-cart-panel-body .ezlens-cart-table-wrap {
  border: none;
  border-radius: 0;
}
.ezlens-cart-panel-body .ezlens-cart-table th {
  background: #f8fafc;
}
