/* ============================================================
   CJV2 Shipping Insurance — Styles
   ============================================================ */

/* ── Popup (seguro inactivo) ──────────────────────────────── */
.cjv2-insurance-wrapper{
    display: flex;
    justify-content: center;
}
.cjv2-insurance-popup{
    margin-bottom: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e8e8e8;
    overflow: hidden;
}

.cjv2-insurance-popup-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.cjv2-insurance-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.cjv2-insurance-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cjv2-insurance-text {
  flex: 1;
  min-width: 0;
}

.cjv2-insurance-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d1b3e;
    margin-bottom: 0px;
}

.cjv2-insurance-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.cjv2-insurance-btn {
  flex-shrink: 0;
  background: #0d1b3e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}

.cjv2-insurance-btn:hover {
  background: #1a3a6e;
}

.cjv2-insurance-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Indicador activo (seguro activado) ───────────────────── */
.cjv2-insurance-active {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
}

.cjv2-insurance-active-icon {
  color: #16a34a;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.cjv2-insurance-active-text {
  flex: 1;
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
}

.cjv2-insurance-remove-btn {
  background: none !important;
  border: none;
  color: #aaa;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.15s;
}

.cjv2-insurance-remove-btn:hover {
  color: #666;
}


/* ── Badge en checkout ────────────────────────────────────── */
.cjv2-checkout-insurance-row th {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.cjv2-checkout-insurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
}

.cjv2-checkout-insurance-hint-text {
  font-size: 12px;
  color: #888;
}

.cjv2-checkout-insurance-hint-text a {
  color: #0d1b3e;
  font-weight: 600;
}

/* ── Badge en thank you ───────────────────────────────────── */
.cjv2-thankyou-insurance {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 700;
  color: #15803d;
}

.cjv2-thankyou-insurance img {
  flex-shrink: 0;
}
