@charset "UTF-8";
/* ============================================================
   TANTO LAMPS \00b7 Carrito lateral
   ============================================================ */

.tanto-drawer {
  --ink: #1a1a1a; --soft: #6a6a6a; --line: #e5e5e5;
  --ease: cubic-bezier(0, .14, .19, 1);
  /* Por encima del aviso de cookies (95): el panel lo abre el cliente a
     propósito, y si no, el aviso le tapaba el botón de continuar pedido. */
  position: fixed; inset: 0; z-index: 96;
  visibility: hidden; pointer-events: none;
}
.tanto-drawer.is-abierto { visibility: visible; pointer-events: auto; }

.tanto-drawer__velo {
  position: absolute; inset: 0; background: rgba(20, 16, 14, .38);
  opacity: 0; transition: opacity .4s ease;
}
.tanto-drawer.is-abierto .tanto-drawer__velo { opacity: 1; }

.tanto-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(100%, 420px);
  background: #fff; color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  box-shadow: -2px 0 30px rgba(0, 0, 0, .1);
}
.tanto-drawer.is-abierto .tanto-drawer__panel { transform: none; }

/* ---- Cabecera ---- */
.tanto-drawer__cab {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.tanto-drawer__cab h2 {
  margin: 0; font-family: "Instrument Sans", sans-serif; font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.tanto-drawer__cerrar {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  padding: 4px; display: flex; transition: opacity .2s ease;
}
.tanto-drawer__cerrar:hover { opacity: .55; }

/* ---- Contenido ---- */
.tanto-drawer__contenido { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.tanto-drawer__cuerpo { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tanto-drawer.is-cargando .tanto-drawer__cuerpo { opacity: .5; pointer-events: none; }

.tanto-drawer__vacio { padding: 60px 22px; text-align: center; color: var(--soft); }
.tanto-drawer__vacio p { margin: 0 0 20px; font-size: .95rem; }
.tanto-drawer__seguir {
  display: inline-block; padding: 14px 26px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}

.tanto-drawer__lista { list-style: none; margin: 0; padding: 0; }
.tanto-drawer__item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-bottom: 1px solid var(--line); position: relative;
}
.tanto-drawer__foto { flex: 0 0 74px; }
.tanto-drawer__foto img { width: 74px; height: 98px; object-fit: cover; display: block; background: #f4f2ef; }
.tanto-drawer__datos { flex: 1 1 auto; min-width: 0; padding-right: 18px; }
/* Mismo cuerpo y mismo peso que el nombre de la rejilla de tienda: es la
   misma pieza y no debería cambiar de voz al meterla en el carrito. */
.tanto-drawer__nombre { margin: 0 0 3px; font-size: .94rem; font-weight: 400; line-height: 1.35; }
.tanto-drawer__nombre a { color: var(--ink); text-decoration: none; }
/* `pre-line` porque WooCommerce separa las opciones con saltos de línea y el
   HTML se los comía: quedaban todas seguidas en un párrafo, y con la medida
   de un encargo ya no se sabía dónde acababa una y empezaba otra. */
.tanto-drawer__variante {
  margin: 0 0 8px; font-size: .76rem; color: var(--soft); line-height: 1.4;
  white-space: pre-line;
}

.tanto-drawer__fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.tanto-drawer__cant { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.tanto-drawer__cant button {
  width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer;
  color: var(--ink); font-size: 15px; line-height: 1; transition: background .2s ease;
}
.tanto-drawer__cant button:hover { background: #faf9f7; }
.tanto-drawer__cant span { min-width: 26px; text-align: center; font-size: .84rem; }
.tanto-drawer__precio { font-size: .88rem; font-weight: 500; white-space: nowrap; }
.tanto-drawer__precio del { opacity: .5; margin-right: 5px; font-weight: 400; }
.tanto-drawer__precio ins { text-decoration: none; }

.tanto-drawer__quitar {
  position: absolute; top: 16px; right: 18px;
  border: 0; background: transparent; color: var(--soft); cursor: pointer;
  padding: 3px; display: flex; transition: color .2s ease;
}
.tanto-drawer__quitar:hover { color: var(--ink); }

/* ---- Pie ---- */
.tanto-drawer__pie { flex: 0 0 auto; padding: 20px 22px; border-top: 1px solid var(--line); background: #fff; }
.tanto-drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tanto-drawer__total span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.tanto-drawer__total strong { font-size: 1.1rem; font-weight: 600; }
.tanto-drawer__nota { margin: 0 0 16px; font-size: .74rem; color: var(--soft); }

.tanto-drawer__pagar {
  display: block; padding: 16px; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.tanto-drawer__pagar:hover { background: #fff; color: var(--ink); }
.tanto-drawer__ver {
  display: block; text-align: center; margin-top: 11px;
  font-size: .8rem; color: var(--soft); text-decoration: underline; text-underline-offset: 2px;
}
.tanto-drawer__ver:hover { color: var(--ink); }

body.tanto-drawer-abierto { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .tanto-drawer__panel, .tanto-drawer__velo { transition-duration: .01ms !important; }
}
