@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

#mc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 99998;
}
#mc-overlay.mc-visible {
  opacity: 1;
  visibility: visible;
}

#mc-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}
#mc-panel.mc-visible {
  transform: translateX(0);
}

.mc-header {
  background: #1220c9;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mc-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mc-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

.mc-loading, .mc-empty {
  text-align: center;
  color: #888;
  margin-top: 40px;
}

.mc-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.mc-item-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.mc-item-info { flex: 1; }
.mc-item-name { font-weight: 700; color: #111; }
.mc-item-meta { font-size: 12px; color: #b98900; margin-top: 2px; }
.mc-item-unit { font-size: 12px; color: #888; margin: 2px 0 6px; }

.mc-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.mc-qty button {
  width: 24px;
  height: 24px;
  border: none;
  background: #f2f2f7;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.mc-qty button:hover {
  background: #1220c9;
  color: #fff;
}
.mc-qty-input {
  width: 20px;
  text-align: center;
  border: none;
  font-size: 13px;
  padding: 0;
}

.mc-item-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.mc-item-total { font-weight: 700; color: #1220c9; }
.mc-remove { font-size: 12px; color: #e53935; text-decoration: underline; }

.mc-totals {
  background: #f4f5ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.mc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  padding: 4px 0;
}

.mc-estimated {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
  font-weight: 700;
  font-size: 17px;
  color: #1220c9;
  font-family: 'Playfair Display', serif;
}
.mc-estimated-amount { font-size: 20px; }

.mc-note {
  background: #eef0ff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #444;
  margin-bottom: 14px;
}

#mc-confirm-btn {
  width: 100%;
  background: #1220c9;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
#mc-confirm-btn:disabled { opacity: .6; cursor: default; }

.mc-success {
  text-align: center;
  padding: 40px 10px;
  font-size: 16px;
  color: #1220c9;
  font-weight: 600;
}

/* Pantalla de confirmacion "Order request received" */
.mc-success-screen {
  text-align: center;
  padding: 10px 4px 20px;
}
.mc-success-icon {
  width: 56px;
  height: 56px;
  background: #1fa155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 20px;
}
.mc-success-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #10163a;
  margin: 0 0 14px;
}
.mc-order-badge {
  display: inline-block;
  background: #eef0ff;
  color: #1220c9;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.mc-success-text {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 8px;
  margin-bottom: 20px;
}
.mc-success-text strong { color: #333; }

.mc-whatsapp-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e6f7ec;
  border: 1px solid #d3f0dd;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  margin-bottom: 18px;
}
.mc-whatsapp-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-whatsapp-box strong { font-size: 13.5px; color: #1a1a1a; }

.mc-success-totals {
  text-align: left;
  margin-top: 0;
}
.mc-success-totals .mc-row {
  font-size: 13.5px;
}
.mc-total-row {
  border-top: 1px solid #e0e2f5;
  margin-top: 6px;
  padding-top: 10px !important;
  color: #1220c9;
  font-size: 15px;
}

.mc-portal-btn {
  display: block;
  width: 100%;
  background: #1220c9;
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 18px;
  box-sizing: border-box;
}
.mc-portal-btn:hover { background: #0f1aa8; }

.mc-secondary-btn {
  display: block;
  width: 100%;
  background: #fff;
  color: #1220c9 !important;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid #1220c9;
  border-radius: 10px;
  padding: 12.5px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
  box-sizing: border-box;
}
.mc-secondary-btn:hover { background: #f4f5ff; }

/* Pagina completa de confirmacion (fuera del panel lateral) */
.mc-confirmation-page {
  font-family: 'Inter', sans-serif;
  max-width: 480px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: 32px 28px;
}

/* -----------------------------------------------------------------------
 * Tarjeta blanca del formulario "Your details" (Contact Form 7)
 * Envuelve tu shortcode de CF7 en: <div class="mc-details-card"> ... </div>
 * ---------------------------------------------------------------------*/
.mc-details-card {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  padding: 32px 36px;
  max-width: 900px;
  margin: -40px auto 0; /* el margen negativo hace que "flote" sobre el hero azul, quita esta linea si no tienes hero */
  position: relative;
}

.mc-details-card h2,
.mc-details-card .mc-details-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: #10163a;
  display: inline-block;
  margin: 0 8px 0 0;
}
.mc-details-card .mc-details-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #8a8fa3;
  font-weight: 400;
}

/* Estructura de CF7: parrafos por campo */
.mc-details-card .wpcf7-form p {
  margin-bottom: 18px;
}
.mc-details-card .wpcf7-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #10163a;
  margin-bottom: 8px;
}
/* Asterisco de requerido en dorado: envuelve el * en tu CF7 con <span class="mc-required">*</span> */
.mc-details-card .mc-required {
  color: #c98a2e;
}

.mc-details-card .wpcf7-form-control,
.mc-details-card input[type="text"],
.mc-details-card input[type="tel"],
.mc-details-card input[type="email"],
.mc-details-card select {
  width: 100%;
  box-sizing: border-box;
  background: #f6f7fb;
  border: 1px solid #e6e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #333;
}
.mc-details-card select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.mc-details-card .wpcf7-form-control:focus,
.mc-details-card select:focus {
  outline: none;
  border-color: #1220c9;
  background-color: #fff;
}
.mc-details-card ::placeholder {
  color: #b9bcca;
}

.mc-details-card .wpcf7-submit {
  background: #d69a3d;
  color: #10163a;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  width: auto;
}
.mc-details-card .wpcf7-submit:hover {
  background: #c68a2e;
}
#mc-save-details-msg {
  margin-left: 14px;
  font-size: 13.5px;
  font-weight: 600;
  vertical-align: middle;
}

/* Layout de 2 columnas si tu formulario usa un contenedor .mc-form-grid */
.mc-details-card .mc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 640px) {
  .mc-details-card .mc-form-grid { grid-template-columns: 1fr; }
  .mc-details-card { padding: 24px; margin-top: -20px; }
}
