/**
 * Copyright since 2011 BEST FOR NET s.r.o.
 *
 * COPYRIGHT NOTICE / UPOZORNĚNÍ NA AUTORSKÁ PRÁVA
 *
 * This code is protected by copyright and may not be distributed without prior written consent of the author.
 * Under the license terms, you may use and modify this code only for your own needs.
 * For any questions or further information, please contact us.
 *
 * Tento software je chráněn autorským právem a jeho šíření bez předchozího písemného souhlasu autora není povoleno.
 * Tento kód smíte v souladu s licencí používat a upravovat jen pro své vlastní účely.
 * V případě dotazů nebo zájmu o další informace nás neváhejte kontaktovat.
 *
 * @author    BEST FOR NET s.r.o. <info@bestfornet.cz>
 * @copyright Since 2011 BEST FOR NET s.r.o.
 * @license   Komerční licence – použití, šíření a úpravy tohoto software jsou možné pouze na základě individuální smlouvy s autorem. Pro více informací kontaktujte info@bestfornet.cz
 */

/* Harmonised notice on the legal guarantee (Implementing Regulation (EU) 2025/1960).
   The notice image itself must not be recoloured, cropped or distorted: only its size is set here. */

.b4ngi {
    margin: 10px 0;
}

.b4ngi-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #039;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.b4ngi-trigger:hover,
.b4ngi-trigger:focus {
    color: #002266;
}

.b4ngi-trigger__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.b4ngi-notice {
    width: 100%;
    margin: 0 auto;
}

.b4ngi-notice__image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.b4ngi-notice__info {
    margin-top: 8px;
    text-align: center;
}

.b4ngi-notice__info a {
    color: #039;
    text-decoration: underline;
    word-break: break-word;
}

/* Last checkout step: the look is chosen in the module configuration (Appearance tab).
   Text colour and font always come from the theme. */
.b4ngi--checkout {
    margin: 0 0 24px;
}

/* Style "box": information box with the EU blue stripe, a heading and the link below it. */
.b4ngi--style-box .b4ngi-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #039;
    background-color: #fff;
    color: inherit;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.b4ngi--style-box .b4ngi-trigger:hover,
.b4ngi--style-box .b4ngi-trigger:focus {
    color: inherit;
    background-color: #f7f9fd;
}

.b4ngi--style-box .b4ngi-trigger__icon,
.b4ngi--style-attached .b4ngi-trigger__icon {
    width: 22px;
    height: 22px;
}

.b4ngi--style-box .b4ngi-trigger__body {
    display: flex;
    flex-direction: column;
}

.b4ngi--style-box .b4ngi-trigger__title {
    font-weight: 700;
}

.b4ngi--style-box .b4ngi-trigger__text {
    font-size: 0.87em;
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.b4ngi--style-box .b4ngi-trigger__text::after {
    content: " \203A";
    display: inline-block;
    margin-left: 4px;
    text-decoration: none;
}

.b4ngi--style-box .b4ngi-trigger:hover .b4ngi-trigger__text,
.b4ngi--style-box .b4ngi-trigger:focus .b4ngi-trigger__text {
    text-decoration: none;
}

/* Style "attached": a grey box like the terms and conditions box. Right below that box
   (b4nthreesteporder renders the hook straight after it) it joins it, separated by a thin line. */
.b4ngi--style-attached .b4ngi-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 14px;
    background-color: var(--tso-color-gray-light, #f5f5f5);
    color: inherit;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.b4ngi--style-attached .b4ngi-trigger:hover,
.b4ngi--style-attached .b4ngi-trigger:focus {
    color: inherit;
}

.b4ngi--style-attached .b4ngi-trigger__text {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.b4ngi--style-attached .b4ngi-trigger:hover .b4ngi-trigger__text,
.b4ngi--style-attached .b4ngi-trigger:focus .b4ngi-trigger__text {
    text-decoration: none;
}

.conditions-form + .b4ngi--style-attached {
    margin-top: -24px;
}

.conditions-form + .b4ngi--style-attached .b4ngi-trigger {
    padding-top: 0;
}

.conditions-form + .b4ngi--style-attached .b4ngi-trigger__icon,
.conditions-form + .b4ngi--style-attached .b4ngi-trigger__body {
    margin-top: 12px;
}

.conditions-form + .b4ngi--style-attached .b4ngi-trigger::before {
    content: "";
    position: absolute;
    top: 0;
    right: 14px;
    left: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.conditions-form + .b4ngi--style-attached .b4ngi-trigger {
    position: relative;
}

/* Style "pill": compact rounded label in the EU blue. */
.b4ngi--style-pill .b4ngi-trigger {
    gap: 8px;
    padding: 5px 14px 5px 8px;
    border: 1px solid #039;
    border-radius: 999px;
    color: #039;
    font-size: 0.87em;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.b4ngi--style-pill .b4ngi-trigger:hover,
.b4ngi--style-pill .b4ngi-trigger:focus {
    color: #fff;
    background-color: #039;
}

.b4ngi--style-pill .b4ngi-trigger:hover .b4ngi-trigger__icon path:first-child,
.b4ngi--style-pill .b4ngi-trigger:focus .b4ngi-trigger__icon path:first-child {
    fill: #fff;
}

.b4ngi--style-pill .b4ngi-trigger:hover .b4ngi-trigger__icon path:last-child,
.b4ngi--style-pill .b4ngi-trigger:focus .b4ngi-trigger__icon path:last-child {
    fill: #039;
}

.b4ngi--header {
    display: inline-block;
    margin: 0 10px;
}

.b4ngi--footer {
    clear: both;
}

/* Modal */

html.b4ngi-modal-open,
html.b4ngi-modal-open body {
    overflow: hidden;
}

.b4ngi-modal {
    position: fixed;
    z-index: 100000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 20px 10px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-overflow-scrolling: touch;
}

.b4ngi-modal__dialog {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 44px 16px 16px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.b4ngi-modal__title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.b4ngi-modal__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}

.b4ngi-modal__close:hover,
.b4ngi-modal__close:focus {
    color: #000;
}

/* default-bootstrap: the nav bar has a dark background */
header .nav .b4ngi--header {
    float: right;
    margin: 0;
    padding: 8px 10px;
}

header .nav .b4ngi--header .b4ngi-trigger {
    color: #fff;
}

/* default-bootstrap footer is a row of columns */
#footer .b4ngi--footer {
    float: left;
    width: 100%;
    padding: 0 15px;
}

#footer .b4ngi--footer .b4ngi-trigger {
    color: #fff;
}
