/* GE Notify Availability: "notify me when available" block under the out-of-stock label on the product page.
   Card like the expert-advice block (light grey, thin border), accents in the theme red (#e73e24, the colour of
   the "add to cart" button in custom.css). The form inside is rendered by ets_cfultimate (classes wpcfu / ets_cfu_*),
   so its own defaults (36px inputs, blue uppercase button, block labels) are overridden here.
   Layout: name + e-mail on the left, the button on the right, the consent checkbox under them. */
.ge-na {
    margin: 14px 0 6px;
    padding: 16px 18px 18px;
    border: 1px solid #ececec;
    border-radius: 3px;
    background: #f9f9f9;
    color: #222;
    clear: both;
}

.ge-na[hidden] {
    display: none !important;
}

.ge-na__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ge-na__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #f1cfc9;
    color: #e73e24;
    line-height: 0;
}

.ge-na__text {
    min-width: 0;
}

.ge-na__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.ge-na__subtitle {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

.ge-na__already {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #d9d9d9;
    font-size: 13px;
    color: #222;
}

.ge-na__form {
    margin-top: 14px;
}

/* ---- Contact Form Ultimate markup inside the block ---- */
.ge-na .wpcfu .contact_form_title,
.ge-na .wpcfu h3 {
    display: none;
}

.ge-na .wpcfu .ets-cfu-form {
    width: 100%;
    margin: 0;
}

.ge-na .wpcfu .ets_cfu_wrapper,
.ge-na .wpcfu .ets_cfu_box,
.ge-na .wpcfu .ets_cfu_col {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

/* the first row of the form (e-mail + button) (2026-11-25 layout):
   - block narrower than 560px (product column on desktop, phones): e-mail field full width, the button
     full width under it - both get enough room for the long button text in every language
   - wider block (tablet, product column spanning the page): one row, the field takes all the free space */
.ge-na__form {
    container-type: inline-size;
}

.ge-na .wpcfu .ets_cfu_box.style2,
.ge-na .wpcfu .ets_cfu_box.style3 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.ge-na .wpcfu .ets_cfu_box.style2 .ets_cfu_col,
.ge-na .wpcfu .ets_cfu_box.style3 .ets_cfu_col {
    width: auto;
    flex: 1 1 260px;
    min-width: 0;
    padding: 0;
}

.ge-na .wpcfu .ets_cfu_box.style2 .ets_cfu_col.col3,
.ge-na .wpcfu .ets_cfu_box.style3 .ets_cfu_col.col2 {
    flex: 0 0 auto;
}

@container (max-width: 559px) {
    .ge-na .wpcfu .ets_cfu_box.style3 .ets_cfu_col,
    .ge-na .wpcfu .ets_cfu_box.style3 .ets_cfu_col.col2 {
        flex: 0 0 100%;
    }

    .ge-na .wpcfu .ets_cfu_box.style3 input.ets_cfu-submit {
        display: block;
        width: 100%;
    }
}

.ge-na .wpcfu .ets_cfu_box.style1 {
    margin-top: 8px;
}

.ge-na .wpcfu .ets_cfu_input {
    display: block;
    margin: 0;
}

.ge-na .wpcfu .ge-na-hidden-field {
    display: none;
}

.ge-na .wpcfu .ets_cfu_input_recaptcha br {
    display: none;
}

.ge-na .wpcfu .ets_cfu_input_recaptcha.ge-na-captcha-invisible {
    width: 0;
    height: 0;
    margin: 0;
    line-height: 0;
    overflow: hidden;
}

.ge-na .wpcfu label {
    display: block;
    margin: 0;
    font-weight: 400;
    clear: none;
}

/* field captions: the inputs carry placeholders, the caption stays for screen readers */
.ge-na .wpcfu label .ets_cfu_span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ge-na .wpcfu .ets_cfu_form-control-wrap {
    display: block;
    position: relative;
}

.ge-na .wpcfu input.ets_cfu_form-control:not(.ets_cfu-submit) {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 44px;
    box-shadow: none;
}

.ge-na .wpcfu input.ets_cfu_form-control:not(.ets_cfu-submit):focus {
    border-color: #e73e24;
    outline: none;
    box-shadow: none;
}

.ge-na .wpcfu input.ets_cfu_form-control::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.ge-na .wpcfu input.ets_cfu_form-control.wpcfu-not-valid {
    border-color: #e73e24;
}

/* the button: filled red like "add to cart" (.tvall-inner-btn in custom.css), bell icon before the text */
.ge-na .wpcfu .ets_cfu_input_submit {
    position: relative;
}

.ge-na .wpcfu .ets_cfu_input_submit::before {
    content: "\e7f7";
    font-family: "Material Icons";
    font-size: 19px;
    line-height: 1;
    position: absolute;
    left: 13px;
    top: 50%;
    margin-top: -10px;
    color: #fff;
    pointer-events: none;
}

.ge-na .wpcfu input.ets_cfu-submit {
    display: inline-block;
    height: 46px;
    margin: 0;
    padding: 0 16px 0 38px;
    border: 1px solid #e73e24;
    border-radius: 5px;
    background: #e73e24;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 44px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .2s, border-color .2s;
}

.ge-na .wpcfu input.ets_cfu-submit:hover,
.ge-na .wpcfu input.ets_cfu-submit:focus-visible {
    background: #c9301a;
    border-color: #c9301a;
}

.ge-na .wpcfu input.ets_cfu-submit[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.ge-na .wpcfu .ajax-loader {
    margin: 0 0 0 6px;
    vertical-align: middle;
}

.ge-na .wpcfu .is-active .ets_cfu_input_submit.ets_cfu_input:after {
    position: absolute;
    top: 50%;
    right: 12px;
    margin: -10px 0 0;
}

/* consent checkbox under the row */
.ge-na .wpcfu .ets_cfu_input_acceptance {
    margin-top: 2px;
}

.ge-na .wpcfu .ets_cfu_input_acceptance label,
.ge-na .wpcfu .ets_cfu-acceptance label,
.ge-na .wpcfu .ets_cfu-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
    cursor: pointer;
}

.ge-na .wpcfu .ets_cfu-acceptance input[type="checkbox"],
.ge-na .wpcfu .ets_cfu_input_acceptance input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #e73e24;
}

.ge-na .wpcfu .ets_cfu_input_acceptance a {
    color: #e73e24;
    text-decoration: underline;
}

/* validation and response messages */
.ge-na .wpcfu .wpcfu-not-valid-tip {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.3;
    color: #e73e24;
}

.ge-na .wpcfu .wpcfu-response-output {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.45;
}

.ge-na .wpcfu .wpcfu-response-output.wpcfu-display-none {
    display: none;
}

.ge-na .wpcfu .gdpr-consent {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.ge-na .wpcfu .gdpr-consent:empty {
    display: none;
}

.ge-na .wpcfu > .clearfix,
.ge-na .wpcfu .ets_cfu_product {
    display: none;
}

/* cancel page */
.ge-na-cancel p {
    font-size: 15px;
}

/* ---- responsive ---- */
@media (max-width: 767px) {
    .ge-na .wpcfu input.ets_cfu_form-control:not(.ets_cfu-submit) {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .ge-na {
        padding: 14px 14px 16px;
    }

    .ge-na .wpcfu .ets_cfu_box.style2 .ets_cfu_col,
    .ge-na .wpcfu .ets_cfu_box.style2 .ets_cfu_col.col3 {
        flex: 0 0 100%;
    }

    .ge-na .wpcfu input.ets_cfu-submit {
        display: block;
        width: 100%;
    }
}

/* GE 2026-11-25: замість галочки згоди модуль друкує власний рядок .ge-na__privacy під формою
   (текст і посилання на Політику конфіденційності в налаштуваннях модуля), тому загальний рядок psgdpr тут зайвий. */
.ge-na .ge-form-privacy,
.ge-na .gdpr-consent {
    display: none;
}

/* information line under the form (instead of a consent checkbox, 2026-11-25) */
.ge-na__privacy {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
}

.ge-na__privacy a {
    color: #e73e24;
    text-decoration: underline;
}

/* after a successful submit CFU shows its message inside the form; the note is no longer needed */
.ge-na--sent .ge-na__privacy {
    display: none;
}

/* 2026-11-25: e-mail field with an envelope icon, the same height as the button */
.ge-na .wpcfu input.ets_cfu_form-control[type="email"] {
    padding-left: 42px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px 18px;
}

.ge-na .wpcfu input.ets_cfu_form-control[type="email"]:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e73e24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

/* button: full width when stacked, text centred with the bell before it */
@container (max-width: 559px) {
    .ge-na .wpcfu .ets_cfu_box.style3 {
        gap: 10px;
    }

    .ge-na .wpcfu .ets_cfu_box.style3 .ets_cfu_input_submit {
        display: block;
    }

    .ge-na .wpcfu .ets_cfu_box.style3 input.ets_cfu-submit {
        height: 48px;
        padding: 0 20px 0 44px;
        font-size: 14px;
        line-height: 46px;
        text-align: center;
    }

    .ge-na .wpcfu .ets_cfu_box.style3 .ets_cfu_input_submit::before {
        left: calc(50% - var(--ge-na-btn-shift, 120px));
    }
}

.ge-na .wpcfu input.ets_cfu_form-control[type="email"] {
    height: 48px;
    line-height: 46px;
}

.ge-na .wpcfu input.ets_cfu-submit {
    height: 48px;
    line-height: 46px;
}

/* «already subscribed» notice (2026-11-25) */
.ge-na__subscribed[hidden],
.ge-na__body[hidden],
.ge-na__cancelled[hidden] {
    display: none !important;
}

.ge-na--subscribed .ge-na__subtitle {
    display: none;
}

.ge-na__subscribed {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #cfe8d8;
    border-radius: 5px;
    background: #f1faf4;
    color: #222;
}

.ge-na__check {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1a7f4b;
    color: #fff;
}

.ge-na__subscribed-body {
    min-width: 0;
}

.ge-na__subscribed-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #155f39;
}

.ge-na__subscribed-text {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    overflow-wrap: anywhere;
}

.ge-na__subscribed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 8px;
    font-size: 13px;
}

.ge-na__link {
    padding: 0;
    border: 0;
    background: none;
    color: #e73e24;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.ge-na__link:hover,
.ge-na__link:focus-visible {
    color: #c9301a;
}

.ge-na__link[disabled] {
    opacity: .6;
    cursor: wait;
}

.ge-na__sep {
    color: #999;
}

.ge-na__cancelled {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #d9d9d9;
    font-size: 13px;
    color: #444;
}

/* additional status badges next to «Немає в наявності» (2026-11-30): rendered exactly like the theme's red
   inline label (inline box, padding 5px 10px), the taller line-height keeps wrapped rows apart */
/* one wrapping row for the theme's availability label and the additional statuses (theme wrapper in
   tv-product-1.tpl): every label is its own flex item, so a status that does not fit moves to the next line
   alone, with an even gap and left edge on desktop and mobile */
.ge-acs-availability-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin: 0 0 10px;
}

.ge-acs-availability-row > .product-availability-block,
.ge-acs-availability-row .ge-acs-badges {
    display: contents;
}

.ge-acs-availability-row .ge-acs-badges[hidden] {
    display: none;
}

.ge-acs-availability-row .product-availability-block > span,
.ge-acs-availability-row > .product-availability.onorder-note {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.ge-acs-availability-row .product-availability-block > span .material-icons {
    margin-right: 4px;
}

/* without the theme wrapper (other templates) the badges still form their own wrapping row */
.ge-acs-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin: 6px 0 10px;
    line-height: normal;
}

.ge-acs-badges[hidden] {
    display: none;
}

.ge-acs-badges .ge-acs-badge {
    --ge-acs-c: #8a94a0;
    --ge-acs-fg: #ffffff;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 29px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 2px;
    background: var(--ge-acs-c);
    color: var(--ge-acs-fg);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.35;
    white-space: nowrap;
}

/* the theme label above gets the same small rounding, so both read as one set */
.tv-product-page-content .product-availability-block .custom-product-availability-unavailable,
.tv-product-page-content .product-availability.onorder-note {
    border-radius: 2px;
}

@media (max-width: 575px) {
    .ge-acs-badges {
        gap: 6px;
    }
    .ge-acs-badges .ge-acs-badge {
        letter-spacing: .5px;
        padding: 5px 9px;
        /* a long name on a narrow phone wraps inside its badge instead of leaving the column */
        white-space: normal;
    }
}

/* the theme's red «out of stock» label next to the badges must not break inside either */
.product-availability-block .custom-product-availability-unavailable {
    white-space: nowrap;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* bot trap of the notify form (off-screen, never seen or focused by people) */
.ge-acs-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* 2026-12-01: CFU response messages inside the notify block, in the style of the «already subscribed» card.
   Success: the form row (e-mail + button) and the subtitle step aside, the message becomes the card with a green
   check; the status check then keeps the same wording and only adds «another address · cancel» under it.
   Errors (validation, spam, mail failure): the same card in the theme red with «!». */
@keyframes geNaCardIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

#ge-na .wpcfu .wpcfu-response-output:not(.wpcfu-display-none) {
    position: relative;
    margin: 12px 0 0;
    padding: 14px 16px 14px 56px;
    min-height: 56px;
    border: 1px solid #f3c9c1;
    border-radius: 5px;
    background: #fdf3f1;
    box-shadow: none;
    color: #222;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
    animation: geNaCardIn .25s ease-out;
}

#ge-na .wpcfu .wpcfu-response-output:not(.wpcfu-display-none)::before {
    content: "!";
    position: absolute;
    top: 14px;
    left: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e73e24;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

#ge-na .wpcfu .wpcfu-response-output.alert-success,
#ge-na .wpcfu .wpcfu-response-output.wpcfu-mail-sent-ok,
#ge-na.ge-na--sent .wpcfu .wpcfu-response-output:not(.wpcfu-display-none) {
    border-color: #cfe8d8;
    background: #f1faf4;
    color: #155f39;
    font-weight: 700;
}

