.wfy-portal{
  --wfy-accent:#4f46e5;
  --wfy-accent-ink:#3730a3;
  --wfy-accent-soft:#eef2ff;
  --wfy-accent-border:#c7d2fe;
  --wfy-warn-bg:#fef3c7;
  --wfy-warn-fg:#92400e;
  --wfy-success-bg:#ecfdf3;
  --wfy-success-fg:#166534;
  --wfy-surface:#ffffff;
  --wfy-border:#e5e7eb;
  --wfy-muted:#6b7280;
  --wfy-text:#0f172a;
  --wfy-radius:12px;
  --wfy-shadow:0 6px 20px rgba(15,23,42,.06);
  max-width:860px;
  margin:32px auto;
  padding:0 16px 24px;
  font-family:"Inter","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  color:var(--wfy-text);
  line-height:1.55;
}
.wfy-portal__card{
  background:var(--wfy-surface);
  border:1px solid var(--wfy-border);
  border-radius:var(--wfy-radius);
  padding:20px 22px;
  box-shadow:var(--wfy-shadow);
  margin-bottom:18px;
}
.wfy-portal__card--data{padding:22px 24px}
.wfy-portal__title{margin:0;font-size:21px;font-weight:700;letter-spacing:-.01em}
.wfy-portal__header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.wfy-portal__header-meta{display:grid;gap:2px;text-align:right;justify-items:end}
.wfy-portal__header--returns{
  padding-bottom:12px;
  border-bottom:1px solid var(--wfy-border);
  margin-bottom:10px;
}
.wfy-portal__header--returns .wfy-portal__title{font-size:28px;line-height:1.1}
.wfy-portal__hint{color:var(--wfy-muted);margin:10px 0 14px;font-size:14px}
.wfy-portal__form{display:grid;gap:14px}
.wfy-portal__field label{display:block;font-weight:650;font-size:13px;color:var(--wfy-text);margin-bottom:6px}
.wfy-portal__field input,
.wfy-portal__field select,
.wfy-portal__field textarea{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid var(--wfy-border);
  font-size:15px;
  background:#fff;
  transition:border-color .12s, box-shadow .12s;
}
.wfy-portal__field input:focus,
.wfy-portal__field select:focus,
.wfy-portal__field textarea:focus{
  outline:none;
  border-color:var(--wfy-accent);
  box-shadow:0 0 0 3px rgba(79,70,229,.14);
}
.wfy-portal__field textarea{resize:vertical}
.wfy-portal__button{
  appearance:none;
  border:1px solid var(--wfy-accent);
  background:var(--wfy-accent);
  color:#fff;
  font-weight:700;
  font-size:15px;
  padding:12px 18px;
  border-radius:10px;
  cursor:pointer;
  transition:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.wfy-portal__button:not(.wfy-portal__button--ghost):hover,
.wfy-portal__button:not(.wfy-portal__button--ghost):focus-visible{
  background:var(--wfy-accent);
  border-color:var(--wfy-accent);
  transform:none;
}
.wfy-portal__button--ghost{
  background:transparent;
  color:var(--wfy-accent);
  border-color:var(--wfy-accent);
}
.wfy-portal__button:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.wfy-portal__button.is-loading{
  opacity:1;
  pointer-events:none;
}
.wfy-portal__button.is-loading::after{
  content:"";
  width:14px;
  height:14px;
  border:2px solid rgba(255,255,255,.55);
  border-top-color:#fff;
  border-radius:999px;
  animation:wfy-spin .75s linear infinite;
}
.wfy-portal__alert{
  padding:12px 14px;
  border-radius:10px;
  font-weight:650;
  margin-bottom:12px;
  border:1px solid var(--wfy-border);
}
.wfy-portal__alert--error{background:#fef2f2;color:#991b1b;border-color:#fecdd3}
.wfy-portal__alert--success{background:#ecfdf3;color:#166534;border-color:#bbf7d0}
.wfy-portal__success{background:#ecfdf3;border:1px solid #bbf7d0;color:#166534;border-radius:10px;padding:14px;margin:4px 0}
.wfy-portal__eyebrow{margin:0;color:var(--wfy-muted);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.wfy-portal__meta,.wfy-meta{color:var(--wfy-muted);font-size:13px}
.wfy-portal__timeline{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:12px}
.wfy-portal__timeline-item{border:1px solid var(--wfy-border);border-radius:10px;padding:14px 16px;background:#f9fafb}
.wfy-portal__timeline-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.wfy-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:var(--wfy-accent-ink);
  font-weight:700;
  font-size:12px;
  letter-spacing:.06em;
}
.wfy-portal__tracking-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wfy-portal__tracking-num{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;color:var(--wfy-text)}
.wfy-portal__items{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.wfy-portal__item{display:flex;gap:10px;align-items:center;background:#fff;border-radius:10px;padding:8px 10px;border:1px solid var(--wfy-border)}
.wfy-item-title{font-weight:700;color:var(--wfy-text);margin-bottom:2px}
.wfy-thumb{width:44px;height:44px;object-fit:cover;border-radius:8px;border:1px solid var(--wfy-border)}
.wfy-portal__return-status{margin-top:14px;padding-top:12px;border-top:1px solid var(--wfy-border)}
.wfy-portal__rma-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.wfy-status{font-weight:700;color:var(--wfy-text)}
.wfy-portal__order-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--wfy-border);border-radius:10px;padding:12px 14px;background:#f9fafb;margin:10px 0}
.wfy-portal__order-summary--inline{border:none;background:transparent;padding:0;margin:0 0 8px 0;box-shadow:none}
.wfy-portal__items-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:12px 0}
.wfy-card-option{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--wfy-border);border-radius:10px;padding:10px;background:#fff}
.wfy-card-option__body{display:flex;align-items:center;gap:10px}
.wfy-card-option__controls input{width:88px;text-align:center}
.wfy-portal__empty{color:var(--wfy-muted);margin:6px 0}
.wfy-portal__timeline-head .wfy-meta{flex-shrink:0}

/* Upload area */
.wfy-portal__field--upload label{display:block;margin-bottom:6px;font-weight:600}
.wfy-portal__hint-inline{font-weight:400;color:#6b7280;font-size:13px;margin-left:6px}
.wfy-upload-area{position:relative;border:2px dashed #d1d5db;border-radius:10px;padding:24px 16px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s;background:#fafafa}
.wfy-upload-area:hover,.wfy-upload-area--dragging{border-color:#6b7280;background:#f3f4f6}
.wfy-upload-area--dragging{border-style:solid}
.wfy-upload-area--disabled{opacity:.45;pointer-events:none}
.wfy-upload-area[hidden]{display:none}
.wfy-upload-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.wfy-upload-placeholder{color:#6b7280;pointer-events:none}
.wfy-upload-placeholder svg{margin:0 auto 8px;display:block}
.wfy-upload-placeholder p{margin:0;font-size:14px}
.wfy-upload-meta{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.wfy-upload-counter{font-size:12px;color:#6b7280;font-weight:650;letter-spacing:.04em}
.wfy-upload-previews{display:flex;flex-wrap:nowrap;gap:10px;justify-content:flex-start;margin-top:2px;overflow-x:auto;padding:6px 2px 12px;pointer-events:auto}
.wfy-upload-thumb{position:relative;text-align:center;min-width:72px;padding-top:2px}
.wfy-upload-thumb__img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb;background:#fff}
.wfy-upload-thumb__remove{
  position:absolute;
  top:-6px;
  right:-6px;
  left:auto;
  bottom:auto;
  transform:none;
  width:22px;
  min-width:22px;
  height:22px;
  min-height:22px;
  border-radius:999px;
  border:1px solid #dc2626;
  background:#dc2626;
  color:#fff;
  font-weight:800;
  cursor:pointer;
  line-height:1;
  margin:0;
  padding:0;
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  font-size:12px;
  z-index:1;
}
.wfy-upload-thumb__remove:hover{background:#b91c1c;border-color:#b91c1c}
.wfy-upload-thumb__name{display:block;font-size:11px;color:#6b7280;margin-top:6px;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wfy-lightbox{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.68);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
}
.wfy-lightbox.is-active{display:flex}
.wfy-lightbox__content{
  position:relative;
  background:#fff;
  padding:12px 12px 18px;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  width:min(90vw, 760px);
  max-height:92vh;
}
.wfy-lightbox__img{
  width:100%;
  max-height:78vh;
  object-fit:contain;
  border-radius:8px;
  display:block;
  background:#f3f4f6;
}
.wfy-lightbox__caption{
  margin-top:10px;
  font-size:13px;
  color:#374151;
  min-height:1.2em;
}
.wfy-lightbox__close{
  position:absolute;
  top:12px;
  right:12px;
  left:auto;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.5);
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:24px;
  font-weight:500;
  cursor:pointer;
  padding:0;
  margin:0;
  line-height:1;
  appearance:none;
  z-index:3;
}
.wfy-lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.5);
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:24px;
  font-weight:500;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
  line-height:1;
  appearance:none;
  z-index:3;
}
.wfy-lightbox__nav:disabled{
  opacity:.45;
  cursor:default;
}
.wfy-lightbox__nav--prev{left:12px}
.wfy-lightbox__nav--next{right:12px}
.wfy-returns-list{
  margin:16px 0 20px;
  display:grid;
  gap:12px;
}
.wfy-returns-list__title{
  margin:0;
  font-size:16px;
  font-weight:600;
  color:#111827;
}
.wfy-returns-order-total{
  display:flex;
  align-items:center;
  gap:6px;
}
.wfy-returns-accordion{
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
}
.wfy-returns-accordion + .wfy-returns-accordion{margin-top:10px}
.wfy-returns-accordion__summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  cursor:pointer;
  position:relative;
  padding-right:32px;
}
.wfy-returns-accordion__summary::-webkit-details-marker{display:none}
.wfy-returns-accordion[open] .wfy-returns-accordion__summary{border-bottom:1px solid #e5e7eb}
.wfy-returns-accordion__caret{
  width:10px;
  height:10px;
  border-right:2px solid #6b7280;
  border-bottom:2px solid #6b7280;
  flex:0 0 auto;
  transform:rotate(-45deg);
  color:#6b7280;
  margin-left:auto;
  transition:transform .15s ease;
}
.wfy-returns-accordion[open] .wfy-returns-accordion__caret{transform:rotate(45deg)}
.wfy-returns-accordion__summary-left{display:flex;align-items:center;gap:10px}
.wfy-returns-accordion__thumbs{display:flex;align-items:center;gap:6px}
.wfy-returns-accordion__thumbs img{
  width:36px;
  height:36px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid #e5e7eb;
}
.wfy-returns-accordion__thumb-count{
  min-width:34px;
  height:34px;
  border-radius:999px;
  background:#f3f4f6;
  color:#4b5563;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:13px;
  padding:0 10px;
}
.wfy-returns-accordion__thumb-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  border-radius:8px;
  background:#eef2ff;
  color:#4338ca;
  font-weight:700;
}
.wfy-returns-accordion__items-line{
  color:#4b5563;
  font-size:13px;
}
.wfy-returns-accordion__item-count{
  color:#4b5563;
  font-size:13px;
  font-weight:600;
}
.wfy-returns-list__body{padding:12px}
.wfy-returns-list__item{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:12px;
  background:#fff;
}
.wfy-returns-list__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.wfy-rma-label{
  font-weight:600;
  color:#111827;
}
.wfy-rma-label-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:4px;
}
.wfy-returns-list__meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:12px;
  color:#6b7280;
  margin:6px 0;
}
.wfy-returns-list__row{
  font-size:13px;
  color:#374151;
  margin:4px 0;
}
.wfy-return-shipment-panel{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8fafc;
  display:grid;
  gap:10px;
}
.wfy-return-shipment-panel__title{
  margin:0;
  font-size:13px;
  font-weight:700;
  color:#111827;
}
.wfy-return-shipment-panel__form{
  display:grid;
  gap:8px;
}
.wfy-return-shipment-panel__fields{
  display:grid;
  grid-template-columns:170px minmax(0,1fr) minmax(0,1fr);
  gap:8px;
}
.wfy-return-shipment-panel__carrier-name-wrap[hidden]{
  display:none !important;
}
.wfy-return-shipment-panel__fields select,
.wfy-return-shipment-panel__fields input,
.wfy-return-shipment-panel__url{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#fff;
  padding:9px 10px;
  font-size:13px;
}
.wfy-return-shipment-panel__confirm{
  display:flex;
}
.wfy-return-shipment-panel__confirm .wfy-portal__button{
  width:100%;
}
.wfy-return-labels{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8fafc;
}
.wfy-return-labels__title{
  margin:0 0 8px;
  font-size:13px;
  font-weight:700;
  color:#111827;
}
.wfy-return-labels__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}
.wfy-return-labels__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px 9px;
}
.wfy-return-labels__meta{
  min-width:0;
  display:grid;
  gap:2px;
}
.wfy-return-labels__name{
  font-size:13px;
  font-weight:600;
  color:#111827;
  word-break:break-word;
}
.wfy-returns-timeline{
  margin:10px 0 12px;
  padding:2px 0;
  display:flex;
  flex-direction:column;
  gap:0;
}
.wfy-returns-timeline__item{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:0 0 16px;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
}
.wfy-returns-timeline__item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:16px;
  top:34px;
  bottom:-2px;
  width:2px;
  border-radius:999px;
  background:#d6deea;
}
.wfy-returns-timeline__avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  flex:0 0 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  color:#fff;
  position:relative;
  z-index:1;
  box-shadow:0 0 0 2px #fff;
}
.wfy-returns-timeline__avatar-img{
  width:100%;
  height:100%;
  border-radius:999px;
  object-fit:cover;
  display:block;
}
.wfy-returns-timeline__avatar--has-image{
  background:transparent !important;
  color:transparent;
}
.wfy-returns-timeline__avatar--customer{background:#64748b}
.wfy-returns-timeline__avatar--merchant,
.wfy-returns-timeline__avatar--wiesefy{background:#2563eb}
.wfy-returns-timeline__avatar--media{background:#0f766e}
.wfy-returns-timeline__avatar--start{background:#0f766e}
.wfy-returns-timeline__avatar--end{background:#6b7280}
.wfy-returns-timeline__avatar--start,
.wfy-returns-timeline__avatar--end{
  font-size:9px;
  letter-spacing:0;
  text-transform:uppercase;
}
.wfy-returns-timeline__bubble{
  --wfy-timeline-bubble-bg:#fff;
  --wfy-timeline-bubble-border:#e2e8f0;
  flex:1;
  min-width:0;
  border:1px solid var(--wfy-timeline-bubble-border);
  border-radius:10px;
  background:var(--wfy-timeline-bubble-bg);
  padding:10px 12px;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
  position:relative;
}
.wfy-returns-timeline__bubble::before{
  content:"";
  position:absolute;
  left:-6px;
  top:15px;
  width:10px;
  height:10px;
  background:var(--wfy-timeline-bubble-bg);
  border-left:1px solid var(--wfy-timeline-bubble-border);
  border-top:1px solid var(--wfy-timeline-bubble-border);
  transform:rotate(-45deg);
}
.wfy-returns-timeline__bubble--merchant,
.wfy-returns-timeline__bubble--wiesefy{--wfy-timeline-bubble-bg:#ffffff;--wfy-timeline-bubble-border:#e5eaf1}
.wfy-returns-timeline__bubble--customer{--wfy-timeline-bubble-bg:#f7faff;--wfy-timeline-bubble-border:#dbe7ff}
.wfy-returns-timeline__bubble--media{--wfy-timeline-bubble-bg:#f7faff;--wfy-timeline-bubble-border:#dbe7ff}
.wfy-returns-timeline__bubble--start{--wfy-timeline-bubble-bg:#ffffff;--wfy-timeline-bubble-border:#d5dee9}
.wfy-returns-timeline__bubble--end{--wfy-timeline-bubble-bg:#f8fafc;--wfy-timeline-bubble-border:#d1d5db}
.wfy-returns-timeline__head{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.wfy-returns-timeline__name{
  font-size:12px;
  font-weight:700;
  color:#0f172a;
}
.wfy-returns-timeline__role{
  font-size:10.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#334155;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  border-radius:999px;
  padding:2px 7px;
}
.wfy-returns-timeline__kind{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#475569;
  background:#f1f5f9;
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:2px 7px;
}
.wfy-returns-timeline__time{
  margin-left:auto;
  font-size:11px;
  color:#64748b;
}
.wfy-returns-timeline__status-pill{
  margin-left:2px;
}
.wfy-returns-timeline__quote-link,
.wfy-returns-timeline__quote-block{
  width:100%;
  display:block;
  margin:0 0 8px;
  padding:6px 9px;
  border-left:3px solid #93c5fd;
  border-radius:0 8px 8px 0;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:12px;
  line-height:1.4;
}
.wfy-returns-timeline__quote-link{
  border-top:0;
  border-right:0;
  border-bottom:0;
  text-align:left;
  cursor:pointer;
}
.wfy-returns-timeline__quote-link:hover{background:#dbeafe}
.wfy-returns-timeline__quote-label{
  display:block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#1d4ed8;
  margin-bottom:2px;
}
.wfy-returns-timeline__note{
  font-size:13px;
  color:#0f172a;
  line-height:1.55;
}
.wfy-returns-timeline__media{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.wfy-returns-timeline__media-thumb{
  display:block;
  line-height:0;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #dbe7ff;
  background:#f8fafc;
}
.wfy-returns-timeline__media-thumb img{
  width:64px;
  height:64px;
  object-fit:cover;
  display:block;
}
.wfy-returns-timeline__status{margin-top:8px}
.wfy-returns-timeline__item.is-targeted .wfy-returns-timeline__bubble{
  box-shadow:0 0 0 2px rgba(37,99,235,.2);
  border-color:#93c5fd;
}
.wfy-returns-timeline__reply-btn{
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:8px;
  padding:4px 8px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.wfy-returns-timeline__reply-btn:hover{
  background:#dbeafe;
}
.wfy-returns-items{
  display:grid;
  gap:6px;
  margin-bottom:10px;
  padding:10px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
}
.wfy-returns-item{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:6px;
  flex-wrap:wrap;
}
.wfy-returns-item__name{color:#111827;font-weight:600;font-size:14px}
.wfy-returns-item__qty-inline{color:#4b5563;font-size:13px;font-weight:600}
.wfy-returns-item__price-inline{color:#111827;font-size:13px;font-weight:700}
.wfy-returns-list__items-grid{
  display:grid;
  gap:8px;
  margin:8px 0;
}
.wfy-returns-list__item-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.wfy-thumb--mini{
  width:42px;
  height:42px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid #e5e7eb;
  background:#f9fafb;
}
.wfy-thumb--placeholder{
  display:inline-block;
}
.wfy-item-title-mini{
  font-weight:650;
  font-size:13px;
  color:#111827;
  margin:0;
}
.wfy-returns-list__reason{
  align-items:flex-start;
  gap:6px;
}
.wfy-returns-list__note{
  color:#4b5563;
}
.wfy-returns-list__media{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:6px 0 2px;
}
.wfy-returns-list__media-item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.wfy-returns-list__media-thumb{
  display:block;
  line-height:0;
}
.wfy-returns-list__media-thumb img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
}
.wfy-returns-list__media-name{
  max-width:64px;
  font-size:11px;
  color:#6b7280;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wfy-returns-list__media-remove-form{
  position:absolute;
  top:-6px;
  right:-6px;
  z-index:2;
  display:none;
}
.wfy-returns-list__media.is-editing .wfy-returns-list__media-remove-form{display:block}
.wfy-returns-list__media-remove{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #dc2626;
  background:#dc2626;
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  padding:0;
  margin:0;
  cursor:pointer;
}
.wfy-returns-list__media-edit-toggle{
  width:28px;
  height:28px;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:999px;
  color:#475569;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:13px;
  font-weight:800;
  line-height:1;
  padding:0;
  margin-top:18px;
}
.wfy-returns-list__media-edit-toggle.is-active{
  border-color:#0284c7;
  background:#e0f2fe;
  color:#0c4a6e;
}
.wfy-upload{margin:6px 0}
.wfy-upload--primary{margin-top:6px}
.wfy-returns-list__upload .wfy-upload-input--inline{
  position:static;
  inset:auto;
  opacity:1;
  width:100%;
  height:auto;
  border:1px dashed #d1d5db;
  padding:10px;
  border-radius:8px;
}
.wfy-portal__form--note textarea{
  width:100%;
  margin:6px 0;
}
.wfy-portal__quote-preview{
  margin-top:6px;
  margin-bottom:6px;
  border-left:3px solid #93c5fd;
  border-radius:0 8px 8px 0;
  background:#eff6ff;
  color:#1e3a8a;
  padding:6px 9px;
}
.wfy-portal__quote-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}
.wfy-portal__quote-preview-head strong{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#1d4ed8;
}
.wfy-portal__quote-clear{
  border:0;
  background:transparent;
  color:#1d4ed8;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  padding:0;
}
.wfy-portal__quote-preview-text{
  font-size:12px;
  line-height:1.4;
}
.wfy-portal__button--secondary{
  background:var(--wfy-accent);
  color:#fff;
  border-color:var(--wfy-accent);
}
.wfy-portal__section-heading{
  display:flex;
  align-items:center;
  gap:10px;
  margin:2px 0 2px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#6b7280;
  font-weight:700;
}
.wfy-portal__section-heading::before,
.wfy-portal__section-heading::after{
  content:"";
  flex:1;
  height:1px;
  background:#e5e7eb;
}
.wfy-portal__section-heading span{white-space:nowrap}
.wfy-return-more-accordion{
  border:1px solid var(--wfy-border);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.wfy-return-more-accordion__summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  cursor:pointer;
  user-select:none;
}
.wfy-return-more-accordion__summary::-webkit-details-marker{display:none}
.wfy-return-more-accordion__summary:hover{background:#f8fafc}
.wfy-return-more-accordion[open] .wfy-return-more-accordion__summary{
  border-bottom:1px solid var(--wfy-border);
}
.wfy-return-more-accordion__line{
  min-width:0;
  flex:1;
  display:flex;
  align-items:center;
  gap:7px;
  overflow:hidden;
  white-space:nowrap;
}
.wfy-return-more-accordion__title{
  font-size:13px;
  font-weight:700;
  color:var(--wfy-text);
}
.wfy-return-more-accordion__meta{
  font-size:12px;
  color:var(--wfy-muted);
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wfy-return-more-accordion__thumbs{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.wfy-return-more-accordion__thumb{
  width:24px;
  height:24px;
  border-radius:6px;
  border:1px solid var(--wfy-border);
  object-fit:cover;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  color:#475569;
  background:#f8fafc;
}
.wfy-return-more-accordion__thumb--empty{text-transform:uppercase}
.wfy-return-more-accordion__more{
  min-width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#f3f4f6;
  color:#334155;
  font-size:11px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
}
.wfy-return-more-accordion__caret{
  width:10px;
  height:10px;
  border-right:2px solid #6b7280;
  border-bottom:2px solid #6b7280;
  transform:rotate(45deg);
  transition:transform .18s ease;
  flex-shrink:0;
  margin-right:2px;
}
.wfy-return-more-accordion[open] .wfy-return-more-accordion__caret{
  transform:rotate(-135deg);
}
.wfy-return-more-accordion__body{
  border-top:1px solid var(--wfy-border);
  padding:12px;
}
.wfy-status-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid transparent;
  background:#eef2ff;
  color:#4338ca;
}
.wfy-status-requested  { background:var(--wfy-warn-bg);     color:var(--wfy-warn-fg);    border-color:rgba(146,64,14,.22); }
.wfy-status-approved   { background:var(--wfy-success-bg); color:var(--wfy-success-fg); border-color:#bbf7d0; }
.wfy-status-in_transit { background:#eef2ff; color:#4338ca; border-color:#c7d2fe; }
.wfy-status-received   { background:var(--wfy-success-bg); color:var(--wfy-success-fg); border-color:rgba(6,95,70,.18); }
.wfy-status-closed     { background:#f3f4f6; color:#374151; border-color:#e5e7eb; }
.wfy-status-rejected   { background:#fee2e2; color:#991b1b; border-color:rgba(153,27,27,.25); }
.wfy-status-cancelled  { background:#f3f4f6; color:#6b7280; border-color:#e5e7eb; }

@keyframes wfy-spin{
  to{transform:rotate(360deg)}
}

@media (max-width:640px){
  .wfy-portal__header,
  .wfy-portal__order-summary,
  .wfy-portal__tracking-row{flex-direction:column;align-items:flex-start}
  .wfy-portal__header-meta{text-align:left;justify-items:start}
  .wfy-portal__button{width:100%}
  .wfy-card-option__controls input{width:100%}
  .wfy-return-more-accordion__summary{
    align-items:flex-start;
    padding:10px;
  }
  .wfy-return-more-accordion__line{
    flex-wrap:wrap;
    row-gap:5px;
    white-space:normal;
  }
  .wfy-return-more-accordion__meta{
    max-width:none;
  }
  .wfy-return-more-accordion__thumbs{
    margin-left:0;
  }
  .wfy-returns-timeline__item{
    gap:9px;
    padding-bottom:14px;
  }
  .wfy-return-shipment-panel__fields{
    grid-template-columns:1fr;
  }
  .wfy-returns-timeline__avatar{
    width:30px;
    height:30px;
    flex-basis:30px;
    font-size:10px;
  }
  .wfy-returns-timeline__item:not(:last-child)::after{
    left:14px;
    top:30px;
  }
  .wfy-returns-timeline__head{
    align-items:flex-start;
  }
  .wfy-returns-timeline__time{
    margin-left:0;
  }
  .wfy-lightbox{padding:8px}
  .wfy-lightbox__content{
    width:100%;
    max-height:96vh;
    border-radius:10px;
  }
  .wfy-lightbox__img{max-height:80vh}
  .wfy-lightbox__close,
  .wfy-lightbox__nav{
    width:34px;
    height:34px;
    font-size:22px;
  }
}
