/* =======================================================================
   kit-ocasiao-mrcd-v1.css
   Modal "Deseja adicionar estes itens ao carrinho?" do Compre por ocasião
   (js/kit-ocasiao-mrcd-v1.js). Usa os tokens --mg-* da home (claro/escuro).
   Celular: vira folha presa no rodapé, com rolagem só na lista.
======================================================================= */

body.kitoc-aberto{ overflow: hidden; }

.kitoc{
  position: fixed;
  inset: 0;
  z-index: 10001;           /* acima da barra inferior/WhatsApp do celular (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.kitoc__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  animation: kitoc-fade .18s ease-out;
}

.kitoc__box{
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--mg-surface, #11161e);
  color: var(--mg-ink, #e8eef6);
  border: 1px solid var(--mg-line, rgba(255,255,255,0.10));
  border-radius: 18px;
  box-shadow: var(--mg-shadow, 0 14px 40px rgba(0,0,0,0.45));
  padding: 20px 20px 16px;
  animation: kitoc-pop .22s cubic-bezier(.2,.9,.3,1.2);
}

.kitoc__x{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--mg-line, rgba(255,255,255,0.10));
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.kitoc__x svg{ width: 16px; height: 16px; }
.kitoc__x:hover{ border-color: var(--mg-yellow, #FFC20E); }

.kitoc__eyebrow{
  margin: 0 44px 4px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--mg-yellow-2, #F4A900);
}
.kitoc__titulo{
  margin: 0 44px 6px 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}
.kitoc__sub{
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--mg-ink-soft, rgba(232,238,246,0.70));
}

.kitoc__lista{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

.kitoc__label{
  display: grid;
  grid-template-columns: auto 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--mg-line, rgba(255,255,255,0.10));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.kitoc__label:has(.kitoc__check:checked){
  border-color: var(--mg-yellow, #FFC20E);
  background: rgba(255,194,14,0.06);
}
.kitoc__check{
  width: 18px;
  height: 18px;
  accent-color: var(--mg-yellow, #FFC20E);
  cursor: pointer;
}
.kitoc__thumb{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.kitoc__nome{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.kitoc__tag{
  display: inline-block;
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--mg-green, #1e9e54);
}
.kitoc__preco{
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.kitoc__total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 2px 12px;
  font-size: 14px;
  color: var(--mg-ink-soft, rgba(232,238,246,0.70));
}
.kitoc__total strong{
  font-size: 18px;
  font-weight: 900;
  color: var(--mg-ink, #e8eef6);
}

.kitoc__acoes{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kitoc__acoes .btn{
  min-height: 46px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.kitoc__add:disabled{ opacity: .55; cursor: not-allowed; }
.kitoc__ver{ color: var(--mg-ink, #e8eef6); }

@media (max-width: 560px){
  .kitoc{ align-items: flex-end; padding: 0; }
  .kitoc__box{
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
    animation-name: kitoc-sobe;
  }
  .kitoc__titulo{ font-size: 18px; }
}

@keyframes kitoc-fade{ from{ opacity: 0; } }
@keyframes kitoc-pop{ from{ opacity: 0; transform: scale(.96); } }
@keyframes kitoc-sobe{ from{ transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce){
  .kitoc__backdrop, .kitoc__box{ animation: none; }
}
