/*
 *  Remodal - v0.6.3
 *  Flat, responsive, lightweight, easy customizable modal window plugin with declarative state notation and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal necessary styles
   ========================================================================== */

/* Hide scroll bar */
html.remodal-is-locked                              { overflow: hidden; }

/* Anti FOUC */

.remodal,
[data-remodal-id]                                   { visibility: hidden; }

/* Necessary styles of the overlay */

.remodal-overlay                                    { position: fixed; z-index: 9999; top: -5000px; right: -5000px; bottom: -5000px; left: -5000px; display: none; }

/* Necessary styles of the wrapper */

.remodal-wrapper                                    { position: fixed; z-index: 10000; top: 0; right: 0; bottom: 0; left: 0; display: none; overflow: auto; text-align: center; -webkit-overflow-scrolling: touch; }
.remodal-wrapper:after                              { display: inline-block; height: 100%; margin-left: -0.05em; content: ""; }

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper                                    { -webkit-transform: translateZ(0px); }

/* Necessary styles of the modal dialog */

.remodal                                            { position: relative; display: inline-block; }

/* Anti-zoom. Font-size should be >= 16px. */

.remodal select,
.remodal textarea,
.remodal input,
.remodal select:focus,
.remodal textarea:focus,
.remodal input:focus                                { font-size: 16px; }

/* ==========================================================================
   Remodal default theme
   ========================================================================== */

/* Background for effects */

.remodal-bg                                         { -webkit-transition: -webkit-filter 0.2s ease-out; -moz-transition: -moz-filter 0.2s ease-out; transition: filter 0.2s ease-out; }
body.remodal-is-active .remodal-bg                  { -webkit-filter: blur(3px); -ms-filter: blur(3px); filter: blur(3px); -moz-filter: blur(3px); }

/* Default theme styles of the overlay */

.remodal-overlay                                    { -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; transition: opacity 0.2s ease-out; opacity: 0; background: rgba(21, 21, 21, 0.80); }
body.remodal-is-active .remodal-overlay             { opacity: 1; }

/* Default theme styles of the modal dialog */
.pc-modal                                           { font-size: 12px; }

.remodal
{
    font-size: 16px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    /* Removed this movement animation. It caused issues with the PC modal's positioning prior to closing.
    -webkit-transition: -webkit-transform 0.2s ease-out, opacity 0.2s ease-out;
    -moz-transition: -moz-transform 0.2s ease-out, opacity 0.2s ease-out;
    -o-transition: -o-transform 0.2s ease-out, opacity 0.2s ease-out;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
        */
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transform: scale(0.95);
    opacity: 0;
    color: #182a3c;
    background-clip: padding-box;
}

body.remodal-is-active .remodal                     { -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); opacity: 1; }

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after                              { vertical-align: middle; }

/* Close button */

