/*!
Theme Name: RosaLux Geneva
Theme URI: https://gitlab.com/partnerandpartners/partner-starter
Author: Partner & Partners — Logan, Zach, Greg
Author URI: https://partnerandpartners.com
Description: Default
Version: 1.0.0
Tested up to: 7.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: partner-starter
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
!*/

/* Section titles from: https://patorjk.com/software/taag/#p=display&f=Modular */

* {
    padding: 0;
    margin: 0;
    top: 0;
    box-sizing: border-box !important;
    scroll-margin-top: calc(var(--header-height) + 2rem);}

::selection {
    background-color: var(--rls-red-tint) !important;
}

* a:hover {
    text-decoration-color: var(--rls-red) !important;
    color: inherit !important;
}

/* Single.php Share Buttons */
details.share-options {
    pointer-events: none;
}

details.share-options summary {
    list-style: none;
    pointer-events: all;
}

details.share-options a {
    margin-top: -1px;
    pointer-events: all;
}

/* General */
.wp-block-separator {
    position: relative;
    display: inline-block;
    height: 1px !important;
    min-width: 100% !important;
    background-color: var(--rls-red);
    border-bottom: none !important;
    margin-top: 2rem;
    margin-bottom: 2rem;}

.mx-auto a,
.styled-link {
    color: var(--rls-red);
    text-decoration: underline;}

.wp-block-button {
    display: flex;
    flex-direction: row;
    align-items: baseline;}

.wp-block-button > * {
    display: inline-block;}

.wp-block-buttons .wp-block-button a.wp-block-button__link {
    font-size: 1.4rem;
    font-family: 'Univers Bold';
    line-height: 1;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;
    border: 1px solid;
    border-radius: 0;
    border-color: black;
    background-color: var(--rls-red-tint);
    transition: all 0.2s ease;
}

.wp-block-buttons .wp-block-button a.wp-block-button__link:hover {
    background-color: var(--rls-red);
}

.wp-block-buttons .wp-block-button.is-style-outline a.wp-block-button__link {
    color: var(--rls-red);
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;
    border-color: var(--rls-red);
    background-color: transparent;
}

.wp-block-buttons .wp-block-button.is-style-outline a.wp-block-button__link:hover {
    color: black !important;
    border-color: black;
    background-color: var(--rls-red-tint);
}

/* Single.php */
.hero-container {
    position: relative;
    height: calc(100vh - var(--header-height));
    width: 100%;}

.matte-layer,
.image-layer,
.noise-layer,
.gradient-layer {
    position: absolute;
    height: 100%;
    width: 100%;}

.matte-layer {
    background-color: black;
    z-index: 1;}

.image-layer {
    opacity: 0.85;
    z-index: 2;
    background-size: cover;
    background-position: center;}

.gradient-layer {
    background-image: linear-gradient(to bottom, rgba(255,0,0,0), var(--rls-red));
    z-index: 3;}

.noise-layer {
    background-image: url('./img/red-noise.png');
    background-size: 35%;
    background-repeat: repeat;
    z-index:4;}

.text-layer {
    text-align: center;
    position: absolute;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    height: auto !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);-ms-transform: translate(-50%,-50%);-webkit-transform: translate(-50%,-50%);
    z-index: 5;}

.splash-text-container {
    width: 100%;
    padding: 5rem 30rem;
}

.single-template .wp-block-image.size-large {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;}

.wp-block-file a,
.wp-block-button__link {
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;
    border: 1px solid;
    color: #767676;
}

.wp-block-button::after {
    display: none;
}

.wp-block-file__button {
    display: none;}

.wp-block-media-text {
    grid-gap: 2rem !important;
}

.wp-block-media-text__media {
    margin-bottom: 2rem;
}

.wp-block-media-text * {
    top: 0 !important;
    align-self: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-media-text p {
    padding: 0rem !important;
    font-size: inherit !important;
}

.wp-block-pullquote {
    border-top: 1px solid var(--rls-red) !important;
    border-bottom: 1px solid var(--rls-red) !important;
    color: black !important;
    padding: 2rem 0rem !important;
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

.wp-block-pullquote p {
   margin-bottom: 0rem !important;
}

.wp-block-quote {
    margin-right: 10%;
    margin-left: 10%;
    padding: 5%;
    margin-bottom: 2rem;
    border-left: 1px solid var(--rls-red);
}

.wp-block-quote p {
    padding-left: 0% !important;
    padding-right: 0% !important;
    margin-bottom: 0 !important;
}

.wp-block-quote p br:first-child {
    display: none;
}

/* Archive.php */
.archive-container {
    position: relative;
    height: calc(75vh - var(--header-height));
    width: 100%;}

/* Image */
.portrait-image {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 150%;
    /* padding-top: 187.5%; */
    background-color: #767676;
}

.landscape-image {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 53.333%;
    background-color: #767676;
}

.square-image {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 100%;
    background-color: #767676;
}

.portrait-image > img,
.landscape-image > img,
.square-image > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    position: relative;
    display: block;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-size: cover;
    background-position: center;}

.work-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;}

