/*
Theme Name: Base
Theme URI: https://www.invbit.com
Author: Base
Author URI: https://www.invbit.com
Description: Base para Betheme
Template: betheme
Version: 1.6.2
*/
@import './css/variables.css';

/*********************************\
              GENERAL
\*********************************/
@view-transition {
    navigation: auto;
}
  
.container {
    view-transition-name: page;
}
  
::view-transition-old(page) {
    animation: fade 0.2s linear forwards;
}
  
::view-transition-new(page) {
    animation: fade 0.3s linear reverse;
}

.validate_email_against_bot,
.otgs-development-site-front-end {
    display: none
}

.style-simple,
.style-simple .mfn-header-tmpl {
    --mfn-column-gap-bottom: 0;
    --mfn-column-gap-top: 0;
    --mfn-column-gap-right: 0;
    --mfn-column-gap-left: 0;
}

p:empty {
    margin: 0;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.admin-bar .full-screen .section_wrapper {
    min-height: calc( 100vh - 32px );
}

.section.has-video .section_video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section.has-video .section_video video {
    top: unset;
    left: unset;
    height: 100%;
}

.section.has-video .section_video .mask {
    display: none;
}

.mobile-side-slide {
    overflow-x: clip !important;
}

.section_wrapper, 
.container {
    box-sizing: border-box;
    padding-left: 33px;
    padding-right: 33px;
}

.slick-list {
    width: 100%;
}

.slick-track {
    display: flex;
}

a {
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;

    &:hover {
        text-decoration: none;
    }
}

.the_content_wrapper {
    width: 100%;
    margin: 0;
}


/*********************************\
            COMPLIANZ
\*********************************/
/* Cookies button */
body #cmplz-manage-consent .cmplz-manage-consent {
    background: var(--primary);
    right: unset !important;
    left: 10px;
    font-size: 0px;
    color: var(--neutral-6);
    bottom: 10px !important;
    padding: 0 !important;
    min-width: 1px;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;

    &:before {
        content: "";
        background: transparent url(imagenes/icono-ajustes.svg) center center / contain no-repeat;
        width: 60%;
        height: 60%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.8s ease;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        -webkit-transition: all 0.8s ease;
        -moz-transition: all 0.8s ease;
        -ms-transition: all 0.8s ease;
        -o-transition: all 0.8s ease;
    }

    &:hover:before {
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
    }
}

/* Cookies banner */
#cmplz-cookiebanner-container {
    .cmplz-body {
        scrollbar-width: none;
    }

    .cmplz-cookiebanner {
        grid-row-gap: 5px;
        padding: 20px;
    }

    .cmplz-header {
        display: none;
    }   

    p {
        margin: 0;
        font-size: var(--size-psmall);
    }   
    
    .cmplz-buttons .cmplz-btn {
        letter-spacing: 0;
        font-size: var(--size-psmall) !important;
        line-height: 1.2 !important;
        text-transform: none;
        justify-content: center;
        height: auto;
    }
    
    .cmplz-categories .cmplz-category {
        &:not(:last-child) {
            margin-bottom: 5px;
        }

        .cmplz-category-header .cmplz-category-title,
        .cmplz-description > span { 
            font-size: var(--size-psmall);
            line-height: 1; 
        }

        .cmplz-category-header .cmplz-always-active {
            font-size: 10px;
            line-height: 1;
        }
    }
}

/* Complianz documents */
#cmplz-document {
    max-width: 100%;
    padding: 0 0 4rem;
    text-align: justify;

    p, li, td {
        font-size: var(--size-p);
        line-height: 1.4;
        font-weight: 400;
    }

    h2, h3, h4 {
        font-weight: 600;
        border: 0;
        padding: 0;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    h2 {
        font-size: var(--size-h2);
        margin-top: 60px;
    
        &:first-child {
            margin-top: 0;
        }
    }
    
    h3 {
        font-size: var(--size-h3);
    }
    
    h4 {
        font-size: var(--size-h4);
        font-weight: 700;
    }
}


/*********************************\
              HEADER
\*********************************/


/*********************************\
              FOOTER
\*********************************/
/* Footer template */
.mfn-footer-tmpl {
    .mcb-section:not(.full-width) {
        max-width: 100%;

        @media screen and (max-width: 767px) {
            padding-left: 20px;
            padding-right: 20px;

            .section_wrapper {
                padding-left: 0;
                padding-right: 0;
            }
        }
    }
}

/* Back to top */
#back_to_top.sticky {
    bottom: 10px;
    right: 10px !important;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;

    &:before {
        content: none;
    }
}


