/**
 * 2007-2026 JMD Developers
*
* 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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
*  @author    JMD Developers <info@alcalink.com>
*  @copyright 2007-2026 JMD Developers
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/

.jmdTopBar {
    font-size: 20px;
    font-weight: 200;
    background-color: #000000;
    color: #ffffff;
    min-height: 20px;
    height: 20px;
    transition: height 0.3s ease, max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    position: relative;
    z-index: 10000;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    float: none !important;
    clear: both;
}

/* When countdown is present, allow bar to grow taller */
.jmdTopBar.jmd-has-countdown {
    height: auto !important;
    min-height: 20px;
}

.jmdTopBar.jmd-has-close-btn {
    padding-right: 36px;
}

.jmdTopBar.jmd-sticky {
    position: sticky;
    top: 0;
    z-index: 10000;
}

.jmdTopBar.jmd-auto-hide {
    max-height: 0 !important;
    height: 0 !important;
    overflow: hidden;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
}

.jmdTopBar.jmd-closed {
    max-height: 0 !important;
    height: 0 !important;
    overflow: hidden;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Close button */
.jmd-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 4px;
    line-height: 1;
    transition: opacity 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

/* When countdown is present, align close button to the columns row (not the full bar) */
.jmdTopBar.jmd-has-countdown .jmd-close-btn {
    top: 20px;
    transform: translateY(-50%);
}
.jmd-close-btn:hover {
    opacity: 1;
}

/* Entry animations — max-height approach (works with sticky and auto height) */
.jmdTopBar.jmd-animate-slide {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}
.jmdTopBar.jmd-animate-slide.jmd-animate-active {
    max-height: 200px;
    opacity: 1;
    /* Restore default transitions for subsequent interactions (close, auto-hide) */
    transition: height 0.3s ease, max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.jmdTopBar.jmd-animate-fade {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
.jmdTopBar.jmd-animate-fade.jmd-animate-active {
    opacity: 1;
    /* Restore default transitions for subsequent interactions (close, auto-hide) */
    transition: height 0.3s ease, max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.jmdColumna {
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    min-width: 0;
    transition: opacity 0.3s ease;
}

/* Carousel column: full-width row */
.jmdTopBar .jmdColumna#jmdChange {
    flex: 1 1 100%;
}

/* When countdown is present, columns keep their fixed height while countdown gets a separate row */
.jmdTopBar.jmd-has-countdown .jmdColumna {
    height: 20px;
    min-height: unset;
}

/* Countdown needs the same right padding as columns to avoid close button overlap */
.jmdTopBar.jmd-has-countdown.jmd-has-close-btn .jmdCountdown {
    padding-right: 36px;
}

.jmdColumna a {
    color: inherit;
    text-decoration: none;
}

.jmdColumna a:hover {
    text-decoration: underline;
}

.jmd-fade-out {
    opacity: 0;
}

.jmdCountdown {
    text-align: center;
    font-weight: bold;
    padding: 2px 0;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* Force a flex line break before countdown */
.jmdTopBar.jmd-has-countdown::before {
    content: '';
    flex-basis: 100%;
    width: 0;
    height: 0;
    order: 99;
}

.jmdTopBar.jmd-has-countdown .jmdCountdown {
    order: 100;
}

.jmd-countdown-timer {
    display: inline-block;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .jmdSecundaria {
        display: none;
    }
    .jmdTopBar {
        font-size: 15px;
    }
    .jmd-close-btn {
        right: 8px;
    }
}