/* Lírio Studio — sacola dentro do Studio (v28). Usa os tokens do studio.css (--pink, --ink, --line…). */

/* Botão no topo (computador) */
.sacola-topo {
  position: relative;
  border: 1px solid #e2b4c9;
  border-radius: 28px;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-hover);
  padding: 10px 14px;
  white-space: nowrap;
}
.sacola-topo .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 680px) {
  .sacola-topo {
    display: none; /* no celular a sacola é o botão redondo do palco */
  }
}

/* Contador (topo e palco) */
.sacola-qtd {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.sacola-qtd[hidden] {
  display: none;
}
.fab-sacola {
  position: relative;
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 8px 18px #c9447a40;
}
.fab-sacola .sacola-qtd {
  position: absolute;
  top: -5px;
  right: -6px;
  background: #fff;
  color: var(--pink-hover);
  box-shadow: 0 2px 6px #79434d26;
}
.sacola-qtd.pulou {
  animation: sacola-pula 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes sacola-pula {
  40% {
    transform: scale(1.45);
  }
}

/* Diálogo: painel à direita no computador, folha de baixo no celular */
.sacola-dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: min(860px, calc(100dvh - 24px));
  display: none;
  flex-direction: column;
  gap: 12px;
}
.sacola-dialog[open] {
  display: flex;
}
.sacola-qtd-titulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 4px;
  font-family: "DM Sans", sans-serif;
}
@media (max-width: 680px) {
  .sacola-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    animation: sacola-sobe 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
}
@keyframes sacola-sobe {
  from {
    transform: translateY(40%);
    opacity: 0.4;
  }
}

