/* Round5: UX refinements for floating controls, popups and mobile navigation */

#back-top,
.fixed-right .fixed-right-ul li,
.fixed-right .fixed-right-ul li > a {
    border-radius: 999px;
}

#back-top {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(183 51 55 / 10%) !important;
    color: var(--primary-color, #b73337) !important;
    border: 1px solid rgb(183 51 55 / 18%) !important;
    transition: background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), border-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

a#back-top,
#back-top i {
    color: var(--primary-color, #b73337) !important;
}

body .page-wrapper #back-top.awa-backtotop-legacy,
body .page-wrapper #back-top.awa-backtotop-legacy i {
    color: var(--primary-color, #b73337) !important;
}

#back-top:hover,
#back-top:focus-visible {
    background: var(--primary-color, #b73337) !important;
    border-color: var(--primary-color, #b73337) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgb(183 51 55 / 18%);
}

a#back-top:hover,
a#back-top:focus-visible,
#back-top:hover i,
#back-top:focus-visible i {
    color: #fff !important;
}

body .page-wrapper #back-top.awa-backtotop-legacy:hover,
body .page-wrapper #back-top.awa-backtotop-legacy:focus-visible,
body .page-wrapper #back-top.awa-backtotop-legacy:hover i,
body .page-wrapper #back-top.awa-backtotop-legacy:focus-visible i {
    color: #fff !important;
}

.fixed-right .fixed-right-ul {
    display: grid;
    gap: 10px;
}

.fixed-right .fixed-right-ul li {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgb(183 51 55 / 14%);
    color: var(--text-color, #333);
    cursor: pointer;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), border-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-right .fixed-right-ul li > a {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.fixed-right .fixed-right-ul li:hover,
.fixed-right .fixed-right-ul li:focus-visible,
.fixed-right .fixed-right-ul li:focus-within {
    color: var(--primary-color, #b73337);
    border-color: rgb(183 51 55 / 28%);
    box-shadow: 0 8px 18px rgb(0 0 0 / 8%);
    transform: translateY(-1px);
}

.fixed-right .fixed-right-ul li > a:focus-visible {
    outline: none;
}

.fixed-right .fixed-right-ul li em {
    font-size: 18px;
}

.fixed-bottom .mobile-bottom-link > li > a {
    min-height: 44px;
    border-radius: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.fixed-bottom .mobile-bottom-link > li > a:hover,
.fixed-bottom .mobile-bottom-link > li > a:focus-visible,
.fixed-bottom .mobile-bottom-link > li > a[aria-expanded='true'] {
    color: var(--primary-color, #b73337);
    background: rgb(183 51 55 / 8%);
    outline: none;
}

.fixed-bottom .mobile-bottom-link > li > a .icon {
    transition: color 0.3s ease;
}

.newsletterpopup .newletter_popup_close,
.newsletterpopup .newletter_popup_close_text,
.b2b-login-modal-close {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletterpopup .newletter_popup_close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgb(255 255 255 / 92%);
    color: var(--text-color, #333);
    border: 1px solid rgb(0 0 0 / 8%);
}

.newsletterpopup .newletter_popup_close:hover,
.newsletterpopup .newletter_popup_close:focus-visible {
    background: var(--primary-color, #b73337);
    border-color: var(--primary-color, #b73337);
    color: #fff;
    box-shadow: 0 6px 16px rgb(183 51 55 / 16%);
    outline: none;
}

.newsletterpopup .newletter_popup_close_text {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
}

.newsletterpopup .newletter_popup_close_text:hover,
.newsletterpopup .newletter_popup_close_text:focus-visible {
    color: var(--primary-color, #b73337);
    text-decoration: underline;
    outline: none;
}

.newsletterpopup .nl-popup-form .field.newsletter .control input {
    min-height: 44px;
    border-radius: 12px;
}

.newsletterpopup .nl-popup-form .field.newsletter .control input:focus {
    border-color: rgb(183 51 55 / 40%);
    box-shadow: 0 0 0 3px rgb(183 51 55 / 10%);
}

.newsletterpopup .nl-popup-form .action.subscribe.primary {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgb(183 51 55 / 14%);
    transition: background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletterpopup .nl-popup-form .action.subscribe.primary:hover {
    box-shadow: 0 10px 26px rgb(183 51 55 / 20%);
    transform: translateY(-1px);
}

.newsletterpopup .nl-popup-trust-item,
.newsletterpopup .nl-popup-urgency,
.newsletterpopup .nl-popup-badge {
    color: #444;
}

.b2b-login-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgb(183 51 55 / 18%);
    background: #fff;
    color: var(--text-color, #333);
}

.b2b-login-modal-close:hover,
.b2b-login-modal-close:focus-visible {
    color: #fff;
    background: var(--primary-color, #b73337);
    border-color: var(--primary-color, #b73337);
    outline: none;
    box-shadow: 0 6px 16px rgb(183 51 55 / 14%);
}

.ajaxsuite-popup-wrapper .modal-inner-wrap,
.popup-authentication .modal-inner-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.ajaxsuite-popup-wrapper .action.action-login,
.ajaxsuite-popup-wrapper .action.action-register,
.popup-authentication .action.action-login,
.popup-authentication .action.action-register {
    min-height: 44px;
}

.ajaxsuite-popup-wrapper .field .input-text,
.popup-authentication .field .input-text {
    min-height: 44px;
    border-radius: 12px;
}

.ajaxsuite-popup-wrapper .field .input-text:focus,
.popup-authentication .field .input-text:focus {
    border-color: rgb(183 51 55 / 40%);
    box-shadow: 0 0 0 3px rgb(183 51 55 / 10%);
}

body.checkout-cart-index .cart-summary,
body.checkout-cart-index .cart-empty,
body.checkout-index-index .checkout-container,
body.checkout-index-index .opc-wrapper,
body.checkout-index-index #opc-sidebar {
    scroll-margin-top: 80px;
}

body.checkout-cart-index .cart-empty .action.continue,
body.checkout-cart-index .cart-empty .action.primary {
    min-height: 44px;
}

@media (width <= 767px) {
    .fixed-right {
        right: 10px;
        bottom: 68px;
    }

    .fixed-right .fixed-right-ul {
        gap: 8px;
    }

    .newsletterpopup .nl-popup-footer {
        gap: 10px;
    }

    .newsletterpopup .newletter_popup_close_text {
        min-height: 44px;
    }

    .b2b-login-modal-close {
        width: 40px;
        height: 40px;
    }
}