/*
.remodal-close:hover,
.remodal-close:active                               { background: #3e5368; }
*/
.remodal-close:hover.remodal-close:after,
.remodal-close:active.remodal-close:after           { color: #f4f4f4; }

/* Dialog buttons */

.remodal-confirm,
.remodal-cancel
{
    font-size: 10pt;
    display: inline-block;
    width: 120px;
    margin: 0 0 5px 0;
    padding: 9px 0;
    cursor: pointer;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    text-align: center;
    text-decoration: none;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    background-clip: padding-box;
}

.remodal-confirm                                    { color: #16a085; border: 2px solid #16a085; background: #f4f4f4; }
.remodal-confirm:hover,
.remodal-confirm:active                             { color: #f4f4f4; background: #16a085; }
.remodal-cancel                                     { color: #c0392b; border: 2px solid #c0392b; background: #f4f4f4; }
.remodal-cancel:hover,
.remodal-cancel:active                              { color: #f4f4f4; background: #c0392b; }
.remodal .desk-close                                { display: none; }
.remodal .desk-only                                 { display: none; }
.remodal .mob-only                                  { display: inline-block; }
.remodal .mob-close-top                             { background: #FFF; padding: 6px; color: #212121; text-align: right; border-bottom: 1px solid #CCC; }
.remodal .mob-close-top .remodal-close              { width: 16px; height: 16px; display: inline-block; background: url(/content/images/icon-dialog-close-mob-top.png) no-repeat; cursor: pointer; }
.remodal .pc-modal .mob-close-top                   { background: none; padding: 0; position: relative; border: 0; }
.remodal .pc-modal .mob-close-top .remodal-close    { width: 64px; height: 64px; display: block; background: url(/content/images/icon-dialog-close.png) no-repeat; cursor: pointer; position: absolute; right: 40px; top: -30px; }
.remodal .mob-close-bottom                          { width: 64px; height: 64px; display: inline-block; background: url(/content/images/icon-dialog-close.png) no-repeat; cursor: pointer; text-align: center; margin-top: 0; position: relative; margin: 0 0 0 -50px; }
.remodal .mob-close-bottom:before                   { content: ""; }
.remodal .mob-close-bottom:hover                    { text-decoration: none; }
.remodal .mob-close-bottom span                     { position: absolute; top: 20px; left: 64px; }
.remodal a.mob-close-bottom                         { color: #212121; }
.nav-edit                                           { top: 30px; }
.remodal .alternate-size                            { width: 100%; padding: 12px 0; }
.remodal .mob-gutter-left                           { margin-left: 0; }
.mob-text-size                                      { font-size: 13px; }
.has-error                                          { color: #a94442; font-weight: bold; }
.remodal .desk-close-small                          { font-size: 1.5em; position: absolute; right: 10px; top: 10px; }
    
/* Device Activation Classes */

.modal-desk-only                                    { display: none; }
.modal-mob-only                                     { display: block; }

/* Desktop Media query */

/* min-width 641px */
@media only screen and (min-width: 40.063em)
{
    .remodal                                        { max-width: 797px; min-height: 0; -webkit-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,.5); -moz-box-shadow: 0 0 20px 0 rgba(0,0,0,.5); box-shadow: 0 0 20px 0 rgba(0,0,0,.5); }
    .remodal .desk-only                             { display: inline-block; }
    .remodal .mob-only                              { display: none; }
    .remodal .desk-close                            { display: block; }
    .remodal .mob-close-top                         { display: none; }
    .remodal .mob-close-bottom                      { display: none; }
    .remodal .jQModalButton                         { margin-top: 0; }
    .remodal .links                                 { padding-top: 20px; }
    .nav-edit                                       { top: 10px; }
    .modal-desk-only                                { display: block; }
    .modal-mob-only                                 { display: none; }
    .remodal .mob-close-bottom                      { margin-top: 10px; }
    .remodal .mob-gutter-left                       { margin-left: 20px; }
    .mob-text-size                                  { font-size: 16px; }
    .remodal .modal-wrapper                         { top: 50px; bottom: 50px; height: 680px; overflow-y: auto; padding-right: 10px; }
    .padding-adjustment                             { padding: 40px 20px; }
    .remodal-2                                      { max-width: 550px; border-radius: 15px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; }
}

/* Custom */

.remodal .desk-close                                { width: 64px; height: 64px; background: url(/content/images/icon-dialog-close.png) no-repeat; cursor: pointer; position: absolute; top: -20px; right: -20px; }
.remodal .desk-close                                { -webkit-transition: background 0.2s ease-out; -moz-transition: background 0.2s ease-out; -o-transition: background 0.2s ease-out; transition: background 0.2s ease-out; }
.remodal .nav-edit                                  { left: 10px; }
.remodal .dialog-cms                                { text-align: left; }
.remodal .dialog-form                               { text-align: left; padding: 40px 30px; }
.remodal .dialog-cms,
.remodal .dialog-form                               { margin: 0; }
.remodal .sign-up-input                             { height: 35px; padding: 0 0 0 6px; background: #EEE; font-size: 16px; color: #212121; border: 0; border-radius: 0; }
.remodal .jQModalButton                             { display: inline-block; font-size: 16px; color: #FFF; text-align: center; cursor: pointer; place-self: flex-start stretch; border-radius: 0; }
.remodal .links                                     { padding-top: 10px; }
.remodal .links a                                   { font-weight: 700; letter-spacing: .05em; }
.remodal .mob-center                                { text-align: center; }
.remodal h2                                         { margin-top: 0; padding-top: 0; }
.remodal .spinner                                   { padding: 200px 0; }

/* Add To Cart Adjustments */

.ShowProjectList                                    { margin: 0; }
input.USItemQtyEdit                                 { padding: 7px; }
.wrapper                                            { background-color: #efefef; }
.padding-5                                          { padding: 5px; }
.padding-10                                         { padding: 10px; }
.padding-16                                         { padding: 16px; }
.other-accessories                                  { font-size: 12px; padding-top: 10px; }
.accessories-item                                   { border-top: 1px solid #ddd; padding: 10px 0; font-size: inherit; }
.PHCS-accesories ul                                 { font-size: 11px!important; }
.modalDialog                                        { background: #FFF; -webkit-box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2); box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2); }

/* PC Modal 2.0 */
.pc-modal-2 .jQerrorLabel                           { width: 100%; min-height: 1px; background-color: #f2dede; margin: 1px 0 0 0; padding: 5px 0; color: #a94442; text-align: center; border: 1px solid transparent; }
.pc-modal-2 .jQerrorLabel                           { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative; float: left; }
.remodal .pc-modal-2 .dialog-form                   { padding: 20px 20px 0 20px; }
.signup-grid                                        { display: grid; grid-template-columns: 1fr; }
.signup-form-grid                                   { display: grid; grid-template-columns: 9fr 3fr; justify-content: center; }
.signup-links-grid                                  { display: grid; grid-template-columns: 6fr 6fr; }
.signup-links-mobile-grid                           { display: grid; grid-column: 1 / span 2; font-weight: bold; }
.signup-grid .opt-in                                { margin-top: 5px; }

.pc-modal-2                                         { border-radius: 5px; padding: 10px 0; }
.pc-modal-2  .message                               { text-align: center; }
.pc-modal-2 .message h1                             { line-height: 1.3em; }
.pc-modal-2 .message h1 span                        { color: #0EA98B; }
.pc-modal-2 .message h2                             { font-size: 18px; }
.pc-modal-2 .message h3                             { margin: 20px 0; }
.remodal .pc-modal-2 .sign-up-input                 { width: 100%; background-color: #F8F8F8; border: 1px solid #0EA98B; }
.remodal .pc-modal-2 .jQModalButton                 { background-color: #0EA98B; }
.remodal .pc-modal-2 input[type=checkbox]           { accent-color: #0EA98B; }
.remodal .pc-modal-2 .remodal-close                 { position: absolute; top: 10px; right: 15px; }
.remodal .pc-modal-2 .message-icon                  { font-size: 36px; }

@media (max-width:800px)
{
    .remodal .pc-modal-2 .remodal-close             { top: 30px; right: 35px; }
}

/* Small and large phones */
/* The max width test in ClientInfo.IsMobile needs to match this */
@media (max-width:800px)
{
    .mob-buttons .button_large                      { margin: 0 auto !important; }
    .padding-adjustment                             { padding: 30px 20px !important; }
    .remodal .dialog-form                           { padding: 40px 15px 15px 15px; }
    .modalDialog                                    { margin: 24px; }
    .pc-modal                                       { margin: 24px; }
    .has-error                                      { font-size: 16px; }
    .alert                                          { font-size: 13px; margin-bottom: 0; }
    .pc-remodal-wrapper                             { top: inherit; }
    .remodal-overlay                                { background: rgba(21, 21, 21, 0.2); }
    .remodal-2-overlay                              { background: rgba(21, 21, 21, 0.8); }
    .modalDialog                                    { -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.5); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.5); }
}

/* Included the following breakspoints in case there is a need. They are cloned from bootstrap-custom. */

/* Small device */
@media (min-width:801px)
{
    .has-error                                      { font-size: 13px; }
}

/* Medium devices (desktops, 992px and up) */
@media (max-width:992px)
{
}

/* Medium devices (desktops, 992px and up) */
@media (min-width:992px)
{
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width:1200px)
{
}