@import 'vars';

.validation-advice {
    color: @errorColor;
    font-size: 14px;
    margin: 3px 0;
    letter-spacing: 0.1em;

    /* Account
    ========================================================================= */
    .dashboard & {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 15px;
        text-transform: uppercase;
        margin: 0;
        text-overflow: ellipsis;
        overflow: hidden;
        width: 220px;
        white-space: nowrap;
        text-align: right;

        @media @tablet {
            width: 130px;
            font-size: 14px;
        }
    }
    .dashboard .custom-select-wrapper & {
        top: -23px;
        @media @tablet {
            top: -22px;
            width: 145px;
        }
    }

    /* Account Edit
    ========================================================================= */
    .customer-edit & {
        position: static;
        text-align: left;
        margin-top: 5px;
        overflow: inherit;
        white-space: inherit;
        width: auto;
        letter-spacing: 0.075em;
    }

    /* Checkout
    ========================================================================= */
    #opc-login &,
    #opc-billing &,
    #opc-shipping & {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 15px;
        text-transform: uppercase;
        margin: 0;
        text-align: right;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        @media @tablet {
            font-size: 14px;
            max-width: 130px;
        }
    }
    #opc-login .custom-select-wrapper &,
    #opc-billing .custom-select-wrapper &,
    #opc-shipping .custom-select-wrapper & {
        top: -23px;
        @media @tablet {
            top: -22px;
            text-overflow: ellipsis;
            overflow: hidden;
            width: 180px;
            white-space: nowrap;
        }
    }


    /* Product Page
    ========================================================================= */
    .product-view & {
        position: absolute;
        top: -25px; right: 0;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 1;
    }

    /* Discount
    ========================================================================= */
    .discount & {
        position: absolute;
        top: 38px;
        left: 255px;
        @media @tablet {
            left: 148px;
        }
    }

    /* Account Login
    ========================================================================= */
    .section-login & {
        position: absolute;
        right: 20px;
        top: 0;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 1;
        @media @tablet {
            font-size: 14px;
        }
    }

    /* Account Login
    ========================================================================= */
    .section-create & {
        position: absolute;
        right: 0;
        top: 0;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 1;
        @media @tablet {
            font-size: 14px;
        }
    }


    /* Forgot Password
    ========================================================================= */
    .forgot-pass & {
        position: absolute;
        right: 0;
        top: 0;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 1;
        @media @tablet {
            font-size: 14px;
        }
    }


    /* Wishlist
    ==========================================================================*/
    .wishlist-share-email-form & {
        width: 578px;
        font-size: 13px;
        margin-top: 5px;
    }

}
.messages {
    list-style: none;
    margin: 0;
    padding: 0;
    ul {
        margin-bottom: 25px;
        li {
            margin-bottom: 25px;
        }
    }
    .error-msg {
        color: @errorColor;
    }
    .success-msg {
        color: @mainColorScheme;
    }

    /* Cart
    ========================================================================= */
    .cart & {
        text-align: center;
    }

    /* Wishlist
    ========================================================================= */
    .share-wrapper & {
        margin-bottom: 40px;
        line-height: 21px;
        text-align: center;

        .error-msg {
            color: #969696;
        }
        .success-msg {
            color: @mainColorScheme;
        }
        a {
            color: @mainColorScheme;
            text-decoration: underline;
            &:hover {
                color: @mainColorScheme;
            }
        }
    }
}


/* Product Page ============================================================= */
.product-view {
    .messages {
        margin: 20px 0 -20px;
    }
    .validation-error {
        position: relative;
    }
}


/* Checkout
============================================================================= */
.opc {
    .validation-error {
        .custom-select-btn {
            border-color: @errorColor;
        }
    }
}


/* Product
============================================================================= */
.product-shop {
    .validation-error {
        .custom-select-btn {
            border-color: @errorColor;
        }
    }
}


/* Account
============================================================================= */
.customer-account-create,
.customer-account-login {
    .messages {
        width: 920px;
        margin: 25px auto -25px;
    }
}
.my-account {
    .messages {
        ul {
            margin-bottom: 0;
            li {
                margin: 5px 0;
            }
        }
    }
    #advice-validate-password-password,
    #advice-validate-cpassword-confirmation {
        position: static;
        font-size: 12px;
        text-transform: none;
        margin-top: 6px;
    }
}


/* Footer Subscribe
==============================================================================*/
#ajax-info {
    position: absolute;
    left: 0;
    bottom: -25px;
    white-space: nowrap;
    font-size: 14px;

    .ajax-loading {
        position: relative;
        background: url('../../images/ajax-loader.gif') 0 0 no-repeat;
        background-size: 24px;
        text-indent: -9999px;
        display: block;
        width: 24px;
        height: 24px;
        top: 5px;
    }

    .error {
        color: @errorColor;
    }
    .success {
        color: @mainColorScheme;
    }

}


/* noscript Message
==============================================================================*/
.global-site-notice.noscript {
    position: fixed;
    left: 0; top: 0; right: 0;
    z-index: 1050;
    padding: 20px 0;
    background: #323232;
    color: #fff;
    text-align: center;
}

/* Popup Subscribe
==============================================================================*/

#ajax-infoz {
  position: absolute;
  left: 0;
  bottom: -25px;
  white-space: nowrap;
  font-size: 14px;
  width: 100%;
  text-align: center;
}
#ajax-infoz .ajax-loading {
  position: relative;
  background: url('../../images/ajax-loader.gif') 0 0 no-repeat;
  background-size: 24px;
  text-indent: -9999px;
  display: block;
  width: 24px;
  height: 24px;
  top: 5px;
  margin: 0 auto;
}
#ajax-infoz .error {
  color: #fe0000;
}
#ajax-infoz .success {
  color: #00e1f5;
}