.work-hero::after {
    display: block;
    content: '';
    padding-bottom: 53.333%;
}

.work-hero > img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

/* Front Page */
.work-meta {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-flow: wrap;}

.rect-divider {
    height: 1.6rem;
    width: calc(1.6rem * 1.875);
    background-color: var(--rls-red);}

.latest-image {
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-color: #767676;}

.inline-shape {
    display: flex;
    flex-direction: row;
    align-items: baseline;}

.inline-shape * {
    display: inline-block !important;}

.big-tri {
    width: 0;
    height: 0;
    border-top: 1.25rem solid transparent;
    border-left: 2.5rem solid var(--rls-red);
    border-bottom: 1.25rem solid transparent;}

.small-tri {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 0.75rem solid transparent;
    border-left: 1.5rem solid #767676;
    border-bottom: 0.75rem solid transparent;
}

/* Newsletter Module */
/* Add div enclosing the form */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus textarea:-webkit-autofill,
textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--rls-red) inset !important;
    box-shadow: 0 0 0px 1000px var(--rls-red) inset !important;
    -webkit-text-fill-color: #ffffff;}

#mce-EMAIL,
#mc-embedded-subscribe {
    width: 100% !important;}
    
#mce-EMAIL, #mce-EMAIL:focus {
    background: none;
    border: 1px solid white;
    outline: none !important;
    text-align: center;
    color: white !important;}

#mce-EMAIL::placeholder {
    color: white !important;}

#mc-embedded-subscribe {
    background: white;
    border: none;
    outline: none !important;
    text-align: center;
    color: var(--rls-red) !important;}

/* WMPL */
.wpml-ls-statics-shortcode_actions {
    padding: 0rem !important;
}

.wpml-ls-statics-shortcode_actions li {
    display: block !important;
}

.wpml-ls-statics-shortcode_actions li * {
    align-self: flex-start !important;
    padding-left: 0rem !important;
}

.wpml-ls-statics-shortcode_actions li:not(:last-child) {
    display: block;
    margin-bottom: 1rem;
}

.wpml-ls-current-language a::before{
    content: '';
    position: absolute;
    left: 0rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--rls-red); 
}

.wpml-ls-item a:not(.wpml-ls-current-language)::before{
    content: '';
    position: absolute;
    left: 0rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid var(--rls-red);
}

/* Order Form Styling */
.order-form input[type=text] {
    width: 100%;
    padding: 0.5rem 1rem 0rem 1rem;
    border-radius: 0rem;
    border: 1px solid black;
}

.order-form input[type=submit] {
    border: 1px solid var(--rls-red);
    color: var(--rls-red);
    padding: 0.5rem 1rem 0rem 1rem;
    background: none;
    transition: all 0.2s ease;
}

.order-form input[type=submit]:hover {
    border: 1px solid var(--rls-red);
    color: white;
    padding: 0.5rem 1rem 0rem 1rem;
    background: var(--rls-red);
}

