/**
 * Copyright since 2026 Prestacraft
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * @author    Prestacraft <contact@prestacraft.com>
 * @copyright Since 2026 Prestacraft
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
 *
 * Prestacraft Topbar - Front Office Styles
 */

/* Full-width announcement bar pinned above the header.
   Background and text colors are injected inline by the template
   (topbar_bg / topbar_text) and intentionally NOT defined here. */
.prestacraft-topbar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
}

.prestacraft-topbar__message {
    display: inline-block;
    max-width: 100%;
    /* Keep long messages readable without breaking the layout */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Tablet */
@media (max-width: 768px) {
    .prestacraft-topbar {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .prestacraft-topbar {
        padding: 7px 12px;
        font-size: 12px;
        letter-spacing: 0;
    }
}
