.swa-currency-guard-notice {
  border: 1px solid #2f74b8;
  background: #f4f9ff;
  color: #1f2d3d;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.45;
  clear: both;
}
.swa-currency-guard-notice__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.swa-currency-guard-notice__logo {
  max-height: 34px;
  max-width: 160px;
  width: auto;
}
.swa-currency-guard-notice__title {
  font-weight: 800;
  font-size: 17px;
  margin: 0;
}
.swa-currency-guard-notice__body p {
  margin: 0 0 9px;
}
.swa-currency-guard-notice__conversion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 12px 0 8px;
}
.swa-currency-guard-notice__conversion div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(47, 116, 184, .18);
  padding-top: 6px;
}
.swa-currency-guard-notice__amount {
  font-weight: 800;
  color: #174f8a;
}
.swa-currency-guard-notice__meta {
  font-size: 13px;
  opacity: .88;
  margin-top: 6px;
}
.swa-currency-guard-notice__actions {
  margin-top: 14px;
}
.swa-currency-guard-notice__btn {
  display: inline-block;
  background: #2f74b8;
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none !important;
}
.swa-currency-guard-payment-blocked #payment-confirmation button,
.swa-currency-guard-payment-blocked .payment-options + div button[type="submit"] {
  opacity: .55;
  cursor: not-allowed;
}
@media (max-width: 575px) {
  .swa-currency-guard-notice__head { align-items: flex-start; flex-direction: column; }
  .swa-currency-guard-notice__conversion div { flex-direction: column; gap: 2px; }
}


/* v1.0.5: colocación lateral cuando el aviso se mueve al resumen de checkout */
.swa-currency-guard-notice.swa-currency-guard-notice--right {
  margin: 0 0 16px;
  width: 100%;
  box-sizing: border-box;
}
.swa-currency-guard-notice[data-position="payment"] {
  max-width: 100%;
}
@media (min-width: 768px) {
  .swa-currency-guard-notice.swa-currency-guard-notice--right {
    position: relative;
  }
}

/* v1.0.7: aviso reservado para paso 3 (envío). Oculto hasta que el JS lo ubique en lugar de comentarios. */
.swa-currency-guard-notice[data-position="shipping"] {
  display: none;
}
.swa-currency-guard-notice[data-position="shipping"].swa-currency-guard-notice--shipping-active {
  display: block;
  margin: 14px 0 0;
  max-width: 100%;
}
.swa-currency-guard-notice--shipping-active .swa-currency-guard-notice__btn {
  min-width: 260px;
  text-align: center;
}
@media (max-width: 575px) {
  .swa-currency-guard-notice--shipping-active .swa-currency-guard-notice__btn {
    width: 100%;
    min-width: 0;
  }
}


/* v1.0.8: cuando la moneda no es CLP, el paso 3 se usa como confirmación de forma de pago en CLP. */
#checkout-delivery-step[data-swa-cg-delivery-hidden="1"] .swa-currency-guard-notice--shipping-active,
.checkout-step[data-swa-cg-delivery-hidden="1"] .swa-currency-guard-notice--shipping-active {
  margin-top: 0;
}
#checkout-delivery-step[data-swa-cg-delivery-hidden="1"] [data-swa-cg-hidden-delivery-ui="1"],
.checkout-step[data-swa-cg-delivery-hidden="1"] [data-swa-cg-hidden-delivery-ui="1"] {
  display: none !important;
}

/* v1.0.9: el aviso del paso 3 debe ser siempre visible cuando el JS lo activa,
   incluso si el tema ocultó contenedores internos del transportista/comentarios. */
.swa-currency-guard-notice[data-position="shipping"].swa-currency-guard-notice--shipping-active {
  display: block !important;
}
.swa-currency-guard-notice[data-mode="target_ok"] {
  border-color: #2f74b8;
  background: #f7fbff;
}
.swa-currency-guard-notice[data-mode="target_ok"] .swa-currency-guard-notice__conversion {
  margin-top: 10px;
}