.order-form input:focus {
    outline: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus textarea:-webkit-autofill,
textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
input:-webkit-autofill::first-line {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: black;
    font-family: "Univers",-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 2rem;
}

@media (max-width: 991px) {

    h2 {
        position: relative;
        display: block;
        top: 0;
    }

    .big-tri {
        border-top: 0.875rem solid transparent;
        border-left: 1.75rem solid var(--rls-red);
        border-bottom: 0.875rem solid transparent;}

    .small-tri {
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 0.5625rem solid transparent;
        border-left: 1.125rem solid #767676;
        border-bottom: 0.5625rem solid transparent;}

    .splash-text-container {
        padding: 2rem 2rem;
    }

    /* Language */
    .mobile-wrap {
        display: flex !important;
        align-items: center;
        max-height: var(--header-height);
        margin-left: auto;
    }

    .desktop-wrap{
        display: none;
    }

    .lang-select-mobile {
        display: flex;
        text-transform: uppercase;
        color: var(--rls-red);
        max-height: 3.6rem;
        margin-right: 1rem;
        overflow: hidden;
    }

    /* For .lang-select-mobile */
    .open-select {
        overflow: visible !important;
    }

    .lang-select-mobile ul {
        list-style: none;
        margin: 0;
    }

    .lang-select-mobile ul.main-switcher {
        padding: 1rem;
        margin-top: -1rem;
        border: 1px solid transparent;
    }

    /* For ul.main-switcher */
    .open-switcher {
        background: white;
        border-color: var(--rls-red) !important;
    }

    .lang-select-mobile .main-switcher > li > span::after {
        content: '';
        position: relative;
        display: inline;
        border-top: solid 1.8rem var(--rls-red);
        border-right: solid 0.9rem transparent;
        border-bottom: solid 1.8rem transparent;
        border-left: solid 0.9rem transparent;
        top: 1.7rem;
        margin-left: 0.5rem;
    }

    .lang-select-mobile .sub-menu .active {
        display: none;
    }

    /* WMPL */
    .wpml-ls-statics-shortcode_actions {
        font-size: 1.5rem !important;
    }

    .wpml-ls-statics-shortcode_actions ul::before,
    .wpml-ls-statics-shortcode_actions ul::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background: var(--rls-red);
        left: 0rem !important;
    }

    .wpml-ls-statics-shortcode_actions li:first-child {
        padding-top: 2rem;
    }

    .wpml-ls-statics-shortcode_actions li:last-child {
        padding-bottom: 2rem;
    }

    .wpml-ls-statics-shortcode_actions li * {
        display: flex;
        align-self: flex-start !important;
        top: 0rem !important;
        padding-left: 0rem !important;
    }
    
    .wpml-ls-current-language a::before{
        content: '';
        align-self: flex-start;
        position: absolute;
        margin-top: 7px;
        left: 0rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: var(--rls-red); 
    }

    .wpml-ls-item a:not(.wpml-ls-current-language)::before{
        content: '';
        align-self: flex-start;
        position: absolute;
        margin-top: 7px;
        left: 0rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 1px solid var(--rls-red);
    }
}

/**********************
Mapbox Theme CSS
***********************/

.marker {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	cursor: pointer;
    background-color: var(--rls-red);
    transition: all 0.5s ease-in-out;
}

.marker:hover, .marker:focus, .marker:focus-within, .marker:active {
  background-color: var(--rls-red);
  width: 15px;
  height: 15px;
}

.mapboxgl-popup-content {
    font-family: 'Univers';
    padding: 2rem;
}

.mapboxgl-popup-content h6 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mapboxgl-popup-content .city-state,
.mapboxgl-popup-content .country {
    font-size: 1.5rem;
}

button.mapboxgl-popup-close-button {
    padding: 2rem;
    font-size: 2rem;
    transition: all 0.1s ease-in-out;
}

button.mapboxgl-popup-close-button:hover {
    background: none !important;
    color: var(--rls-red);
}

section#banner {
    position: sticky;
    bottom: 0;
    margin-top: 2rem;
    z-index: 998;
}

.cookie-banner {
    position: sticky;
    bottom: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.cookie-banner label {
    border: 1px solid white;
    padding-top: 5px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-banner label:hover,
.cookie-banner input:checked ~ label {
    opacity: 0.5;
}

/* Sticky Cart Styling */

.lang-cart {
    position: sticky;
    padding-bottom: 2rem;
    line-height: 1;
    z-index: 999;
}

/* Language */
.lang-select-desktop .wpml-ls-display,
.lang-select-mobile .wpml-ls-display {
    display: none;
}

.mobile-wrap {
    display: none;
}

.desktop-wrap {
    width: fit-content;
    width: -moz-fit-content;
}

.lang-select-desktop {
    display: flex;
    flex-direction: column-reverse;
    text-transform: uppercase;
    color: var(--rls-red);
    font-family: 'Univers Bold';
    max-height: 3.25rem;
    border: 1px solid var(--rls-red) !important;
    background: white;
    overflow: hidden;
}

/* For .lang-select-desktop */
.open-select {
    max-height: fit-content;
    max-height: -moz-fit-content;
}

.lang-select-desktop ul {
    list-style: none;
    margin: 0;
}

.lang-select-desktop ul.main-switcher {
    padding: 1rem;
}

.lang-select-desktop.span + .lang-select-desktop.sub-menu {
    margin: 10rem;
}

.lang-select-desktop ul.sub-menu > li {
    margin-bottom: 1rem;
}

.lang-select-desktop .main-switcher > li {
    display: flex;
    flex-direction: column-reverse;
}

.lang-select-desktop .main-switcher > li > span,
.lang-select-desktop ul.sub-menu > li {
    height: 2.4rem;
    line-height: 2.4rem;
}

.lang-select-desktop .main-switcher > li > span {
    margin-bottom: -10px;
}

.lang-select-desktop .main-switcher > li > span::after {
    content: '';
    position: relative;
    display: inline;
    border-right: solid 0.75rem transparent;
    border-bottom: solid 1.5rem var(--rls-red);
    border-left: solid 0.75rem transparent;
    top: -2.1rem;
    margin-left: 0.5rem;
}

@media screen and (max-width: 991px) {
    .lang-select-desktop .main-switcher > li > span::after {
        border-right: solid 0.6rem transparent;
        border-bottom: solid 1.2rem var(--rls-red);
        border-left: solid 0.6rem transparent;
        top: -1.6rem;
    }
}

.lang-select-desktop .sub-menu .active {
    display: none;
}

.cart-contents {
    font-family: 'Univers Bold', sans-serif;
    margin-left: auto;
    width: fit-content;
    width: -moz-fit-content;
    border: 1px solid var(--rls-red);
    padding: 1rem 1rem 0.25rem 1rem;
    color: var(--rls-red);
    background-color: white;
}

.page .entry-content > div > div.wp-block-group__inner-container {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

@media screen and (max-width: 991px) {
    .page .entry-content > div > div.wp-block-group__inner-container {
        flex-direction: column;
    }
}

.page .entry-content > div > div.wp-block-group__inner-container > h2 {
    color: var(--rls-red);
}

.page .entry-content > .wp-block-group > .wp-block-group__inner-container > .wp-block-group,
.page .entry-content > .wp-block-group > .wp-block-group__inner-container > .wp-block-columns {
    width: 100%;
}


section.split > *:first-child,
.page .entry-content > div > div.wp-block-group__inner-container > h2 {
    width: 20rem;
    min-width: 20rem;
}

.grey-left-border {
    border-width: 0 0 0 1px;
    border-style: solid;
    border-color: #767676;
}

.woocommerce.add_to_cart_inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: fit-content;
    width: -moz-fit-content;;
    padding: 0 !important;
    border: 1px solid var(--rls-red) !important;
}

span.amount,
a.add_to_cart_button {
    font-family: 'Univers Bold' !important;
    padding: 1rem 1rem 0.25rem 1rem !important;
    line-height: 1 !important;
}

.woocommerce.add_to_cart_inline a {
    border-radius: 0 !important;
    color: white;
    background-color: var(--rls-red) !important;
}

/* First cart screen */

form.woocommerce-checkout > div:first-child {
    display: flex;
    flex-direction: column;
}

form.woocommerce-checkout > div:first-child > .col-1 {
    order: 1;
}

#ship-to-different-address {
    display: none;
}

#customer_details > .col-2 {
    float: left;
}

