/* Estilos para el aviso de envío en el carrito y checkout */

.dm-shipping-notice {
    background-color: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

.dm-shipping-notice:before {
    content: "\f348";
    font-family: "dashicons";
    font-size: 24px;
    color: #2271b1;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.dm-shipping-notice strong {
    color: #2271b1;
    font-weight: 700;
}

/* Estilos específicos para bloques de WooCommerce */
.dm-shipping-notice-blocks {
    background-color: #f0f6fc;
    border: 1px solid #2271b1;
    border-left: 4px solid #2271b1;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

/* Compatibilidad con bloques de carrito */
.wp-block-woocommerce-cart .dm-shipping-notice,
.wc-block-cart .dm-shipping-notice {
    margin: 1.5rem 0;
    width: 100%;
}

/* Compatibilidad con bloques de checkout */
.wp-block-woocommerce-checkout .dm-shipping-notice,
.wc-block-checkout .dm-shipping-notice {
    margin: 1rem 0 1.5rem 0;
    width: 100%;
}

.wp-block-woocommerce-checkout-order-summary-block .dm-shipping-notice {
    margin-bottom: 1.5rem;
}

/* Variante de éxito (envío gratis) */
.dm-shipping-notice.dm-free-shipping {
    background-color: #f0f9f4;
    border-left-color: #46b450;
}

.dm-shipping-notice.dm-free-shipping:before {
    color: #46b450;
}

.dm-shipping-notice.dm-free-shipping strong {
    color: #46b450;
}

/* Animación suave al aparecer */
.dm-shipping-notice {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dm-shipping-notice {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .dm-shipping-notice:before {
        font-size: 20px;
    }
    
    .dm-shipping-notice-blocks {
        padding: 0.875rem 1rem;
    }
}

/* Ajustes para temas con bloques de WooCommerce */
.wc-block-components-sidebar-layout .dm-shipping-notice {
    margin: 1rem 0;
}

.wc-block-cart__sidebar .dm-shipping-notice,
.wc-block-checkout__sidebar .dm-shipping-notice {
    margin: 1rem 0 1.5rem 0;
}

.dm-pack-notice{
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  margin: 12px 0;
  font-weight: 600;
}
