#logo img {
    max-height: 60px;
}

/* Home page */
#main_cms {
	margin-bottom: calc(var(--section-margin-bottom) / 2);
}
#main_hotspot_zone1 {
    order: 1;
}
#main_hotspot_zone2 {
    order: 2;
}
#main_hotspot_zone3 {
    order: 3;
}
#main_hotspot_zone4 {
    order: 4;
}

/* Home page - banner */
#main_banner1 {
	margin-bottom: calc(var(--section-margin-bottom) / 2);
}
#main_banner1[data-full-width="true"] .swiper-button-prev {
	left: 5px;
}
#main_banner1[data-full-width="true"] .swiper-button-next {
	right: 5px;
}

/* Home page - infobox */
.morillo-infobox {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3rem;
    justify-items: center;
    justify-content: center;
    margin-bottom: -20px; /* Fix for cms inline style */
}
.morillo-infobox > div {
    display: flex;
    align-items: center;
    gap: 2rem;
	color: #be123c;
}
.morillo-infobox > div > span {
    display: none;
    font-size: clamp(1.25rem, 1.5vw, 2rem);
}
.morillo-infobox > div > svg {
    height: 50px;
	width: 50px;
}
@media screen and (min-width: 979px) {
    .morillo-infobox {
        grid-template-columns: repeat(3, 1fr);
    }
    .morillo-infobox > div > span {
        display: inline;
    }
}

/* Home page - hide free shipping top bar */
html.--freeShipping:not(.order_process) #container.main_page .freeShipping {
    display: none;
}
@media (max-width: 978px) {
  html.--freeShipping:not(.order_process) body:has(.main_page) {
    padding-top: 60px;
  }
}

/* Home page - hide search bar on mobile */
@media (max-width: 978px) {
  html:not(.--search-open) .main_page #menu_search .menu_search__block {
    display: none !important;
  }
  html .main_page {
  	padding-top: 0;
  }
  .main_page #menu_search .menu_search__mobile {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Buttons2 */
#menu_buttons2 {
    max-width: 1740px;
    margin-bottom: calc(var(--section-margin-bottom) / 2);
    margin-inline: auto;
}
#menu_buttons2 > .menu_button_wrapper {
    flex: 0 0 33.33333%;
    margin-bottom: 0;
    max-width: 33.33333%;
    padding: 5px;
}
#menu_buttons2 picture {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
#menu_buttons2 picture > * {
    transition: transform 0.3s ease-in-out;
    transform-origin: bottom;
}
#menu_buttons2 picture:hover > * {
    transform: scale(1.1);
}

/* Category Page */
#content {
    display: grid;
  }
  section.search_name {
    order: -2;
  }
  section.search_description.--top.cm {
    order: -1;
  }
.underworldstore-category-buttons {
    display: flex;
    gap: 1rem 2rem;
    margin-inline: auto;
    width: fit-content;
}
.underworldstore-category-buttons a {
    border: 1px solid lightgray;
    display: block;
}
.underworldstore-category-buttons a:hover,
.underworldstore-category-buttons a::selection {
    border-color: #546070;
}

/* Product Page */
#component_projector_cms {
    margin-bottom: calc(var(--section-margin-bottom) / 2);
}
.projector_details .projector_sizes .f-dropdown-item .count {
	display: none;
}
.projector_buy__number_amounts,
.projector_status__info_amount {
    display: none !important;
}
#projector_longdescription {
  max-width: calc(100vw - 30px);
  overflow-x: auto !important;
}
#projector_longdescription table {
    margin: 0 auto;
    max-width: 100% !important;
    text-align: center;
}
#projector_longdescription table th,
#projector_longdescription table td {
    text-align: center;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-bottom: 1px solid #ccc;
}
#projector_longdescription table tfoot td {
    border-bottom: 1px solid transparent;
}

/* Main menu */
.morillo-shop-link {
    align-items: center;
    border-bottom: 1px solid #c4c7c8;
    display: flex;
    font-size: 1em;
    line-height: 60px;
    padding: 0 20px 0 42px;
    text-transform: uppercase;
    white-space: nowrap;
}
@media screen and (min-width: 979px) {
    .morillo-shop-link {
        line-height: 35px;
    }
}

.underworldstore-menu-icons {
    margin-left: auto;
}
.underworldstore-menu-icons .nav-link {
    display: flex;
    gap: 2.5rem;
    justify-content: left;
}
.underworldstore-menu-icons a {
    color: #333;
    text-decoration: none;
}
.underworldstore-menu-icons a:hover {
    color: #888;
}

/* Basket page */
.basketedit_page #content {
    display: flex;
    flex-flow: column;
}
.basket__wrappers {
    order: 1;
}
#basketedit_hotspot_zone1 {
    order: 1;
}
.basket__tools {
    order: 1;
}
.basketedit_summary_container {
    order: 2;
}
.basketedit_page #content #menu_security_policy {
    order: 3;
}

.basketedit_page .basket__wrappers .product__prices {
    margin-top: auto;
}
.basketedit_gifts_wrapper {
    display: inherit !important;
}
.basketedit_gifts_btn {
    display: none;
}

/* Counter */
#morillo-counter {
    box-sizing: border-box;
    display: grid;
    justify-content: center;
    margin: 0px auto 1rem;
    max-width: 570px;
    gap: 1rem;
    font-size: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: repeat(4, auto);
}
#morillo-counter legend {
    text-transform: uppercase;
    padding-inline: 1em;
    margin-inline: auto;
}
#morillo-counter .segment {
    display: grid;
    gap: 0.25em;
    justify-content: center;
    text-align: center;
    grid-template-columns: 1fr 1fr;
}
#morillo-counter .segment-label {
    grid-column: 1 / 3;
}
#morillo-counter .f-card {
    font-size: 2em;
    width: 1.3em;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0.2em;
    background-color: #999;
}
#morillo-counter .f-card-top,
#morillo-counter .f-card-bottom,
#morillo-counter .f-card-top-flip,
#morillo-counter .f-card-bottom-flip {
    box-sizing: border-box;
    background-color: #191919;
    border-radius: 0.2em 0.2em 0 0;
    display: flex;
    justify-content: center;
    height: 0.75em;
    overflow: hidden;
    padding: 0.25em 0 0 0;
    align-items: flex-start;
    width: 1.3em;
}
#morillo-counter .f-card-bottom,
#morillo-counter .f-card-bottom-flip {
    background-color: #404040;
    border-radius: 0 0 0.2em 0.2em;
    padding: 0 0 0.25em;
    align-items: flex-end;
}
#morillo-counter .f-card-top-flip {
    position: absolute;
    inset: 0 0 auto 0;
}
#morillo-counter .f-card-bottom-flip {
    position: absolute;
    background-color: #191919;
    inset: auto 0 0 0;
}
#morillo-counter .f-card-top-flip {
    animation: counter-card-top-flip 250ms forwards ease-in;
    transform-origin: bottom;
}
#morillo-counter .f-card-bottom-flip {
    animation: counter-card-bottom-flip 250ms forwards linear 250ms;
    transform-origin: top;
    transform: rotateX(90deg);
}
@keyframes counter-card-top-flip {
    50% {
        background-color: #707070;
    }
    100% {
        background-color: #404040;
        transform: rotateX(90deg);
    }
}
@keyframes counter-card-bottom-flip {
    50% {
        background-color: #707070;
    }
    100% {
        background-color: #404040;
        transform: rotateX(0deg);
    }
}