/**
 * Devsite Hub — linha do carrinho compartilhada (DSH_Cart_Item).
 * Estrutura neutra; cada contexto (barra lateral, Meu Carrinho, Checkout) refina pelas
 * classes `{base}-{el}`. Cor de destaque: --dsh-ci-accent.
 */
.dsh-cart-item {
  --dsh-ci-accent: currentColor;
  --dsh-ci-line: rgba(0, 0, 0, .12);
  list-style: none;
  transition: border-color .2s, padding .2s, background-color .2s;
}

.dsh-cart-item__product-data {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dsh-cart-item__thumb {
  position: relative;
  flex: 0 0 auto;
}

.dsh-cart-item__img {
  display: block;
  line-height: 0;
}

.dsh-cart-item__img img {
  display: block;
}

.dsh-cart-item__data {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dsh-cart-item__name {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.dsh-cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}

.dsh-cart-item__sep {
  opacity: .6;
}

/* Remover: badge circular no canto da thumb. */
.dsh-cart-item__remove {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #15181c;
  border: 1px solid #e3e5e8;
  box-shadow: 0 2px 8px #15181c14;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.dsh-cart-item__remove::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.dsh-cart-item__remove:hover,
.dsh-cart-item__remove:focus-visible {
  background: #fff1f0;
  color: #b42318;
  border-color: #f3c3be;
}

/* Meta com metacampos = gatilho do acordeão (button): reset do estilo de botão do tema. */
button.dsh-cart-item__meta.is-toggle,
button.dsh-cart-item__meta.is-toggle:hover,
button.dsh-cart-item__meta.is-toggle:focus,
button.dsh-cart-item__meta.is-toggle:active {
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: none !important;
  cursor: pointer;
  font-size:14px!important;
}

/* "Ver extras" — CTA do gatilho (negrito + seta que gira 180°). */
.dsh-cart-item__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-underline-offset: 2px;
  font-weight: 700 !important;
  color: #181818 !important;
}


.dsh-cart-item__toggle:hover{
  text-decoration: underline;
}

.dsh-cart-item__toggle i {
  display: inline-block;
  transition: transform .25s ease;
  text-decoration:none;
}
.dsh-cart-item__toggle i::before{
  text-decoration:none;
}

.dsh-cart-item__meta[aria-expanded="true"] .dsh-cart-item__toggle i {
  transform: rotate(180deg);
}

/* Aberto: a borda envolve o item e a linha extra fica "pendurada" nele. */
.dsh-cart-item.is-extra-open {
  border: 1px solid var(--dsh-ci-line);
  border-radius: 8px;
  padding: 12px;
}

.dsh-cart-item__product-extra {
  position: relative;
  padding: 12px 14px;
  border-left: 3px solid var(--dsh-ci-accent);
  background: rgba(0, 0, 0, .035);
  border-radius: 0;
}

.dsh-cart-item__extra-title {
  display: block;
  margin-bottom: 8px;
  font-size: .75em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
}

.dsh-cart-item__product-extra dl.variation {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
}

.dsh-cart-item__product-extra dl.variation dt {
  margin: 0;
  font-weight: 600;
}

.dsh-cart-item__product-extra dl.variation dd {
  margin: 0;
}

.dsh-cart-item__product-extra dl.variation dd p {
  margin: 0;
}

.dsh-cart-item.is-removing {
  opacity: .4;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .dsh-cart-item,
  .dsh-cart-item__toggle i {
    transition: none;
  }
}
/* Selo ao lado do nome (filtro `dsh_cart_item_badges`; ex.: "Oferta especial"). */
.dsh-cart-item__badge {
	display: inline-block;
	margin: 2px 0 0 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fcebd3;
	color: #a85a04;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	vertical-align: middle;
	white-space: nowrap;
}

/* Ação no lugar do preço (filtro `dsh_cart_item_action_html`; ex.: aviso + "Atualizar"). O "Ver extras" vira um
   botão à parte, porque a ação não pode ficar dentro do botão do acordeão. */
.dsh-cart-item__meta.has-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}
button.dsh-cart-item__toggle {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}
button.dsh-cart-item__toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

/* Selo redondo na thumb (filtro `dsh_cart_item_thumb_html`; ex.: "Oferta especial" com o ícone de fogo). Fica no
   canto superior direito; quando a linha tem o botão de remover (que ocupa esse canto), vai para o esquerdo. */
.dsh-cart-item__thumb-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	z-index: 1;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #d92d20;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	box-shadow: 0 2px 6px #15181c29;
}
.dsh-cart-item__thumb-badge i,
.dsh-cart-item__thumb-badge i::before {
	color: #fff;
}
.dsh-cart-item__remove ~ .dsh-cart-item__thumb-badge {
	right: auto;
	left: -8px;
}

/* Selo de desconto aplicado na thumb: amarelo mais escuro (o de oferta é vermelho). */
.dsh-cart-item__thumb-badge--discount {
	background: #b7791f;
}

/* Selo de bônus (item adicionado pela Barra de Recompensa): verde. */
.dsh-cart-item__thumb-badge--bonus {
	background: #1a8a4a;
}
