/**
 * TP Product Notices - Frontend Styles
 */

.tppn-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    border-width: 1px;
    border-style: solid;
    clear: both;
}

/* Display as block on new line */
.woocommerce-cart-form .tppn-notice,
.woocommerce-checkout .tppn-notice {
    display: flex;
    width: fit-content;
    max-width: 100%;
}

.tppn-notice-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.tppn-notice-text {
    word-break: break-word;
}

/* Attention style (red) */
.tppn-notice.tppn-style-attention {
    font-weight: 600;
}

/* Mini-cart adjustments */
.widget_shopping_cart .tppn-notice {
    font-size: 11px;
    padding: 4px 8px;
    margin-top: 4px;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .tppn-notice {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* RTL Support */
[dir="rtl"] .tppn-notice {
    text-align: right;
}

/* Animation on hover (optional enhancement) */
.tppn-notice {
    transition: transform 0.15s ease;
}

.tppn-notice:hover {
    transform: translateX(-2px);
}

[dir="rtl"] .tppn-notice:hover {
    transform: translateX(2px);
}
