/* =====================================================
   PRESSWORKS CUSTOM STYLES
   ===================================================== */


/* =====================================================
   CUSTOMER LOGIN PAGE
   ===================================================== */

.page-customer-login {
    background: #f6f8fa;
}

/* Infigo has used both versions of this ID */
.page-customer-login #contentrow,
.page-customer-login #contentInnerRow,
.page-customer-login #contentiInnerRow,
.page-customer-login .login__wrapper {
    min-height: 78vh;
}

/* Main login-page container */
.page-customer-login .login__wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px 70px;
    box-sizing: border-box;
}

/* Main page heading */
.page-customer-login .page-title {
    text-align: center;
    margin: 54px 0 34px !important;
}

.page-customer-login .page-title h1,
.page-customer-login .page-title .title {
    margin: 0 !important;
    color: #111111;
    font-size: 38px !important;
    font-weight: 700;
    line-height: 1.15;
}

/* Override Infigo's column spacing */
.page-customer-login .login__wrapper .columns {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 34px;

    width: 100%;
    margin: 0 !important;
}

/* Both registration and login cards */
.page-customer-login .login__wrapper .columns > .column {
    float: none !important;

    width: 100% !important;
    max-width: 560px !important;
    flex: 1 1 0 !important;

    margin: 0 !important;
    padding: 40px 44px !important;

    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .10);

    box-sizing: border-box;
}

/*
   When two columns are present, give both cards the same height.
   The registration card can scroll without moving the entire page.
*/
.page-customer-login
.login__wrapper
.columns
> .column:first-child:nth-last-child(2),

.page-customer-login
.login__wrapper
.columns
> .column:first-child:nth-last-child(2) ~ .column {
    height: 620px;
    max-height: 620px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4ccd4 transparent;
}

.page-customer-login
.login__wrapper
.columns
> .column:first-child:nth-last-child(2)::-webkit-scrollbar,

.page-customer-login
.login__wrapper
.columns
> .column:first-child:nth-last-child(2) ~ .column::-webkit-scrollbar {
    width: 7px;
}

.page-customer-login
.login__wrapper
.columns
> .column:first-child:nth-last-child(2)::-webkit-scrollbar-thumb,

.page-customer-login
.login__wrapper
.columns
> .column:first-child:nth-last-child(2) ~ .column::-webkit-scrollbar-thumb {
    background: #c4ccd4;
    border-radius: 10px;
}

/* Remove Infigo's inner backgrounds and spacing */
.page-customer-login .returning-wrapper__inner,
.page-customer-login .login-block {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Form section titles */
.page-customer-login .login-title,
.page-customer-login .new-wrapper .title,
.page-customer-login .returning-wrapper .title {
    margin: 4px 0 30px !important;
    color: #111111;
    text-align: center;
    font-size: 27px !important;
    font-weight: 700;
    line-height: 1.2;
}

/* Keep required-field notice neat */
.page-customer-login .required,
.page-customer-login .required-fields {
    color: #cf4646;
}

/* Form rows */
.page-customer-login .table-container .row,
.page-customer-login .table-container .form-row {
    margin-bottom: 20px;
}

/* Labels and field names */
.page-customer-login .item-name {
    display: block;
    margin-bottom: 8px;

    color: #202428;
    font-size: 16px;
    font-weight: 600;
}

/*
   Infigo places the colon outside the label element.
   Keeping the label inline prevents the colon from
   dropping onto a separate line.
*/
.page-customer-login label {
    display: inline !important;
    margin: 0;

    color: #202428;
    font-size: 16px;
    font-weight: 600;
}

/* Keep checkbox and its wording on the same line */
.page-customer-login input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    margin: 0 7px 0 0;
    accent-color: #00aeef;
}

.page-customer-login input[type="checkbox"] + label {
    display: inline !important;
    vertical-align: middle;
}

