/* Decorative perimeter only. The boxes and their contents retain their original layout. */
:where(.r2-contorno-ancora) {
  position: relative;
}

.r2-contorno-superficie > .r2-contorno-desenho {
  position: absolute;
  z-index: 2;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  overflow: visible;
  border-radius: inherit;
  pointer-events: none;
}

.r2-contorno-superficie {
  --r2-contorno-cor: #ff9e42;
  --r2-contorno-rastro: #ffe6ab;
  --r2-contorno-duracao: 7.2s;
  --r2-contorno-forca: .9;
}

.r2-contorno-borda,
.r2-contorno-fluxo {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.r2-contorno-borda {
  stroke: var(--r2-contorno-cor);
  stroke-width: 1;
  opacity: .24;
}

.r2-contorno-fluxo {
  stroke: var(--r2-contorno-rastro);
  stroke-width: 2;
  stroke-dasharray: 14 86;
  opacity: 0;
}

.r2-contorno-superficie:focus-visible > .r2-contorno-desenho .r2-contorno-borda,
.r2-contorno-superficie.r2-contorno-acao > .r2-contorno-desenho .r2-contorno-borda {
  opacity: .85;
}

.r2-contorno-superficie:is(:disabled, [aria-disabled="true"]) > .r2-contorno-desenho {
  opacity: .32;
}

@media (hover: hover) and (pointer: fine) {
  .r2-contorno-superficie:hover > .r2-contorno-desenho .r2-contorno-borda {
    opacity: .65;
  }
}

html[data-r2-global-motion="normal"].r2-contorno-documento-visivel
.r2-contorno-ambiente.r2-contorno-visivel > .r2-contorno-desenho .r2-contorno-fluxo {
  animation: r2-contorno-circuito var(--r2-contorno-duracao) linear var(--r2-contorno-atraso, 0s) infinite !important;
}

html[data-r2-global-motion="normal"].r2-contorno-documento-visivel
.r2-contorno-superficie:is(:focus-visible, .r2-contorno-acao) > .r2-contorno-desenho .r2-contorno-fluxo {
  animation: r2-contorno-resposta .56s ease-out both !important;
}

@media (hover: hover) and (pointer: fine) {
  html[data-r2-global-motion="normal"].r2-contorno-documento-visivel
  .r2-contorno-controle:hover > .r2-contorno-desenho .r2-contorno-fluxo {
    animation: r2-contorno-resposta .56s ease-out both !important;
  }
}

@keyframes r2-contorno-circuito {
  0% { stroke-dashoffset: 14; opacity: 0; }
  12%, 83% { opacity: var(--r2-contorno-forca); }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes r2-contorno-resposta {
  0% { stroke-dashoffset: 18; opacity: .24; }
  28% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* Quieter framing around totals, orders and the till. */
body.sertanex-r2-delivery .r2-contorno-superficie,
.r2-contorno-superficie:is(.stage, .status-strip) {
  --r2-contorno-cor: #bd7847;
  --r2-contorno-rastro: #ffc986;
  --r2-contorno-duracao: 9s;
  --r2-contorno-forca: .62;
}

@media (max-width: 820px) {
  body.sertanex-r2-delivery .cart-panel.r2-contorno-superficie { position: relative; }
}

@media (max-width: 620px) {
  .r2-contorno-superficie {
    --r2-contorno-duracao: 9s;
    --r2-contorno-forca: .66;
  }

  .r2-contorno-fluxo {
    stroke-width: 1.5;
  }

  html[data-r2-global-motion="normal"].r2-contorno-documento-visivel
  .r2-contorno-ambiente.r2-contorno-visivel:is(.product-card, .r2-equipe-links a, .detail-panel, .order-card, .table-card, .quick-product):not(:focus-visible):not(.r2-contorno-acao)
  > .r2-contorno-desenho .r2-contorno-fluxo {
    animation: none !important;
  }
}

@media (forced-colors: active), print {
  .r2-contorno-desenho { display: none; }
}
