/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ── Akce 3 za cenu 2 – banner ── */
.buy2get1-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--Primary-200, #FFF2E5);
    margin: 16px 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 100%;
    position: relative;
    z-index: 2;
}

.buy2get1-banner:empty {
    display: none;
}

.buy2get1-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.buy2get1-banner__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.buy2get1-banner__heading {
    color: var(--Core-Colours-dark, #1A1A1A);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 155%;
    transition: color 0.2s ease;
}

.buy2get1-banner__subtext {
    color: var(--Colours-gray-500, #71717A);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 155%;
    transition: color 0.2s ease;
}

.buy2get1-banner__add-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 10px 18px;
    border: none;
    border-radius: 0.8rem;
    background: linear-gradient(92deg, #FF6B00 5.93%, #F88918 91.71%);
    color: var(--white) !important;
    font-family: "paralucent";
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 0;
    overflow: hidden;
    transition: background 0.3s ease;
}

.buy2get1-banner__add-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(92deg, #FF6B00 5.93%, #F88918 91.71%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.buy2get1-banner__add-btn:hover::before {
    opacity: 1;
}

body.woocommerce-cart .buy2get1-banner__add-btn {
    display: inline-flex;
}

.buy2get1-banner__add-btn.is-loading {
    opacity: 0.6;
    cursor: wait;
}

body.woocommerce-cart .buy2get1-banner {
    margin-top: 16px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    body.woocommerce-cart .buy2get1-banner {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ── „Zobrazit košík" tlačítko vedle „Přidat do košíku" ── */
.atc-row {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.atc-row > a.added_to_cart.wc-forward {
    margin: 0;
}

@media (max-width: 768px) {
    .atc-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .atc-row > a.added_to_cart.wc-forward {
        text-align: center;
    }
}

[data-wpr-lazyrender]:has(.buy2get1-banner) {
    content-visibility: visible !important;
}

/* ── Akce 3 za cenu 2 – free ticket badge a label v košíku ── */
.buy2get1-free-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    background: linear-gradient(92deg, #FF6B00 5.93%, #F88918 91.71%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    white-space: nowrap;
}

.buy2get1-free-label {
    display: inline-block;
    margin-left: 4px;
    color: #FF6B00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92em;
}

.shop_table .buy2get1-free-label,
.shop_table del + .buy2get1-free-label {
    margin-left: 6px;
}

.shop_table del {
    color: #999;
    text-decoration-thickness: 1.5px;
}