/* Lista de encomendas Chave Vertical — admin e Minha Conta. */
.cvwl-order-toggle{display:inline-flex!important;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;padding:0!important;border:1px solid #cbd5dc!important;border-radius:7px!important;background:#fff!important;color:#183645!important;cursor:pointer;vertical-align:middle}
.cvwl-order-toggle:hover,.cvwl-order-toggle:focus-visible{border-color:#007267!important;outline:2px solid transparent;box-shadow:0 0 0 2px #bee3d9}
.cvwl-order-arrow{display:inline-block;font-size:26px;line-height:1;transform:rotate(0deg);transition:transform .15s}
.cvwl-order-toggle[aria-expanded="true"] .cvwl-order-arrow{transform:rotate(90deg)}
.cvwl-order-toolbar{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0;align-items:center}
.cvwl-order-toolbar button{padding:8px 12px!important;min-height:36px;border:1px solid #c5d4d6!important;background:#fff!important;color:#1c3942!important;border-radius:6px!important;font-size:12px!important;font-weight:700!important;cursor:pointer}
.cvwl-order-toolbar button:hover{background:#e8f5f2!important;border-color:#007267!important}
.cvwl-order-detail-row>td{padding:0!important;background:#f7f9fa!important;box-sizing:border-box}
.cvwl-order-detail-row[hidden]{display:none!important}
.cvwl-order-detail-cell{padding:14px 20px}
.cvwl-order-items{max-width:100%;font-size:13px;color:#26343b}
.cvwl-order-items__heading{display:flex;gap:7px;margin-bottom:12px;font-weight:700}
.cvwl-order-items__list{list-style:none;margin:0;padding:0}
.cvwl-order-items__item{display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:9px 0;border-top:1px solid #e3e9ed}
.cvwl-order-items__photo{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid #e3e9ed;background:#fff;border-radius:6px}
.cvwl-order-items__image{width:48px!important;height:48px!important;object-fit:contain}
.cvwl-order-items__info{min-width:0;overflow-wrap:anywhere}.cvwl-order-items__info a{font-weight:700}.cvwl-order-items__info small{display:block;color:#65737a;margin-top:3px}
.cvwl-order-items__qty,.cvwl-order-items__total{white-space:nowrap}
.cvwl-order-status,.cvwl-payment{display:inline-block;border-radius:5px;padding:5px 9px;font-size:11px;font-weight:800;line-height:1.4;white-space:normal;vertical-align:middle}
.cvwl-order-status{background:#e4f0f0;color:#12555a}
.cvwl-status-processing{background:#c6e1c6;color:#5b841b} /* cor nativa do WooCommerce para Em processamento */
.cvwl-status-pending{background:#fff0bd;color:#735100}
.cvwl-status-on-hold{background:#e1d4fb;color:#5e338d}
.cvwl-status-completed{background:#c9e9d6;color:#135d36}
.cvwl-status-refunded{background:#dce8ff;color:#244c91}
.cvwl-status-checkout-draft{background:#e6e8ee;color:#424856}
.cvwl-status-failed,.cvwl-status-cancelled{background:#000!important;color:#fff!important}
.cvwl-payment--cod{background:#f8d8a5!important;color:#703c00!important;border:1px solid #e8a84b}
.cvwl-payment--other{background:#e7eff3;color:#345463}
body.wp-admin .column-cvwl_items{width:72px}
body.wp-admin .column-cvwl_payment{width:130px}
body.wp-admin .column-order_status .order-status.cvwl-status-failed,
body.wp-admin .column-order_status .order-status.cvwl-status-cancelled{background:#000!important;color:#fff!important}
/* Cores no badge nativo do WooCommerce no backoffice; sem alterar o processamento. */
body.wp-admin .column-order_status .order-status.status-failed,
body.wp-admin .column-order_status .order-status.status-cancelled{background:#000!important;color:#fff!important}
body.wp-admin .column-order_status .order-status.status-pending{background:#fff0bd!important;color:#735100!important}
body.wp-admin .column-order_status .order-status.status-on-hold{background:#e1d4fb!important;color:#5e338d!important}
body.wp-admin .column-order_status .order-status.status-completed{background:#c9e9d6!important;color:#135d36!important}
body.wp-admin .column-order_status .order-status.status-refunded{background:#dce8ff!important;color:#244c91!important}
@media(max-width:782px){.cvwl-order-items__item{grid-template-columns:48px minmax(0,1fr);gap:8px}.cvwl-order-items__qty,.cvwl-order-items__total{grid-column:2}.cvwl-order-detail-cell{padding:12px}.cvwl-order-toolbar{margin:10px 0}}
@media(prefers-reduced-motion:reduce){.cvwl-order-arrow{transition:none}}

/* Metodos de entrega registados na encomenda. */
.cvwl-delivery{display:inline-block;max-width:200px;padding:5px 9px;border-radius:5px;background:#e9f0fa;color:#24486d;font-size:11px;font-weight:800;line-height:1.45;overflow-wrap:anywhere}
.cvwl-delivery__destination{display:block;margin-top:4px;color:#5a6875;font-size:11px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
body.wp-admin .column-cvwl_shipping{width:170px}
.woocommerce-account .woocommerce-orders-table__cell-cvwl-payment,
.woocommerce-account .woocommerce-orders-table__cell-cvwl-shipping{min-width:120px}
@media(max-width:782px){body.wp-admin .column-cvwl_shipping{width:auto}.woocommerce-account .woocommerce-orders-table__cell-cvwl-payment,.woocommerce-account .woocommerce-orders-table__cell-cvwl-shipping{min-width:0}}

/* v1.3.1 — todos os estados personalizados registados no COM. */
.cvwl-status-aguarda-entrega{background:#c9effb!important;color:#07566e!important;}
.cvwl-status-aguarda-fornecime{background:#ffd6a5!important;color:#764300!important;}
.cvwl-status-descontinuado{background:#525b66!important;color:#ffffff!important;}
.cvwl-status-despachado-do-for{background:#bcefd9!important;color:#075f48!important;}
.cvwl-status-lojadeaveiro{background:#f4cef0!important;color:#873366!important;}
.cvwl-status-prazo-de-entrega{background:#f1df93!important;color:#66510a!important;}
.cvwl-status-delivered{background:#117c50!important;color:#ffffff!important;}
.cvwl-status-faturado{background:#bed5ff!important;color:#184d92!important;}
.cvwl-status-forneparcialmente{background:#fbd0e1!important;color:#853050!important;}
.cvwl-status-ruptura-de-stock{background:#ffc2ba!important;color:#942621!important;}
.cvwl-order-status{white-space:normal!important;max-width:220px;overflow-wrap:anywhere}
/* Apenas emoji visivel: o nome do pagamento esta no title e aria-label. */
.cvwl-payment--icon{display:inline-flex!important;align-items:center;justify-content:center;min-width:36px;width:36px;height:34px;box-sizing:border-box;padding:3px!important;line-height:1!important;font-size:22px!important;vertical-align:middle}
body.wp-admin .column-cvwl_payment{width:72px!important;min-width:68px}
.woocommerce-account .woocommerce-orders-table__cell-cvwl-payment{min-width:60px!important;width:70px}


/* v1.3.2 | Separacao de encomendas, sem interferir nos badges nem no checkout. */
body.wp-admin table.wp-list-table tbody tr.cvcore-order-row > :is(td,th),
.woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row > :is(td,th) {
  background-color: #fff !important;
  border-bottom: 2px solid #d9e2eb !important;
  box-shadow: inset 0 -2px 0 #fff;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  transition: background-color 120ms ease;
}
body.wp-admin table.wp-list-table tbody tr.cvcore-order-row.cvcore-order-row--alt > :is(td,th),
.woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row.cvcore-order-row--alt > :is(td,th) {
  background-color: #f0f5f9 !important;
}
body.wp-admin table.wp-list-table tbody tr.cvcore-order-row:hover > :is(td,th),
.woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row:hover > :is(td,th) {
  background-color: #eaf4f7 !important;
}
body.wp-admin table.wp-list-table tbody tr.cvcore-order-row.cvcore-order-row--expanded > :is(td,th),
.woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row.cvcore-order-row--expanded > :is(td,th) {
  background-color: #e5f3ee !important;
  border-bottom-color: #a7d0c2 !important;
}
body.wp-admin table.wp-list-table tbody tr.cvcore-order-row.cvcore-order-row--expanded > :first-child,
.woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row.cvcore-order-row--expanded > :first-child {
  box-shadow: inset 3px 0 0 #17866d;
}
body.wp-admin table.wp-list-table tbody tr.cvwl-order-detail-row > td,
.woocommerce-account table.woocommerce-orders-table tbody tr.cvwl-order-detail-row > td {
  background: #f6faf8 !important;
  border-bottom: 3px solid #a7d0c2 !important;
  padding: 0 !important;
}
.cvwl-order-toggle[aria-expanded="true"] { background: #e1f4eb !important; border-color: #6db8a1 !important; }

/* v1.3.3: pagamentos centrados, so com emoji, sem fundo nem caixa. */
.cvwl-payment.cvwl-payment--icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  font: normal 24px/1 system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  vertical-align: middle !important;
}
.cvwl-payment.cvwl-payment--icon > span { display: inline-block; line-height: 1 !important; }
body.wp-admin td.column-cvwl_payment,
.woocommerce-account td.woocommerce-orders-table__cell-cvwl-payment {
  text-align: center !important;
  vertical-align: middle !important;
}
body.wp-admin .column-cvwl_payment { width: 72px !important; min-width: 68px !important; }
.woocommerce-account .woocommerce-orders-table__cell-cvwl-payment { width: 70px !important; min-width: 64px !important; }

@media (max-width: 782px) {
  body.wp-admin table.wp-list-table tbody tr.cvcore-order-row > :is(td,th),
  .woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row > :is(td,th) {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.wp-admin table.wp-list-table tbody tr.cvcore-order-row > :is(td,th),
  .woocommerce-account table.woocommerce-orders-table tbody tr.cvcore-order-row > :is(td,th) {
    transition: none !important;
  }
}