#ge-na .wpcfu .wpcfu-response-output.alert-success::before,
#ge-na .wpcfu .wpcfu-response-output.wpcfu-mail-sent-ok::before,
#ge-na.ge-na--sent .wpcfu .wpcfu-response-output:not(.wpcfu-display-none)::before {
    content: "";
    background: #1a7f4b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") no-repeat 50% 50% / 18px 18px;
}

#ge-na .wpcfu .wpcfu-response-output b,
.ge-na__subscribed-title b {
    font-weight: 700;
    color: #222;
}

/* after a successful submit: only the card is left, in the place of the form row */
.ge-na--sent .wpcfu .ets_cfu_wrapper,
.ge-na--sent .ge-na__subtitle {
    display: none;
}

#ge-na.ge-na--sent .wpcfu .wpcfu-response-output:not(.wpcfu-display-none) {
    margin-top: 0;
}

/* the notice that follows keeps the «thank you» line as its title: same card, actions appear under it */
.ge-na--just-sent .ge-na__subscribed-title {
    font-size: 14px;
    line-height: 1.45;
}

.ge-na__subscribed {
    animation: geNaCardIn .25s ease-out;
}

.ge-na--just-sent .ge-na__subscribed {
    animation: none;
}

.ge-na__subscribed-text[hidden] {
    display: none;
}

.ge-na__check {
    flex-basis: 28px;
}

@media (prefers-reduced-motion: reduce) {
    #ge-na .wpcfu .wpcfu-response-output:not(.wpcfu-display-none),
    .ge-na__subscribed {
        animation: none;
    }
}

/* 2026-12-01: «Запитайте аналог» - the same card, «send» icon on the button instead of the bell */
.ge-na--analog .wpcfu .ets_cfu_input_submit::before {
    content: "\e163";
    font-size: 18px;
    margin-top: -9px;
}