/* Inputs */
.page-customer-login input[type="text"],
.page-customer-login input[type="email"],
.page-customer-login input[type="password"],
.page-customer-login select {
    width: 100% !important;
    height: 48px;

    padding: 0 14px;
    color: #202428;
    background: #ffffff !important;

    border: 1px solid #b9c3cc;
    border-radius: 8px;
    box-shadow: none;

    box-sizing: border-box;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.page-customer-login input[type="text"]:hover,
.page-customer-login input[type="email"]:hover,
.page-customer-login input[type="password"]:hover,
.page-customer-login select:hover {
    border-color: #8997a3;
}

.page-customer-login input[type="text"]:focus,
.page-customer-login input[type="email"]:focus,
.page-customer-login input[type="password"]:focus,
.page-customer-login select:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, .15);
}


/* Links */
.page-customer-login a:not(.button) {
    color: #202428;
    text-decoration: none;
}

.page-customer-login a:not(.button):hover {
    color: #0072bc;
    text-decoration: underline;
}

/* Login and registration buttons */
.page-customer-login .button-1,
.page-customer-login .loginbutton,
.page-customer-login input[type="submit"],
.page-customer-login button[type="submit"] {
    width: 100% !important;
    min-height: 50px;

    border: 0 !important;
    border-radius: 8px;

    background: #00aeef !important;
    color: #ffffff !important;

    font-size: 16px;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 5px 14px rgba(0, 174, 239, .20);
    transition:
        background-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.page-customer-login .button-1:hover,
.page-customer-login .loginbutton:hover,
.page-customer-login input[type="submit"]:hover,
.page-customer-login button[type="submit"]:hover {
    background: #0098d4 !important;
    box-shadow: 0 7px 18px rgba(0, 152, 212, .25);
    transform: translateY(-1px);
}

/* Tablet and smaller screens */
@media screen and (max-width: 900px) {
    .page-customer-login .login__wrapper {
        max-width: 650px;
        padding: 0 22px 50px;
    }

    .page-customer-login .page-title {
        margin: 38px 0 28px !important;
    }

    .page-customer-login .page-title h1,
    .page-customer-login .page-title .title {
        font-size: 32px !important;
    }

    .page-customer-login .login__wrapper .columns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 26px;
    }

    .page-customer-login .login__wrapper .columns > .column {
        flex: none !important;
        max-width: 560px !important;
        padding: 34px 32px !important;
    }

    /*
       On smaller screens, registration remains scrollable,
       but the login card returns to its natural height.
    */
    .page-customer-login
    .login__wrapper
    .columns
    > .column:first-child:nth-last-child(2) {
        height: 600px;
        max-height: 600px;
        overflow-y: auto;
    }

    .page-customer-login
    .login__wrapper
    .columns
    > .column:first-child:nth-last-child(2) ~ .column {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

/* Phone screens */
@media screen and (max-width: 520px) {
    .page-customer-login .login__wrapper {
        padding: 0 14px 40px;
    }

    .page-customer-login .page-title {
        margin: 28px 0 22px !important;
    }

    .page-customer-login .page-title h1,
    .page-customer-login .page-title .title {
        font-size: 27px !important;
    }

    .page-customer-login .login__wrapper .columns > .column {
        padding: 28px 22px !important;
        border-radius: 14px;
    }

    .page-customer-login .login-title,
    .page-customer-login .new-wrapper .title,
    .page-customer-login .returning-wrapper .title {
        font-size: 23px !important;
    }
}


/* =====================================================
   HOMEPAGE FEATURED PRODUCTS
   ===================================================== */

.small-product-item.smaller-product-item-homepage .product-item {
    position: relative !important;
    inset: auto !important;

    width: 100% !important;
    min-height: 245px !important;

    display: flex !important;
    flex-direction: column !important;

    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 5px 18px rgba(0,0,0,.10);
    transition: box-shadow .2s ease;
}

.small-product-item.smaller-product-item-homepage .product-item:hover {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.small-product-item.smaller-product-item-homepage .product-title {
    min-height: 54px !important;

    padding: 12px 10px 6px !important;

    text-align: center !important;

    overflow: visible !important;
    white-space: normal !important;
}

.small-product-item.smaller-product-item-homepage .product-title a {
    display: block !important;

    color: #333333;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;

    white-space: normal !important;
}

.small-product-item.smaller-product-item-homepage .product-title a:hover {
    color: #0072bc;
}

.small-product-item.smaller-product-item-homepage .picture {
    height: 160px !important;
    min-height: 160px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    padding: 10px 15px 18px !important;

    background: #ffffff !important;
    border: none !important;
}

.small-product-item.smaller-product-item-homepage .picture a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100%;
    height: 100%;
}

.small-product-item.smaller-product-item-homepage .picture img {
    display: block !important;

    margin: auto !important;

    width: auto !important;
    height: auto !important;

    max-width: 85% !important;
    max-height: 135px !important;

    object-fit: contain !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.20));

    transform: none !important;
}

