/*
 * Vzhled odpovídá Divi formulářům na webech (patička): pole v barvě webu bez rámečku,
 * bílý tučný text (font webu), čtvercový checkbox, malé obrysové tlačítko Noka.
 * Barva polí se nastavuje v Nastavení → Newsletter (proměnná --neec-nl-field).
 * Selektory mají dvě třídy, aby přebily globální styly Divi pro input[type=email].
 */
.neec-newsletter {
    --neec-nl-field: rgba(255, 255, 255, 0.2);
    --neec-nl-text: #fff;
    color: var(--neec-nl-text);
}

.neec-newsletter--footer {
    /* Stejné odsazení a svislá linka jako Divi modul newsletteru v patičce. */
    border-left: 1px solid var(--neec-nl-text);
    padding: 30px 0 15px 17px;
}

.neec-newsletter .neec-newsletter__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.neec-newsletter .neec-newsletter__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.neec-newsletter .neec-newsletter__email {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 0;
    border-radius: 0;
    background-color: var(--neec-nl-field);
    color: var(--neec-nl-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.neec-newsletter .neec-newsletter__email::placeholder {
    color: var(--neec-nl-text);
    opacity: 1;
}

.neec-newsletter .neec-newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 15px;
    font-weight: 700;
    line-height: 1.7em;
}

.neec-newsletter .neec-newsletter__consent input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: calc((1.7em - 18px) / 2) 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: var(--neec-nl-field);
    cursor: pointer;
}

.neec-newsletter .neec-newsletter__consent input:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--neec-nl-text);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.neec-newsletter .neec-newsletter__consent label {
    cursor: pointer;
}

.neec-newsletter .neec-newsletter__consent a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.neec-newsletter .neec-newsletter__button {
    display: inline-block;
    margin: 15px 0 0;
    padding: 6px 15px;
    border: 1px solid var(--neec-nl-text);
    border-radius: 4px;
    background: transparent;
    color: var(--neec-nl-text);
    font-family: 'Noka', Helvetica, Arial, Lucida, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.neec-newsletter .neec-newsletter__button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.neec-newsletter .neec-newsletter__button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.neec-newsletter .neec-newsletter__email:focus-visible,
.neec-newsletter .neec-newsletter__consent input:focus-visible,
.neec-newsletter .neec-newsletter__button:focus-visible {
    outline: 2px solid var(--neec-nl-text);
    outline-offset: 2px;
}

.neec-newsletter .neec-newsletter__message {
    margin: 15px 0 0;
    padding: 0;
    font-weight: 700;
}

.neec-newsletter .neec-newsletter__message:empty {
    display: none;
}