/*********************************\
         CONTA E AMELIA
\*********************************/
body.user-registration-page #user-registration {
    &:not(.user-registration-MyAccount) {
        max-width: 700px !important;
    }

    .user-registration-Button {
        background: var(--primary) !important;
        color: var(--neutral-6) !important;
    
        &:hover {
            background: var(--secondary) !important;
        }
    }

    a {
        color: var(--primary) !important;

        &:hover {
            color: var(--secondary) !important;
        }
    }

    .user-registration-register {
        display: none !important;
    }

    label {
        color: var(--neutral-1);
        font-size: var(--size-psmall);
        line-height: 1.2;
        font-weight: 500;
        text-align: left;
        margin: 15px 0 5px;
    }

    .user-registration-login-title,
    .ur-lost-password-title {
        color: var(--neutral-1) !important;
        font-size: var(--size-h2) !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }

    p {
        color: var(--neutral-1) !important;
        font-size: var(--size-p) !important;
        line-height: 1.6 !important;
        font-weight: 400 !important;
    }

    .user-registration-myaccount-notice-box {
        background: var(--primary-light);
        border-color: var(--primary);

        .notice-icon {
            color: var(--primary);
        }
    }

    .ur-frontend-form .ur-form-row .ur-form-grid {
        padding: 0;
    }

    /* Login */
    .ur-frontend-form.login {
        padding: 3rem 2rem;

        .user-registration-form-row {
            margin: 0 !important;

            input::placeholder {
                color: var(--neutral-3-5) !important;
            }
        }
    }     

    /* Mi cuenta */
    &.user-registration-MyAccount {
        border-radius: 0;
        border: solid 1px var(--neutral-4);
        box-shadow: none;
        margin: 0 auto 3rem;

        &.horizontal .user-registration-MyAccount-navigation-link {
            a {
                transition: background-color 0.3s ease, border 0s ease;
            }
            
            &.is-active a {
                background: var(--neutral-5) !important;
                border-bottom-color: var(--primary) !important;
            }

            a:hover {
                color: var(--primary) !important;
                background: var(--neutral-5) !important;
                border-bottom: 3px solid var(--primary) !important;
            }
        }

        .user-registration-MyAccount-content {
            padding: 0;

            .user-registration-MyAccount-content__body-title {
                padding: 22px 32px;
                box-shadow: 0 2px 3px rgba(18, 18, 17, 0.15);
                font-size: 18px;
                font-weight: 500;
                line-height: 1.55;
                text-align: left;
            }
        }

        /* Mis reservas */
        .amelia-v2-booking #amelia-container.am-cap__wrapper {
            max-width: 100%;
            margin: 0;
            box-shadow: none;
            border-radius: 0;

            .am-fs__main {
                max-width: 100%;
            }

            .am-fs-sb {
                display: none;
            }

            * {
                font-family: var(--font-family-primary);
            }
        }

        /* Nueva reserva */
        .amelia-v2-booking #amelia-container.am-fs__wrapper {
            max-width: 100%;
            margin: 0;
            box-shadow: none;
            border-radius: 0;

            &:has(.am-fs-dt__calendar) {
                height: 800px;
            }

            .am-fs__main {
                max-width: 100%;

                .am-fs__init .el-form {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                    gap: 2rem;
                }
            }

            .am-fs-sb {
                display: none;
            }

            .am-fs-dt__calendar {
                height: 682px;
            }

            .el-form-item {
                display: flex;
                flex-direction: column;
                align-items: flex-start;

                .el-form-item__content {
                    width: 100%;
                }
            }
        }

        .cmus-amelia-pairs-selector {
            padding: 32px;

            .cmus-amelia-pairs-grid {
                --gap: 10px;

                display: flex;
                justify-content: center;
                flex-wrap: wrap;
                gap: var(--gap);

                .cmus-amelia-pair-card {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    width: calc(100% / 4 - var(--gap) * 3 / 4);
                    padding: 20px;
                    border-radius: 8px;
                    border: solid 1px var(--primary);
                    background: var(--neutral-6);
                    transition: all 0.3s ease;
                    color: var(--neutral-1);

                    .cmus-amelia-pair-professor {
                        font-size: var(--size-psmall);
                    }

                    .cmus-amelia-pair-substitute {
                        display: block;
                        margin-top: 6px;
                        font-size: var(--size-psmall);
                        line-height: 1.3;
                        color: var(--neutral-3);
                        font-weight: 500;
                    }

                    &:hover {
                        background: var(--neutral-5);
                        box-shadow: 0 0 10px rgba(0 0 0 / 10%);
                        color: var(--primary) !important;
                    }
                }
            }
        }
    }
}


