:root {
    --medposter-border-radius: 3px;
}


/* BUTTON */

.medposter-theme .button {
    border-radius: var(--medposter-border-radius) !important;
}

.medposter-theme .woocommerce-message {
    background-color: #27c4c5;
}

.medposter-theme .woocommerce-info, 
.medposter-theme .woocommerce-noreviews, 
.medposter-theme p.no-comments {
    background-color: #3172bf;
}

.medposter-theme .woocommerce-error {
    background-color: #ed6f12;
}

.medposter-theme .woocommerce-info > p:last-child,
.medposter-theme .woocommerce-error > p:last-child,
.medposter-theme .woocommerce-message > p:last-child {
    margin-bottom: 0;
}

.button.toggle {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.button.toggle input {
    pointer-events: none;
}

.button.danger {
    background: #dc3545;
    color: white;
}

.button.danger:hover {
    background: #c82333;
    color: white;
}

/* CUSTOM HEADER */

.medposter-header {  
    width: 100%;
}

.medposter-navbar, .medposter-banner {
    display: flex;
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    padding: 12px 24px;
}

.medposter-navbar {
    margin-bottom: 0;
}

.medposter-banner {
    padding-bottom: 40px;
}


.medposter-header ul a {
    padding: 8px 16px;
}

.medposter-header a {
    color: #333;
}

.medposter-header a:hover {
    color: #747474;
}


/* NAVBAR CONTINER */
.medposter-navbar {
    align-items: center;
    gap: 60px;
}

.medposter-navbar ul {
    display: flex;
    margin: 0;
    list-style: none;
    gap: 16px;
}


/* IML LOGO */
.medposter-header .custom-logo-link {
    position: relative;
    margin-bottom: 0;
    flex-shrink: 0;
    z-index: 11;
}

.medposter-header .custom-logo-link img {
    height: 60px;
    width: auto;
    display: block;
}

@media screen and (max-width: 1024px) {
    .medposter-header {
        margin-top: 70px;
    }

    .medposter-navbar {
        position: fixed;
        z-index: 9;
        top: var(--wp-admin--admin-bar--height, 0);
        left: 0;
        background: #fff;
    }
    .medposter-header .custom-logo-link img {
        height: 45px;
    }
}

/* BANNER IMAGE */
.medposter-banner img {
    object-fit: cover;
    height: 300px;
    width: 100%;
}

/* SECONDARY NAVIGATION */
.medposter-secondary-navigation {
    margin-left: auto;
}


/* LANGUAGE SWITCHER */
.medposter-language-switcher {
    display: flex;
    gap: 5px;
    text-transform: uppercase;
}

li.medposter-language-switcher a {
    padding: 0;
}

.medposter-language-switcher .active {
    font-weight: bold;
}

/* MOBILE NAVIGATION DRAWER */
.medposter-mobile-container {
    display: none;
    margin-left: auto;
}

.medposter-mobile-drawer {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.medposter-handheld-navigation ul {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.medposter-mobile-container.open .medposter-mobile-drawer {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.medposter-mobile-container.open .menu-hamburger {
    position: relative;
    z-index: 11;
}

.cart-badge {
    background: #eeeeee;
    border-radius: var(--medposter-border-radius);
    width: 14px;
    height: 14px;
    vertical-align: top;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

ul.medposter-shortcuts {
    gap: 0;
    z-index: 11;
    margin-right: 12px;
}

ul.medposter-shortcuts a {
    padding: 12px 12px;
}

ul.medposter-shortcuts .cart-badge {
    margin-left: -6px;
}



@media screen and (max-width: 1024px) {
    .medposter-mobile-container {
        display: flex;
        align-items: center;
    }

    .medposter-secondary-navigation, .medposter-primary-navigation {
        display: none;
    }
}

.medposter-theme h1, .medposter-theme h2, .medposter-theme h3, .medposter-theme h4, .medposter-theme h5, .medposter-theme h6 {
    text-align: left;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .medposter-theme h1, .medposter-theme .alpha {
        font-size: 2em;
    }
}

.medposter-theme hr {
    height: 3px;
	background-color: #edecec;
}

.medposter-theme hr.hr-three {
    margin: 35px 0px !important;
}

.medposter-theme hr.line-separator {
    margin: 80px 0px 40px 0px !important;
}

.medposter-theme .storefront-breadcrumb {
    padding-top: 0;
    margin-bottom: 1em;
}


.medposter-theme .order_details .product-name .product-quantity::after {
    content: '';
    display: block;
}

.medposter-theme .product_title {
    margin-bottom: 0;
}

.medposter-theme.single-product div.product p.price {
    margin-top: 0.25em;
    margin-bottom: 0.5em;
    line-height: 1.35;
}

.medposter-theme.single-product div.product p.price small {
    font-size: 0.925rem;
    color: #999;
}


.medposter-upsells {
    margin-top: 4rem;
    padding: 1rem 2rem;
    border: 1px solid #efefef;
}

.medposter-upsell-product {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #efefef;
}

@media screen and (max-width: 1024px) {
    .medposter-upsell-product {
        display: block;
    }
}

.medposter-upsell-product:first-child {
    border-top: none;
}

.medposter-upsell-action {
    flex-shrink: 0;
}

.medposter-upsell-title {
    line-height: 1;
    margin-bottom: 0.25em;
}

.medposter-upsell-excerpt {
    margin-bottom: 0;
}



/* CUSTOM CSS by Delia (TODO: merge and cleanup) */

.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title>a:not(.has-font-size){
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title{
	text-align: center;
}

h5 {
	color: #e6002e !important
}

.text-red{
	color: #e6002e !important
}

.col-border-left{
	border-left: 2px solid #e6002e !important;
	padding-left: 12px !important;
}

.site-content .col-full{
	max-width: 1230px;
}

@media (min-width: 768px) {
	.col-full{
		max-width: 1230px;
	}
}

.medposter-banner img{
	height:300px;
}

.wp-block-cover{
    min-height: 250px;
    max-height: 250px;
    border: 2px solid transparent;
    transition: 0.4s;
    cursor: pointer;
}

.wp-block-cover:hover{
    border: 2px solid #e6002e;
}

li.wc-block-grid__product{
	background: #f8f8f8;
}

a.wp-block-cover-link{
	text-decoration:none !important;
}


@media (min-width: 66.4989em) {
    .storefront-align-wide.page-template-template-fullwidth-php .hentry .entry-content .alignwide, .storefront-align-wide.storefront-full-width-content .hentry .entry-content .alignwide {
        margin-left: auto;
        margin-right: auto;
    }
}

.woocommerce-variation-price .woocommerce-Price-amount{
    color: #e6002e;
    font-weight: 600;
    font-size: 1.2rem;
}

h2.woocommerce-loop-category__title{
	display: none;
}

.kundenart{
    background: #f8f8f8;
    border: 2px solid transparent;
    transition: 0.4s;
		cursor: pointer;
}

.kundenart:hover{
    background: #f3f2f2;
    border: 2px solid #e6002e;
}

.medposter-theme .wc-block-grid__products {
    grid-template-columns: repeat(2, 1fr);
}

.medposter-product .medposter-product__image img{
	aspect-ratio: auto;
}

.storefront-full-width-content.single-product div.product .summary{
	width:60%;
	float:left;
}

textarea:focus{
	margin-left: 2px;
}