body.woocommerce-cart h2,
body.woocommerce-checkout h3 {
    margin: 2rem 0;
}

body.woocommerce-cart .coupon {
    display: flex !important;
    flex-direction: row !important;
}

body.woocommerce-cart .coupon input[name="coupon_code"],
body.woocommerce-cart .coupon button[name="apply_coupon"] {
    width: 100% !important;
}

body.woocommerce-cart a.checkout-button,
body.woocommerce-checkout button[name="woocommerce_checkout_place_order"] {
    background-color: var(--rls-red) !important;
}

body.woocommerce-checkout .woocommerce-input-wrapper > input,
body.woocommerce-checkout .woocommerce-input-wrapper > textarea,
body.woocommerce-checkout .woocommerce-input-wrapper > select,
body.woocommerce-checkout input[name="coupon_code"] {
    padding: 1rem !important;
}

/* Hiding Coupon Code */
form.woocommerce-cart-form .coupon {
    display: none !important;
}

/*
_______  __   __  _______  _______  _______  __   __ 
|       ||  | |  ||       ||       ||       ||  |_|  |
|       ||  | |  ||  _____||_     _||   _   ||       |
|       ||  |_|  || |_____   |   |  |  | |  ||       |
|      _||       ||_____  |  |   |  |  |_|  ||       |
|     |_ |       | _____| |  |   |  |       || ||_|| |
|_______||_______||_______|  |___|  |_______||_|   |_|
 _______  ___      _______  _______  ___   _  _______ 
|  _    ||   |    |       ||       ||   | | ||       |
| |_|   ||   |    |   _   ||       ||   |_| ||  _____|
|       ||   |    |  | |  ||       ||      _|| |_____ 
|  _   | |   |___ |  |_|  ||      _||     |_ |_____  |
| |_|   ||       ||       ||     |_ |    _  | _____| |
|_______||_______||_______||_______||___| |_||_______|
 
CSS for custom blocks */

/* 
Block: Group (Exteneded)
Styling for custom column option added to 'Group' blocks via gutenberg-ext.js
*/

.wp-block-group.is-style-rls-col {
    align-items: flex-start;
    margin: 5rem auto;
    gap: 0;
}

.wp-block-group.is-style-rls-col h2 {
    width: 20rem;
    min-width: 20rem;
    color: var(--rls-red);
    text-transform: uppercase;
}

@media screen and (max-width: 991px) {
    .wp-block-group.is-style-rls-col {
        flex-direction: column;
    }

    .wp-block-group.is-style-rls-col h2 {
        margin-bottom: 2rem;
    }
}