/**
 * File: calcwood_black_friday.css
 * Verze a aktuální datum: 16-11-26 v_1.05
 */
.th-bf-bar {
    box-sizing: border-box;
    width: min(1400px, calc(100% - 32px));
    margin: 12px auto 16px;
    border: 1px solid #f9c343;
    border-radius: 14px;
    background: radial-gradient(120% 180% at 50% 0%, #2a2210 0%, #14110a 55%, #0d0c0a 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    color: #ece9e4;
    font-family: 'Roboto', Arial, sans-serif;
}

.th-bf-bar *,
.th-bf-bar *::before,
.th-bf-bar *::after {
    box-sizing: border-box;
}

.th-bf-bar[hidden] {
    display: none !important;
}

/* Počítač: jeden celek na středu, pozadí přes celou šířku. Při nedostatku místa
   (delší jazyk) se blok s cenou a tlačítkem zalomí pod text, pořád na středu. */
.th-bf-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    padding: 14px 56px;
}

.th-bf-badge {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 8px;
    background: #f9c343;
    color: #1a1400;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(249, 195, 67, 0.35);
}

.th-bf-text {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.th-bf-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.th-bf-until {
    color: #c9c3ba;
    font-size: 14px;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.th-bf-countdown {
    display: inline-flex;
    gap: 4px;
}

.th-bf-cd {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    min-width: 38px;
    height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
    justify-content: center;
    border: 1px solid #3a3631;
    border-radius: 6px;
    background: #0b0a09;
    line-height: 22px;
}

.th-bf-cd[hidden] {
    display: none;
}

.th-bf-cd strong {
    color: #f9c343;
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.th-bf-cd small {
    color: #a8a29a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Cena a tlačítko drží u sebe – nabídka a krok k ní se čtou jako jedno. */
.th-bf-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

.th-bf-price {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 10px;
    line-height: 1;
    white-space: nowrap;
}

.th-bf-price-new {
    color: #f9c343;
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.th-bf-price-old {
    color: #a8a29a;
    font-size: 16px;
    font-weight: 600;
    text-decoration-thickness: 1.5px;
}

.th-bf-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 10px;
    background: #f9c343;
    color: #1a1400;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(249, 195, 67, 0.5), 0 6px 22px rgba(249, 195, 67, 0.35);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.th-bf-cta-arrow {
    display: inline-block;
    font-weight: 900;
    transition: transform 0.15s ease;
}

.th-bf-cta:hover,
.th-bf-cta:focus-visible {
    background: #ffd56b;
    color: #1a1400;
    box-shadow: 0 0 0 1px rgba(255, 213, 107, 0.7), 0 8px 28px rgba(249, 195, 67, 0.5);
}

.th-bf-cta:hover .th-bf-cta-arrow,
.th-bf-cta:focus-visible .th-bf-cta-arrow {
    transform: translateX(3px);
}

.th-bf-cta:focus-visible,
.th-bf-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.th-bf-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a8a29a;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.th-bf-close:hover {
    background: #24211d;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .th-bf-cta,
    .th-bf-cta-arrow {
        transition: none;
    }
}

@media (max-width: 720px) {
    .th-bf-bar {
        width: calc(100% - 24px);
        margin: 8px auto 12px;
    }

    .th-bf-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 10px 12px;
        padding: 12px;
    }

    .th-bf-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        padding: 7px 12px;
        font-size: 13px;
    }

    .th-bf-close {
        position: static;
        transform: none;
        grid-column: 3;
        grid-row: 1;
    }

    .th-bf-text {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .th-bf-title {
        font-size: 17px;
    }

    .th-bf-until {
        gap: 4px 6px;
        font-size: 13px;
    }

    .th-bf-countdown {
        gap: 3px;
    }

    .th-bf-cd {
        min-width: 30px;
        height: 22px;
        padding: 0 4px;
        line-height: 20px;
    }

    .th-bf-cd strong {
        font-size: 13px;
    }

    .th-bf-action {
        grid-column: 1 / -1;
        grid-row: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .th-bf-price-new {
        font-size: 28px;
    }

    .th-bf-cta {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        white-space: normal;
        text-align: center;
    }
}
