/**
* This CSS files is used to adjust display for responsive devices
*
* Elementor responsive rules :
*   => Desktop is any width larger than 1024 pixels (>1024)
*   => Tablet is a width between 767 and 1024 pixels (>767 & <=1024)
*   => Mobile is any width under 767 pixels (<=767)
*
*/

/* STRUCTURE
/* ========================================================== */

@media only screen and (max-width: 411px) {
    .full-website-offer {
        font-size: 16px
    }
}

@media only screen and (max-width: 395px) {
    .full-website-offer {
        font-size: 14px
    }
}

@media only screen and (max-width: 360px) {
    .full-website-offer {
        font-size: 13px
    }
}

/** Main container */
@media only screen and (max-width: 1024px) {
    .art-main-container {
        padding-top: 52px !important
    }
}

/* PAGES
/* ========================================================== */

/** Page template -- Legal page */
@media only screen and (max-width: 600px) {
    .art-page-legal .container h1 {
        font-size: 36px;
        font-weight: bold
    }

    .art-page-legal .container h2 {
        font-size: 22px;
        margin-bottom: 10px !important;
        line-height: 1.2em
    }
}

/* WOOCOMMERCE
/* ========================================================== */

/** Checkout (Legacy) */
@media only screen and (max-width: 1280px) {

    body.woocommerce-checkout .art-page {
        padding: 15px 0 0 0;
    }

    .woocommerce .woocommerce-checkout h3 {
        font-size: 22px
    }
}

@media only screen and (max-width: 992px) {
    .woocommerce .woocommerce-checkout .col2-set {
        display: flex;
        flex-direction: column-reverse
    }

    .woocommerce .woocommerce-checkout .col2-set .col-1 {
        width: 100% !important;
        padding: 0
    }

    .woocommerce .woocommerce-checkout .col2-set .col-2 {
        width: 100% !important;
        padding: 0
    }

    .wpm-checkout-booking-details {
        margin-top: 15px
    }

    .woocommerce-order-resume {
        margin-bottom: 15px;
        padding: 10px 20px
    }

    .woocommerce-billing-fields {
        margin-bottom: 15px;
        padding: 10px 20px
    }

    .woocommerce-order-payment {
        margin-top: 15px;
        padding: 10px 20px
    }
}

/** Checkout */
@media only screen and (max-width: 600px) {

    .wp-block-woocommerce-checkout {
        padding-top: 10px !important
    }

    .wc-block-checkout__appointment-information {
        padding-top: 36px;
        position: relative
    }

    .wc-block-checkout__appointment-information::after {
        background: currentColor;
        bottom: -35px;
        box-shadow: -50vw 0 0 0 currentColor, 50vw 0 0 0 currentColor;
        content: "";
        height: 1px;
        opacity: .11;
        position: absolute;
        width: 100%
    }

    .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:first-of-type {
        padding-top: 0
    }

    .wp-block-woocommerce-checkout-order-summary-block .wp-block-woocommerce-checkout-order-summary-subtotal-block {
        padding-top: 16px !important
    }

    .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-text {
        margin: 0 !important
    }

    .wc-block-components-checkout-order-summary__title {
        padding: 20px 15px !important;
        border: 1px solid hsla(0, 0%, 7%, .11);
        border-radius: 10px
    }

    .wc-block-components-checkout-order-summary__title.is-open {
        border-radius: 10px 10px 0 0
    }

    .wc-block-components-checkout-order-summary__content {
        padding: 0 15px;
        border-left: 1px solid hsla(0, 0%, 7%, .11);
        border-right: 1px solid hsla(0, 0%, 7%, .11);
        border-radius: 0 0 10px 10px
    }

    .e19lxcc00 .wp-block-woocommerce-checkout-order-summary-block {
        display: none
    }

    .woocommerce-order-resume .order-resum-item .col-8 h4 {
        font-size: 18px
    }

    .woocommerce-input-wrapper {
        width: 100% !important;
    }
}

/** Checkout (legacy) */
@media only screen and (max-width: 767px) {

    .woocommerce-billing-fields .form-row#billing_first_name_field {
        width: 100% !important;
        float: none
    }

    .woocommerce-billing-fields .form-row#billing_last_name_field {
        width: 100% !important;
        float: none
    }

    .woocommerce-billing-fields .form-row#billing_email_field {
        width: 100% !important;
        float: none
    }

    .woocommerce-billing-fields .form-row#billing_phone_field {
        width: 100% !important;
        float: none
    }

    .woocommerce-billing-fields .form-row#billing_country_field {
        width: 100% !important;
        float: none
    }

    .woocommerce-billing-fields .form-row#billing_city_field {
        width: 100% !important;
        float: none
    }

    .woocommerce-billing-fields .form-row#billing_postcode_field {
        width: 100% !important;
        float: none
    }

}

