/* BLACK FRIDAY – HAPPY CBD | verze 2
   Nahrazuje předchozí black-friday.css. Načíst za ostatními styly.
   Rámeček BF26 doplňuje soubor black-friday.js.
*/

/* Pozadí lišty. Zobrazení a zavření ponecháváme Shoptetu. */
.site-msg.information {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    min-height: 44px !important;
    border-bottom: 2px solid #ffe000 !important;
    box-sizing: border-box;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-shadow: none !important;
}

/* Odstranění štítku ze staré pozice mimo vnitřní obal. */
.site-msg.information::before {
    content: none !important;
    display: none !important;
}

/* Štítek i text jsou společně vystředěné v obalu do 1 000 px. */
.site-msg.information > .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 1000px !important;
    min-width: 0;
    margin: 0 auto !important;
    padding: 0 32px !important;
    box-sizing: border-box;
    position: relative;
}

/* Štítek je nyní uvnitř stejného obalu jako text. */
.site-msg.information > .container::before {
    content: "BLACK FRIDAY" !important;
    display: inline-block !important;
    flex: 0 0 auto;
    background: #ffe000 !important;
    color: #111111 !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    border-radius: 3px;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
    line-height: 1.2 !important;
    white-space: nowrap;
    text-shadow: none !important;
}

/* Nativní clearfix nesmí vytvářet další položku ve flexu. */
.site-msg.information > .container::after {
    content: none !important;
    display: none !important;
}

.site-msg.information .text {
    display: block !important;
    flex: 0 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word;
}

/* Skutečný text BF26 z administrace, obalený skriptem. */
.site-msg.information .text .bf-code {
    display: inline-block;
    padding: 2px 9px;
    margin: 0 3px;
    border: 1px dashed #ffe000;
    border-radius: 4px;
    background: rgba(255, 224, 0, 0.07);
    color: #ffe000 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.35;
    vertical-align: baseline;
    white-space: nowrap;
}

/* Zachování nativního zavíracího prvku a jeho křížku. */
.site-msg.information .close {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 13px;
    height: 13px;
    margin: 0;
    transform: translateY(-50%) rotate(45deg);
    color: #ffffff !important;
    opacity: 0.8;
    cursor: pointer;
}

.site-msg.information .close:hover,
.site-msg.information .close:focus-visible {
    opacity: 1;
}

.site-msg.information .close::before,
.site-msg.information .close::after {
    background: #ffffff !important;
}

/* Mobil: štítek nad textem, text se přirozeně zalamuje. */
@media (max-width: 767px) {
    .site-msg.information {
        padding: 9px 8px 10px !important;
    }

    .site-msg.information > .container {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 24px !important;
    }

    .site-msg.information > .container::before {
        padding: 4px 9px !important;
        font-size: 10px !important;
    }

    .site-msg.information .text {
        max-width: 440px;
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    .site-msg.information .text .bf-code {
        padding: 2px 7px;
        font-size: 12px;
    }

    .site-msg.information .close {
        right: 4px;
        top: 4px;
        transform: rotate(45deg);
    }
}
