/*
Theme Name: OceanWP Child Theme for Crossfit Bern
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Child theme for Crossfit Bern
Author: Artd Webdesign
Author URI: https://artd.ch
Template: oceanwp
Version: 1.0.11
*/

/*
Basic adjustments
*/

/* Remove focus outlines */
a:focus {
    outline: 0 !important;
}

@media (max-width: 767px) {
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Default WordPress font sizes */
p.has-small-font-size {
    line-height: 1.4;
    font-size: 16px !important;
}
p.has-medium-font-size {
    line-height: 1.4;
    font-size: 21px !important;
}
p.has-large-font-size {
    line-height: 1.4;
    font-size: 26px !important;
}
p.has-x-large-font-size {
    line-height: 1.4;
    font-size: 31px !important;
}
@media (max-width: 767px) {
    p.has-small-font-size {
        font-size: 14px !important;
    }
    p.has-medium-font-size {
        font-size: 19px !important;;
    }
    p.has-large-font-size {
        font-size: 21px !important;;
    }
    p.has-x-large-font-size {
        font-size: 26px !important;;
    }
}

/*
Elementor functions
*/

/* CTA Button: use "cta" in class for button */
.cta.elementor-widget-button,
.cta .elementor-button {
    transition: all 0.5s;
}
.cta.elementor-widget-button .elementor-button-text:after,
.cta .elementor-button .elementor-button-text:after {
    content: '';
    background-image: url("assets/img/cta_arrow.svg");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    display: inline-block;
    width: 0;
    height: 20px;
    margin-left: 12px;
    opacity: 0;
    transition: all 0.5s;
    filter: brightness(0) saturate(100%) invert(31%) sepia(11%) saturate(1590%) hue-rotate(109deg) brightness(94%) contrast(85%);
}
.cta.download.elementor-widget-button .elementor-button-text:after,
.cta.download .elementor-button .elementor-button-text:after {
    background-image: url("assets/img/cta_download.svg");
}
.cta.elementor-widget-button:hover .elementor-button-text:after,
.cta .elementor-button:hover .elementor-button-text:after {
    width: 20px;
    opacity: 1;
}

@media (max-width: 767px) {
    .cta.elementor-widget-button .elementor-button-text:after,
    .cta .elementor-button .elementor-button-text:after {
        background-size: 16px 16px;
        height: 16px;
    }
    .cta.elementor-widget-button:hover .elementor-button-text:after,
    .cta .elementor-button:hover .elementor-button-text:after {
        width: 16px;
    }
}

/* CTA alternative Button: use "cta-alt" in class for button */
.cta-alt.elementor-widget-button .elementor-button-text {
    position: relative;
    padding-right: 28px;
}
.cta-alt.elementor-widget-button .elementor-button-text:after {
    content: '';
    background-image: url("assets/img/cta_arrow.svg");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    top: 6px;
    right: 0;
    width: 16px;
    height: 16px;
    margin-left: 12px;
    transition: all 0.5s;
}
.cta-alt.elementor-widget-button:hover .elementor-button-text:after {
    width: 16px;
    top: 3px;
    right: -3px;
}
@media (max-width: 767px) {
    .cta-alt.elementor-widget-button .elementor-button-text:after {
        background-size: 12px 12px;
        width: 12px;
        height: 12px;
        margin-left: 4px;
        top: 2px;
    }
}

/* CTA Headline: use "cta" + color in class for headline */
.cta.elementor-widget-heading {
    transition: all 0.5s;
}
.cta.elementor-widget-heading .elementor-heading-title a:after {
    content: '';
    background-image: url("assets/img/cta_arrow.svg");
    background-size: 42px 42px;
    background-repeat: no-repeat;
    display: inline-block;
    width: 0;
    height: 42px;
    margin-left: 24px;
    opacity: 0;
    transition: all 0.5s;
}
.cta.blue.elementor-widget-heading .elementor-heading-title a:after {
    filter: brightness(0) saturate(100%) invert(89%) sepia(69%) saturate(516%) hue-rotate(146deg) brightness(104%) contrast(106%);
}
.cta.green.elementor-widget-heading .elementor-heading-title a:after {
    filter: brightness(0) saturate(100%) invert(100%) sepia(22%) saturate(7155%) hue-rotate(37deg) brightness(123%) contrast(105%);
}
.cta.pink.elementor-widget-heading .elementor-heading-title a:after {
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(4660%) hue-rotate(296deg) brightness(116%) contrast(123%);
}
.cta.elementor-widget-heading:hover .elementor-heading-title a:after {
    width: 42px;
    opacity: 1;
}
@media (max-width: 1200px) {
    .cta.elementor-widget-heading .elementor-heading-title a:after {
        background-size: 36px 36px;
        height: 36px;
    }
}
@media (max-width: 767px) {
    .cta.elementor-widget-heading .elementor-heading-title a:after {
        display: none;
    }
}

/* Override swiper buttons */
.elementor-element .swiper .elementor-swiper-button,
.jet-engine-gallery-slider .jet-engine-arrow {
    display: block;
    width: 64px;
    height: 64px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}
.elementor-element .swiper .elementor-swiper-button svg,
.jet-engine-gallery-slider .jet-engine-arrow svg {
    display: none;
}
.elementor-element .swiper .elementor-swiper-button.elementor-swiper-button-prev,
.jet-engine-gallery-slider .jet-engine-arrow.prev-arrow {
    background-image: url("assets/img/slide_nav_prev.svg");
    left: -32px;
}
.elementor-element .swiper .elementor-swiper-button.elementor-swiper-button-next,
.jet-engine-gallery-slider .jet-engine-arrow.next-arrow {
    background-image: url("assets/img/slide_nav_next.svg");
    right: -32px;
}
@media (max-width: 767px) {
    .elementor-element .swiper .elementor-swiper-button,
    .jet-engine-gallery-slider .jet-engine-arrow {
        width: 48px;
        height: 48px;
    }
    .elementor-element .swiper .elementor-swiper-button.elementor-swiper-button-prev,
    .jet-engine-gallery-slider .jet-engine-arrow.prev-arrow {
        left: -24px;
    }
    .elementor-element .swiper .elementor-swiper-button.elementor-swiper-button-next,
    .jet-engine-gallery-slider .jet-engine-arrow.next-arrow {
        right: -24px;
    }
}

/* Swiper border radius */
.elementor-element .swiper img,
.jet-engine-gallery-slider img {
    border-radius: 20px !important;
}

/* Form style */
.elementor-form input[type="radio"],
.wpforms-form input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid black;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.elementor-form input[type="radio"]:checked::before,
.wpforms-form input[type="radio"]:checked::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: black;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wpforms-field-radio ul {
    list-style: none;
}

.wpforms-form legend {
    border-bottom: 0;
}
.wpforms-form .wpforms-field-label:not(.wpforms-field-sublabel) {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4em;
    color: #000000;
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="password"],
.wpforms-form input[type="search"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form textarea {
    border: none;
    border-bottom: 2px solid black;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 10px;
    padding-top: 10px;
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
}
.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form input[type="password"]:focus,
.wpforms-form input[type="search"]:focus,
.wpforms-form input[type="tel"]:focus,
.wpforms-form input[type="url"]:focus,
.wpforms-form textarea:focus {
    border-bottom-color: #91FF3C;
}

.wpforms-form .wpforms-field-row-block {
    display: flex;
    flex-direction: column;
}
.wpforms-form .wpforms-field-row-block .wpforms-field-sublabel {
    order: -1;
}



/* Accordion customizations */
.elementor-widget-n-accordion .e-n-accordion-item-title {
    justify-content: space-between !important;
}