body {
    --c7-field-option-selected-color: var(--e-global-color-accent);
    --c7-primary-button-bg: var(--e-global-color-accent);
    --c7-primary-button-bg-hover: var(--e-global-color-accent);
}

.elementor-widget-container a.c7-btn,
.elementor-widget-container button.c7-btn {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875em;
    font-weight: 300;
    line-height: 46px; /* TODO CHANGE THIS AND THE OTHER THING */
    padding: 0 1em;
}

.elementor-widget-container a.c7-btn--alt,
.elementor-widget-container button.c7-btn--alt {
    color: var( --e-global-color-accent );
    background: transparent;
    text-decoration: none;
    text-shadow: none;

    &:hover {
        background: transparent;
        background-image: none;
    }
}

.elementor-widget-container a.c7-link,
.elementor-widget-container button.c7-link {
    color: var( --e-global-color-accent );
    text-decoration: none;
    text-transform: none;
    background: none;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;

    &:hover {
        text-decoration: none;
    }

    svg {
        stroke: var( --e-global-color-accent );
        margin: 0;
    }
}

#c7-content, .c7-custom-form, .c7-product-collection, .c7-personalization {
    min-height: 0px;
}

.c7-product-collection__content, .c7-product-allocation__content, .c7-personalization__content {
    margin: 0;
}

.c7wp-wrap[data-c7-type="login"], .c7wp-wrap[data-c7-type="cart"] {
    min-width: 0;
}

.c7-subscribe {
    display: flex;
    justify-content: center;

    .c7-form {
        width: 100%;
    }
}

.c7-user-nav__account {
    margin: 0;
    padding: 0;

    > a,
    > button {
        margin: 0;
        padding: 0;
        text-decoration: none;
    }

    .c7-user-nav__account__dropdown__header {
        padding: 1em 1.5em;
    }

    .c7-user-nav__account__dropdown li a,
    a.c7-user-nav__account__dropdown__logout {
        padding: 0.5em 0.75em;
        margin: 0 0.75em;
    }

    a.c7-user-nav__account__dropdown__logout {
        margin: 0.75em;
    }
}

.c7-user-nav__cart {

    .c7-user-nav__cart__title {

        svg {
            stroke-width: 1;
        }

    }

    .c7-user-nav__cart__count {
        font-size: 0.75em;
        min-width: 0;
        width: 1.5em;
        height: 1.5em;
        background: var( --e-global-color-accent );
    }
}

.wp-block-c7wp-collection,
.c7wp-wrap,
.c7-content {

    &[data-c7-type="collection"] {

        /*h2.c7-h2 { display: none }*/

    }

    .c7-h1 {
        text-align: center;
    }

    .c7-product-collection__product-list {
		
		display: flex;
		justify-content: center;
		flex-wrap: wrap;

        @media screen and (min-width: 1280px) {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .c7-product {
			flex-basis: 40%;
			flex-grow: 1;
            max-width: 30rem;
            display: flex;
			
			@media screen and (min-width: 1280px) {
				flex-basis: 30%;	
			}
        }

        .c7-product__image {

            flex-basis: 6em;

            img {
                max-height: 15rem;
                max-width: 100%;
                width: auto;
                height: 100%;
                object-fit: cover;
            }

        }

        .c7-product__details {

            display: flex;
            flex-direction: column;
            justify-content: flex-start;

            .c7-product__title {

                margin: 0;

                a {
                    font-weight: var(--e-global-typography-primary-font-weight);
                    font-size: 0.875em;
                    text-decoration: none;
                }
            }

            .c7-product__subtitle {
                font-size: 0.75em;
            }

            .c7-product__teaser {
                margin: 0;

                p { margin: 0; }
            }

        }

    }

    .c7-product-detail {

        .c7-product__title {
            margin: 0;
        }

        .c7-product__specs {
            width: 10em;
        }
    }

    .c7-product__add-to-cart {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 1em;
        margin-top: 0;

        .c7-product__add-to-cart__price {
            display: flex;
            align-items: center;
            margin: 0;
        }

        .c7-product__add-to-cart__form {

            .c7-product__add-to-cart__form__quantity {
                height: 100%;
                max-width: 3rem;

                .c7-form__field {
                    height: 100%;

                    input {
                        padding: 0.5em;
                    }
                }
            }

            button.c7-btn {
                padding: 1em;
                font-size: 0.625em;
                font-weight: bold;
                line-height: 1.5em;
            }

        }
    }

}

/* RESERVATIONS/EXPERIENCES */

.c7-reservation-type {

    .c7-reservation-type__price {
        font-size: 1.25em;
    }

    .c7-form__group {

        gap: 0.5em;
        align-items: flex-end;

        @media screen and (max-width: 480px) {
            align-items: flex-start;

            button.c7-btn {
                width: 100%;
            }
        }

        .c7-form__field, button.c7-btn {
            margin: 0;
            align-self: auto;
            position: relative;
        }

        .c7-form__field .c7-form__help,
        .c7-form__field .c7-form__error {
            position: absolute;
            top: 100%;
        }

        button.c7-btn {
            font-size: 0.75em;
            padding: 0 0.75em;
        }

        .c7-date-picker-toggle {
            padding: 0.5em;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            width: 2.5em;

            span {

                background: url(../img/icon-calendar-white.svg) no-repeat center center;
                background-size: 1em;
                width: 100%;
                height: 100%;
                display: block;

                img {
                    display: none !important;
                }

            }
        }

        .c7-date-picker-dropdown {

            button {
                background: transparent;
                color: var(--e-global-color-primary);
            }

            .rdp-button:hover:not([aria-disabled='true']) {
                background: var(--c7-bg-alt);
            }

            .rdp-nav_button {
                padding: 0.25em;

                svg {
                    width: 1em;
                }
            }
        }
    }
}

/* EVENTS */

.c7-product-collection[data-collection-slug="events"] .c7-product-collection__product-list {
	
	.c7-product {
		flex-basis: 100%;
		max-width: 100%;
		flex-wrap: wrap;
		
		.c7-product__image {
			flex-basis: 35%;
			aspect-ratio: 1/1;
			
			@media screen and (max-width: 768px) {
				flex-basis: 100%;
				aspect-ratio: 3/2;
			}
			
			img {
				max-height: 100%;
				max-width: 100%;
				height: 100%;
				width: 100%;
				object-fit: cover;
			}
			
		}
		
	}
	
}

/* SIDE CART */

.c7-side-cart {

    button#c7-side-cart__header__close {
        background: transparent;
    }

    li.c7-order-item {
        align-items: center;

        .c7-order-item__details {

            button {
                /*color: var( --e-global-color-text );*/
                margin-top: 1em;
                font-size: 0.75em;
            }

        }
    }

    .c7-order-summary__buttons {

        .c7-btn {
            order: 2;

            &#c7-side-cart__summary__proceed {
                order: 1;
            }
        }

        .c7-btn--alt {
            background: transparent;
        }

        .c7-btn--primary {
            color: #fff;
            text-decoration: none;
        }
    }

}

/* CART */

.c7-cart {

    /*.c7-cart__header .c7-h1 { display: none; }*/

    .c7-cart__item-container {

        .c7-order-item {
            align-items: center;
        }
    }
}

/* CHECKOUT */

.c7-checkout {

    .c7-breadcrumbs {

        a {
            text-decoration: none;
        }
    }
}

body.home .c7-product__teaser {
    margin: 0;
/*     max-height: 4.5em;
    overflow: hidden; */

    p { margin: 0; }
}