/** Order received */
@media only screen and (max-width: 576px) {
    .woocommerce-order-gift-congratulations .col-sm-4 img {
        border-radius: 16px;
        margin-top: 20px
    }

    .woocommerce-order-gift-congratulations .col-sm-8 {
        padding: 0 30px
    }

    .woocommerce-order-gift-congratulations .col-sm-8 h4 {
        text-align: center !important
    }

    .woocommerce-order-gift-congratulations .col-sm-8 p {
        text-align: center !important
    }
}

/** Shop */
@media only screen and (max-width: 600px) {
    .art-woo-archive-container .container {
        padding-right: 30px;
        padding-left: 30px
    }

    .art-woo-archive-container ul.products li.product .art-product-author h4 {
        font-size: 18px
    }

    .art-woo-archive-container ul.products li.product .art-product-author h4+p {
        font-size: 16px
    }

    .art-woo-archive-container ul.products li.product h3 {
        font-size: 22px !important;
        min-height: inherit
    }

    .art-woo-archive-container ul.products li.product .art-product-rating {
        height: 36px;
        padding-top: 10px
    }

    .art-woo-archive-container ul.products li.product span.price {
        font-size: 22px
    }
}

/** Account **/
@media only screen and (max-width: 1024px) {
    body.woocommerce-account .art-page-content {
        padding-top: 50px
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        display: none
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        width: 100%
    }

    .shop_table_responsive {
        width: max-content !important
    }

    .shop_table_responsive thead {
        display: table-header-group !important
    }

    .shop_table_responsive tr {
        display: table-row !important
    }

    .shop_table_responsive th {
        display: table-cell !important
    }

    .shop_table_responsive td {
        display: table-cell !important
    }

    .shop_table_responsive td::before {
        content: none !important
    }

    /** Forms */
    .woocommerce-MyAccount-content form {
        margin-bottom: 15px
    }

}

/** Account - -Edit account **/
@media (max-width: 768px) {

    .woocommerce-account form.edit-account .form-row-first,
    .woocommerce-account form.edit-account .form-row-last {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/** Notices */
@media only screen and (max-width: 767px) {
    .woocommerce-notices-wrapper .woocommerce-info[role="status"] {
        padding: 12px 6px 12px 34px
    }

    .woocommerce-notices-wrapper .woocommerce-info[role="status"]::before {
        top: 11px;
        left: 6px
    }

    .woocommerce-notices-wrapper .woocommerce-error[role="alert"] {
        padding: 12px 6px 12px 34px
    }

    .woocommerce-notices-wrapper .woocommerce-error[role="alert"]::before {
        top: 11px;
        left: 6px
    }
}

/* SENSEI
/* ========================================================== */

/** Course Header */
@media only screen and (max-width: 768px) {
    .wpm-course-header-brand.is-image .wp-block-sensei-lms-course-title {
        font-size: 15px !important;
    }

    .wpm-course-header-brand.is-image .wpm-course-subtitle {
        font-size: 9px !important;
    }

    .wpm-course-header-avatar {
        width: 45px !important;
        height: 45px !important;
    }

    .wp-block-sensei-lms-exit-course a {
        display: none !important;
    }

    .wp-block-sensei-lms-exit-course {
        display: none !important;
        width: 0 !important;
    }

    .sensei-course-theme--sidebar-open .wp-block-sensei-lms-exit-course {
        display: none !important;
        width: 0 !important;
    }

    .sensei-course-theme__main-content .wp-block-group__inner-container>div {
        margin: 0 !important;
    }

    .sensei-course-theme__main-content {
        padding: 0 !important;
    }

    body.sensei-course-theme--sidebar-open .wp-block-sensei-lms-course-title {
        opacity: 1 !important;
    }

    .sensei-course-theme__header [class*="sensei-"] .is-primary,
    .sensei-course-theme__header [class*="sensei-"] .button,
    .sensei-course-theme__header [class*="sensei-"] button,
    .sensei-course-theme__header .sensei-lms-quiz-back-to-lesson {
        color: black !important;
    }

    .sensei-course-theme__sidebar-toggle {
        color: black !important;
    }

    .wp-block-post-title,
    .sensei-content-description {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .wp-block-paragraph {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}