.homeFeaturedProductsWrapper .listWrapper {
    align-items: flex-start !important;
}

.homeFeaturedProductsWrapper .listItem {
    height: auto !important;
    margin-bottom: 28px !important;
    padding: 0 12px !important;
}

.homeFeaturedProductsWrapper .small-product-item,
.homeFeaturedProductsWrapper .product-item {
    min-height: 245px !important;
}


/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */

.product-essential .gallery,
.product-essential .picture,
.product-wrapper .picture {
    background: #ffffff;
}

.product-essential .gallery img,
.product-essential .picture img,
.product-wrapper img {
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.22));
}
/* =====================================================
   FINAL HOMEPAGE PRODUCT IMAGE FIX
   ===================================================== */

.homeFeaturedProductsWrapper .small-product-item.smaller-product-item-homepage .product-item {
    height: 245px !important;
    min-height: 245px !important;
    display: flex !important;
    flex-direction: column !important;
}

.homeFeaturedProductsWrapper .small-product-item.smaller-product-item-homepage .picture {
    position: relative !important;
    height: 160px !important;
    min-height: 160px !important;
    padding: 10px 15px 18px !important;
    overflow: hidden !important;
}

.homeFeaturedProductsWrapper .small-product-item.smaller-product-item-homepage .picture a {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

.homeFeaturedProductsWrapper .small-product-item.smaller-product-item-homepage .picture img {
    position: static !important;
    float: none !important;
    display: block !important;
    margin: auto !important;
    max-width: 85% !important;
    max-height: 135px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
/* =====================================================
   FINAL HOMEPAGE ROW SPACING FIX
   ===================================================== */

.homeFeaturedProductsWrapper .listItem {
    height: 245px !important;
    min-height: 245px !important;
    margin-bottom: 34px !important;
    padding: 0 12px !important;
}

.homeFeaturedProductsWrapper .small-product-item,
.homeFeaturedProductsWrapper .small-product-item.smaller-product-item-homepage,
.homeFeaturedProductsWrapper .small-product-item.smaller-product-item-homepage .product-item {
    height: 245px !important;
    min-height: 245px !important;
}
/* =====================================================
   MEGAEDIT COSMETIC STYLING ONLY
   Does not alter editor sizing or pane calculations
   ===================================================== */

.page-dynamicproduct-editor .freeTargetContainer {
    background: #ffffff !important;
    border-left: 1px solid #d9e0e6 !important;
}

.page-dynamicproduct-editor .freeTargetContainer label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #15191d !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.page-dynamicproduct-editor .freeTargetContainer input[type="text"],
.page-dynamicproduct-editor .freeTargetContainer input[type="email"],
.page-dynamicproduct-editor .freeTargetContainer input[type="number"],
.page-dynamicproduct-editor .freeTargetContainer textarea,
.page-dynamicproduct-editor .freeTargetContainer select {
    width: 100% !important;
    min-height: 40px !important;
    margin-bottom: 14px !important;
    padding: 8px 11px !important;

    color: #222222 !important;
    background: #ffffff !important;

    border: 1px solid #bac5cf !important;
    border-radius: 7px !important;

    box-shadow: none !important;
    box-sizing: border-box !important;
}

.page-dynamicproduct-editor .freeTargetContainer input:focus,
.page-dynamicproduct-editor .freeTargetContainer textarea:focus,
.page-dynamicproduct-editor .freeTargetContainer select:focus {
    outline: none !important;
    border-color: #00aeef !important;
    box-shadow: 0 0 0 3px rgba(0,174,239,.15) !important;
}