/*********************************\
             CONTACTO
\*********************************/
.wpcf7-form {
    #submit, input[type="submit"] {
        width: 100%;
        margin: 0 !important;
    }

    label {
        color: var(--neutral-1);
        font-size: var(--size-psmall);
        line-height: 1.2;
        font-weight: 500;
        text-align: left;
        padding-bottom: 5px;

        .required {
            color: var(--red);
            display: inline-block;
            margin-left: 5px !important;
        }
    }

    .wpcf7-acceptance {
        label {
            display: block;
        }

        .wpcf7-list-item {
            margin: 0;

            .wpcf7-list-item-label {
                font-weight: 500;
            }
        }
    }

    input[type="checkbox"] {
        min-height: 0px;
    }

    .wpcf7-spinner {
        margin: 5px 0 0 -12px;
        left: 50%;
    }

    .form-legal p {
        font-size: var(--size-psmall);
        line-height: 1.4;
        margin: 0;
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0 2rem;
        margin: 0 0 1.5rem;

        p, label, span {
            margin: 0;
        }

        .full-width {
            grid-column: auto / span 6;
        }

        .half-width {
            grid-column: auto / span 3;
        }

        .third-width {
            grid-column: auto / span 2;
        }
    }

    .wpcf7-not-valid-tip {
        font-size: var(--size-psmall);
        line-height: 1.4;
        margin: 0;
    }
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

.woocommerce .quantity input.qty, input[type=date], 
input[type=email], input[type=number], 
input[type=password], input[type=search], 
input[type=tel], input[type=text], 
input[type=url], select, textarea {
    box-shadow: none;
}


/*********************************\
           WOOCOMMERCE
\*********************************/
body .woocommerce ul.products li.product .woocommerce-placeholder {
    border: 0;
}

body .woocommerce .quantity .qty {
    padding: 10px 30px !important;
}

body .woocommerce table.shop_table tr.order-total .includes_tax {
    display: block;
}

body .woocommerce table.shop_table tr.order-total .includes_tax .woocommerce-Price-amount {
    font-size: 1em;
    font-weight: 400;
    color: #767676;
}

.woocommerce div.product form.cart .reset_variations,
.woocommerce .sku_wrapper {
    display: none;
}

.woocommerce ul.products {
    display: grid;
    gap: 40px;
}

.woocommerce.columns-2 ul.products {
    grid-template-columns: repeat(2, 1fr);
}

.woocommerce.columns-3 ul.products,
.woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.woocommerce.columns-4 ul.products,
.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.woocommerce ul.products:before, 
.woocommerce ul.products:after {
    display: none;
}

.woocommerce ul.products li.product {
    height: inherit;
    margin: 0;
    width: auto !important;
}


/*********************************\
            RESPONSIVE
\*********************************/
@media only screen and (max-width: 959px) {
    body .animate {
        animation-delay: 0ms !important;
    }

    html.mfn-header-tmpl-burger-sidebar-opened #pojo-a11y-toolbar { 
        display: none; 
    }
}

@media only screen and (max-width: 767px) {
    .joinchat {
      --bottom: 20px;
    }
      
    .joinchat--left .joinchat__button {
        bottom: 0;
    }

    body .hideMobile {
        display: none !important;
    }

    body.style-simple .responsiveWidth {
        max-width: 670px;
        padding: 0 33px;
    }

    body .section_wrapper, 
    body .container {
        padding-left: 0;
        padding-right: 0;
    }

    body .content_wrapper .mcb-column-inner {
        margin: 0;
    }

    .content_wrapper .mcb-column-inner, 
    .mfn-footer-tmpl .mfn-builder-content .mcb-column-inner {
        margin: 0;
    }
}

@media only screen and (max-width: 480px) {
    body .woocommerce-variation-add-to-cart {
        flex-direction: column;
    }

    body .woocommerce .quantity {
        width: 100%;
        margin: 0 0 5px !important;
    }

    body .woocommerce .product div.entry-summary .cart .button {
        width: 100%;
    }
    
    body .woocommerce .product div.entry-summary .accordion table.shop_attributes tr {
        display: flex;
        flex-direction: column;
        padding: 0 0 10px;
    }
    
    body .woocommerce .product div.entry-summary .accordion table.shop_attributes tr:last-child {
        padding: 0;
    }
    
    body .woocommerce .product div.entry-summary .accordion table.shop_attributes th,
    body .woocommerce .product div.entry-summary .accordion table.shop_attributes td {
        width: 100%;
        padding: 0;
        text-align: left;
    }
}
