/* TiSvapo - Back In Stock elegante
   Versione 1.3.0: centratura forzata #backinstock_button e override background plugin.
*/

.single-product .summary p.stock.out-of-stock,
.single-product .summary .stock.out-of-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 8px 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f6f6f4;
    border: 1px solid #deded8;
    color: #171717 !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.single-product .summary p.stock.out-of-stock::before,
.single-product .summary .stock.out-of-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, .10);
    display: inline-block;
}

.single-product .summary .bis_notifier_wrapper {
    max-width: 520px;
    margin: 14px 0 22px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbf9 100%);
    border: 1px solid #deded8;
    box-shadow: 0 14px 32px rgba(20, 20, 20, .08);
    clear: both;
    position: relative;
    overflow: hidden;
}

.single-product .summary .bis_notifier_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #161616 0%, #d32f2f 100%);
}

.single-product .summary .bis_notifier_fields {
    margin: 0;
}

.single-product .summary .bis_notifier_wrapper #bis_form_title,
.single-product .summary .bis_notifier_wrapper .custom_message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 16px !important;
    color: #171717 !important;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    letter-spacing: -.01em;
}

.single-product .summary .bis_notifier_wrapper #bis_form_title::before,
.single-product .summary .bis_notifier_wrapper .custom_message::before {
    content: "🔔";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    min-width: 31px;
    border-radius: 999px;
    background: #161616;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 7px 15px rgba(0, 0, 0, .16);
}

.single-product .summary .bis_notifier_wrapper .outofstock_message {
    display: none;
}

.single-product .summary .bis_notifier_wrapper .notifymeptag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.single-product .summary .bis_notifier_wrapper .notifymeptag br {
    display: none;
}

.single-product .summary .bis_notifier_wrapper .notifymeptag > div {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.single-product .summary .bis_notifier_wrapper input[type="text"],
.single-product .summary .bis_notifier_wrapper input[type="email"] {
    width: 100% !important;
    max-width: 430px;
    height: 48px;
    margin: 0 !important;
    padding: 0 44px 0 15px !important;
    border: 1px solid #d8d8d1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #171717 !important;
    font-size: 14px !important;
    line-height: 48px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.single-product .summary .bis_notifier_wrapper input[type="text"]::placeholder,
.single-product .summary .bis_notifier_wrapper input[type="email"]::placeholder {
    color: #8c8c84;
    opacity: 1;
}

.single-product .summary .bis_notifier_wrapper input[type="text"]:focus,
.single-product .summary .bis_notifier_wrapper input[type="email"]:focus {
    border-color: #171717 !important;
    box-shadow: 0 0 0 3px rgba(23, 23, 23, .10) !important;
    background: #fff !important;
}

/* Check verde vicino al campo email quando viene inserito un indirizzo valido */
.single-product .summary .bis_notifier_wrapper.tisvapo-bis-email-ok .notifymeptag::after {
    content: "✓";
    position: absolute;
    top: 13px;
    right: calc(50% - 206px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(22, 163, 74, .24);
    z-index: 2;
}

.single-product .summary .bis_notifier_wrapper input.notifyme,
.single-product .summary .bis_notifier_wrapper input#backinstock_button,
.single-product .summary .bis_notifier_wrapper input[id^="backinstock_button"],
.single-product .summary .bis_notifier_wrapper .notifyme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 310px;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0 auto !important;
    padding: 13px 24px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #151515 0%, #2a2a2a 100%) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.single-product .summary .bis_notifier_wrapper input#backinstock_button,
.single-product .summary .bis_notifier_wrapper input[id^="backinstock_button"] {
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.single-product .summary .bis_notifier_wrapper input.notifyme:hover,
.single-product .summary .bis_notifier_wrapper input#backinstock_button:hover,
.single-product .summary .bis_notifier_wrapper input[id^="backinstock_button"]:hover,
.single-product .summary .bis_notifier_wrapper .notifyme:hover {
    background: linear-gradient(135deg, #000000 0%, #d32f2f 145%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
}

.single-product .summary .bis_notifier_wrapper input.notifyme:active,
.single-product .summary .bis_notifier_wrapper input#backinstock_button:active,
.single-product .summary .bis_notifier_wrapper input[id^="backinstock_button"]:active,
.single-product .summary .bis_notifier_wrapper .notifyme:active {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(0,0,0,.16);
}

.single-product .summary .bis_notifier_wrapper .outofstock_success_msg,
.single-product .summary .bis_notifier_wrapper .outofstock_error_msg {
    margin: 12px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
}

.single-product .summary .bis_notifier_wrapper .outofstock_success_msg:not(:empty) {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #f0fbf4;
    border: 1px solid #bfe8cb;
    color: #14532d !important;
    font-weight: 800;
}

.single-product .summary .bis_notifier_wrapper .outofstock_success_msg:not(:empty)::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .22);
}

.single-product .summary .bis_notifier_wrapper .outofstock_error_msg:not(:empty) {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    border-radius: 12px;
    background: #fff1f1;
    border: 1px solid #f0caca;
    color: #9b1c1c !important;
    font-weight: 700;
}

.single-product .summary .bis_notifier_wrapper .outofstock_error_msg:not(:empty)::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #9b1c1c;
    color: #fff;
    font-weight: 900;
}

.single-product .summary .bis_notifier_wrapper .blockUI.blockOverlay {
    border-radius: 16px !important;
}

@media (max-width: 560px) {
    .single-product .summary .bis_notifier_wrapper {
        max-width: 100%;
        padding: 17px;
        border-radius: 14px;
    }

    .single-product .summary .bis_notifier_wrapper #bis_form_title,
    .single-product .summary .bis_notifier_wrapper .custom_message {
        font-size: 15px;
    }

    .single-product .summary .bis_notifier_wrapper input[type="text"],
    .single-product .summary .bis_notifier_wrapper input[type="email"],
    .single-product .summary .bis_notifier_wrapper input.notifyme,
    .single-product .summary .bis_notifier_wrapper input#backinstock_button,
    .single-product .summary .bis_notifier_wrapper input[id^="backinstock_button"],
    .single-product .summary .bis_notifier_wrapper .notifyme,
    .single-product .summary .bis_notifier_wrapper .notifymeptag > div {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .single-product .summary .bis_notifier_wrapper.tisvapo-bis-email-ok .notifymeptag::after {
        right: 13px;
    }
}