/* Régua do frete grátis — "barra de presente" */
.sacola-meta {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff4f8, #fdf3e7);
  border: 1px solid #f3dbe4;
}
.sacola-meta-texto {
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.sacola-meta-texto strong {
  color: var(--pink-hover);
}
.sacola-meta-trilha {
  position: relative;
  height: 10px;
  border-radius: 9px;
  background: #f6dfe8;
  overflow: visible;
}
.sacola-meta-trilha span {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, #e58bb0, var(--pink));
  background-size: 200% 100%;
  animation: sacola-brilho 2.4s linear infinite;
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sacola-meta-trilha i {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--pink);
  box-shadow: 0 3px 10px #79434d26;
}
.sacola-meta-trilha i .icon {
  width: 14px;
  height: 14px;
}
.sacola-meta-trilha.completa i {
  background: var(--pink);
  color: #fff;
  animation: sacola-pula 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes sacola-brilho {
  to {
    background-position: -200% 0;
  }
}

/* Itens */
.sacola-itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  padding: 2px;
  margin: 0 -2px;
}
.sacola-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px #79434d0d;
}
.sacola-item.chegou {
  animation: sacola-chega 0.55s cubic-bezier(0.3, 1.4, 0.5, 1);
  border-color: #e2b4c9;
}
@keyframes sacola-chega {
  from {
    transform: scale(0.85) translateY(10px);
    opacity: 0;
  }
}
.sacola-item.com-aviso {
  border-color: #f0c2cf;
  background: #fff8fa;
}
.sacola-foto {
  width: 72px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pink-soft);
  display: grid;
  place-items: center;
  color: var(--pink);
}
.sacola-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sacola-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sacola-info strong {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.3;
}
.sacola-cor {
  align-self: flex-start;
  font-size: 11px;
  color: var(--muted);
  background: #f7eef1;
  border-radius: 9px;
  padding: 2px 8px;
}
.sacola-preco {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-hover);
}
.sacola-preco s {
  font-weight: 400;
  color: var(--muted);
  font-size: 11.5px;
}
.sacola-preco em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 11.5px;
}
.sacola-aviso {
  font-size: 11.5px;
  color: #9b2c4c;
  line-height: 1.4;
}
/* Bolsa do look esperando a cor (a sacola acompanha o look — doc 19 §31): em destaque, cores numa faixa que rola. */
.sacola-item.sacola-pendente {
  grid-template-columns: 72px 1fr;
  align-items: start;
  border-color: #e9b7c8;
  background: #fff7fa;
}
.sacola-pendente .sacola-info {
  min-width: 0;
}
.levar-cores.sacola-cores {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.sacola-cores .levar-cor {
  flex: 0 0 auto;
}
.sacola-controles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sacola-qtd-passo {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.sacola-qtd-passo button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--pink-hover);
  cursor: pointer;
}
.sacola-qtd-passo button:disabled {
  color: #d9c3cb;
  cursor: default;
}
.sacola-qtd-passo output {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.sacola-tirar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.sacola-tirar .icon {
  width: 14px;
  height: 14px;
}

/* Vazia */
.sacola-vazia {
  text-align: center;
  padding: 26px 10px 10px;
  color: var(--muted);
}
.sacola-vazia > .icon {
  width: 46px;
  height: 46px;
  color: var(--pink);
  opacity: 0.8;
}
.sacola-vazia h3 {
  margin: 10px 0 6px;
  font-family: "Fraunces", serif;
  color: var(--ink);
  font-size: 1.2rem;
}
.sacola-vazia p {
  font-size: 13px;
  margin: 0 0 16px;
}

/* Resumo e ações */
.sacola-resumo {
  border-top: 1px dashed #ecd3dc;
  padding-top: 10px;
}
.sacola-linha {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  padding: 3px 0;
}
.sacola-linha.desconto {
  color: #3d7a4c;
  font-weight: 600;
}
.sacola-linha.total {
  font-size: 15px;
  padding-top: 6px;
}
.sacola-linha.total strong {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--pink-hover);
}
.sacola-dica {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--pink-hover);
}
.sacola-dica .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.sacola-nota {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.sacola-acoes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.sacola-acoes[hidden] {
  display: none;
}
.sacola-acoes .button {
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .sacola-item.chegou,
  .sacola-qtd.pulou,
  .sacola-meta-trilha span,
  .sacola-dialog {
    animation: none;
  }
}

/* ── Finalizar no Studio (Entrega → Pagamento → Pronto) ───────────────────────────────────────────── */
.fin-passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.fin-passos li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 4px;
  border-radius: 14px;
  background: #f7eef1;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.fin-passos b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 11px;
}
.fin-passos li.atual {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 14px #c9447a33;
}
.fin-passos li.atual b {
  color: var(--pink);
}
.fin-passos li.feito {
  background: #e9f4ec;
  color: #3d7a4c;
}
.fin-corpo {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px;
  margin: 0 -2px;
}
.fin-bloco {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fin-bloco[hidden] {
  display: none;
}
.fin-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink);
}
.fin-contato,
.fin-pedido,
.fin-retomar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink);
}
.fin-contato .icon,
.fin-pedido .icon,
.fin-retomar .icon {
  width: 16px;
  height: 16px;
  color: var(--pink);
  flex: none;
}
.fin-pedido {
  background: #e9f4ec;
  border-color: #cfe5d5;
}
.fin-pedido .icon {
  color: #3d7a4c;
}
.fin-retomar {
  background: #fff4dc;
  border-color: #f1dfb2;
  flex-wrap: wrap;
}
.fin-retomar span {
  flex: 1 1 180px;
}
.fin-opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.fin-opcao,
.fin-endereco,
.fin-metodo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.fin-opcao input,
.fin-endereco input {
  accent-color: var(--pink);
  width: 18px;
  height: 18px;
  flex: none;
}
.fin-opcao .icon {
  width: 18px;
  height: 18px;
  color: var(--pink);
}
.fin-opcao.ativa,
.fin-endereco.ativa,
.fin-metodo.ativo {
  border-color: var(--pink);
  box-shadow: 0 6px 16px #c9447a1f;
}
.fin-opcao:active,
.fin-endereco:active,
.fin-metodo:active {
  transform: scale(0.98);
}
.fin-endereco span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}
.fin-endereco small {
  color: var(--muted);
  font-size: 11.5px;
}
.fin-novo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  background: #fffafb;
  border: 1px dashed #ecd3dc;
}
.fin-novo[hidden] {
  display: none;
}
.fin-novo .text-input {
  margin-bottom: 6px;
}
.fin-duas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fin-duas .fin-uf {
  max-width: 90px;
}
.fin-nota {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.fin-aviso {
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fdecef;
  color: #9b2c4c;
  font-size: 12px;
}
.fin-carregando::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid #f3cfdc;
  border-top-color: var(--pink);
  animation: fin-gira 0.8s linear infinite;
}
@keyframes fin-gira {
  to {
    transform: rotate(360deg);
  }
}
.fin-frete {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fin-frete-local {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #e9f4ec;
  font-size: 12.5px;
  color: #2f6a3e;
}
.fin-frete-local .icon {
  width: 16px;
  height: 16px;
}
.fin-cupom-linha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.fin-cupom-linha .text-input {
  margin: 0;
  text-transform: uppercase;
}
.fin-metodos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fin-metodo {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.fin-metodo b {
  font-size: 15px;
  color: var(--pink-hover);
}
.fin-metodo span {
  font-size: 11.5px;
  color: var(--muted);
}
.fin-pix {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink);
}
.fin-pix img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
}
.fin-pix p {
  margin: 0;
}
.fin-copia {
  width: 100%;
  max-height: 70px;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  word-break: break-all;
  text-align: left;
}
.fin-esperando {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--pink-hover);
  font-weight: 600;
}
.fin-bolinha {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  animation: fin-pulsa 1.2s ease-in-out infinite;
}
@keyframes fin-pulsa {
  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
}
.fin-cartao {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fin-cartao .text-input {
  margin-bottom: 6px;
}
.fin-cartao .button {
  justify-content: center;
  margin-top: 4px;
}
.button.carregando {
  opacity: 0.7;
  pointer-events: none;
}
/* Pronto: festa com o avatar da cliente */
.fin-festa {
  position: relative;
  text-align: center;
  padding: 8px 6px 4px;
  overflow: hidden;
}
.fin-festa h3 {
  margin: 8px 0 6px;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.fin-festa p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.fin-avatar {
  width: 150px;
  height: 210px;
  margin: 0 auto;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, #fff, var(--pink-soft));
  animation: fin-festa-pula 0.9s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.fin-avatar svg {
  width: 100%;
  height: 100%;
}
.fin-ok {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f4ec;
  color: #3d7a4c;
}
@keyframes fin-festa-pula {
  from {
    transform: translateY(30px) scale(0.8);
    opacity: 0;
  }
}
.fin-confete i {
  position: absolute;
  top: -12px;
  left: calc(4% + var(--i) * 5.3%);
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--pink);
  opacity: 0;
  animation: fin-confete 2.4s ease-in calc(var(--i) * 0.08s) 2;
}
.fin-confete i:nth-child(3n) {
  background: #f5c26b;
}
.fin-confete i:nth-child(3n + 1) {
  background: #94a892;
}
@keyframes fin-confete {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translateY(260px) rotate(540deg);
  }
}
.sacola-acoes a.button {
  justify-content: center;
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .fin-confete,
  .fin-avatar,
  .fin-bolinha {
    animation: none;
  }
}
