/**
 * Theme Name: Bewonder Template 2025
 * Description: Bewonder Template 2025. Built on Blocksy.
 * Author: Bewonder*
 * Author URI: https://bewonder.co.uk/
 * Template: blocksy
 * Text Domain: blocksy
*/

@media screen and (min-width: 1700px) {
    body {
        max-width: 1600px;
        margin: auto !important;
        box-shadow: 0 0 0 9999px 
color-mix(in srgb, var(--theme-palette-color-4) 5%, rgba(0, 0, 0, 0));
    }
}


/* ----- Header ----- */
#header [data-column=start] .entry-content {
    display: flex;
    gap: 4px;
    align-items: center;
}

h1.site-title,
.site-title {
    color: var(--theme-palette-color-8);
    font-size: 12px;
    margin: 0;
}

header a:hover {
	cursor: pointer!important;
}

/* Off canvas mobile menu */
/* .ct-panel-content-inner {
    padding: 40px 0 0 0 !important;
    height: 100vh;
    justify-content: space-between;
}

.ct-panel-content-inner [data-id="mobile-menu"] {
    background: #fff;
    padding: 40px 0;
}

.ct-panel-content-inner [data-id="mobile-menu-secondary"] {
    background-color: var(--theme-palette-color-5);
    padding: 40px 0 0;
    margin-bottom: -60px !important;
}

.ct-panel-content-inner [data-id="widget-area-1"] {
    width: 100%;
}

.ct-panel-content-inner p {
    text-align: center !important;
    text-transform: uppercase;
} */

/* Open Hours */
table.opening-hours,
table.opening-hours td {
    border: 0;
    padding: 0;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

table.opening-hours td {
    min-height: 40px;
    padding: 10px 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
}

table.opening-hours td:last-child {
    align-items: flex-end;
    text-align: right;
}

table.opening-hours tr {
    position: relative;
    padding: 0;
    display: flex;
    justify-content: space-between;
    font-weight: 300;
}

#main table.opening-hours tr {
    border-bottom: 1px solid var(--theme-palette-color-4);
}

#main table.opening-hours tr.active {
    color: var(--theme-palette-color-1);
    font-weight: 500;
}

body:is(.post-type-archive-brands, .single-brands, .tax-brand-categories) footer .entry-content>table:last-of-type {
    display: none !important;
}

.page-id-526 #main table.opening-hours tr.active:before {
    background: var(--theme-palette-color-5);
}

.page-id-526 #main table.opening-hours tr {
    padding: 0 20px;
}

.page-id-526 #main table.opening-hours tr:before {
    content: " ";
    position: absolute;
    top: 0;
    left: -5px;
    width: calc(100% + 10px);
    border-radius: 50px;
    display: block;
    height: 100%;
    z-index: -1;
}

.page-id-526 #main table.opening-hours tr:last-child,
.page-id-526 #main table.opening-hours tr.active,
.page-id-526 #main table.opening-hours tr:has(+ .active) {
    border-bottom: unset !important;
}

table.opening-hours small {
    font-size: 70%;
    margin-bottom: -30px;
    font-style: italic;
    display: block;
}

table.opening-hours.upcoming {
    margin-bottom: 25px;
}

.opening-hours h2 {
    text-align: left !important;
}

/* Social links */
a.social-link {
    background: rgba(0, 0, 0, 0);
    display: flex;
    padding: 10px;
    color: var(--theme-palette-color-4);
    border-bottom: 1px solid var(--theme-palette-color-4);
}

a.social-link:hover,
a.social-link:active {
    background: var(--theme-palette-color-6);
    color: var(--theme-palette-color-4);
}

span.icon {
    width: 25px;
    height: 25px;
    margin-right: 17px;
    fill: var(--theme-palette-color-4);
}

span.icon svg {
    height: inherit;
    width: inherit;
}

a.social-link:hover span.icon,
a.social-link:active span.icon,
a.social-link:hover span.text {
    fill: var(--theme-palette-color-1);
    color: var(--theme-palette-color-1);
}



/* ----- Footer ----- */
[data-footer*="type-1"] .ct-footer [data-row*="top"]>div {
    min-width: 100vw;
}

.align-center .ct-social-box {
    justify-content: center;
}


/* Open Hours */
#footer table.opening-hours {
    border: none;
    color: var(--theme-palette-color-8);
    text-transform: uppercase;
    font-size: 14px;
    text-align: right;

    tr,
    td {
        border: none;
        padding: 0;
    }
}

#footer table.opening-hours caption {
    text-align: left;
    padding: 0 0 10px;
    font-size: 120%;
}

#footer table.opening-hours tr:not(:last-child) {
    border-bottom: 1px solid;
}

#footer table.opening-hours td {
    padding: 5px 0;
}

#footer table.opening-hours td:first-child {
    font-weight: bold;
    text-align: left;
}




/* ----- Carousel ----- */
@media only screen and (min-width: 690px) {
    .has-counter .stk-block-carousel__buttons {
        margin-left: auto;
        margin-right: auto;
        max-width: var(--stk-block-default-width, var(--stk-block-width-default-detected, 900px));
        padding-left: 70px;
        padding-bottom: 40px;
    }

    /* .has-counter .stk-block-carousel__dots {
        margin-top: -125px !important;
    } */
}

@media only screen and (max-width: 768px) {
    .has-counter .wp-block-stackable-columns.alignfull>.stk-row:not(.alignfull) {
        margin: 0 !important;
        width: 100% !important;
    }

    .has-counter .stk-block-carousel__buttons {
        width: var(--theme-block-width) !important;
        padding-left: 45px;
        padding-bottom: 40px;
    }
}

/* Counter */
.slide-counter {
    z-index: 9 !important;
    padding-bottom: 80px !important;
    color: #fff;
}

.slide-counter .current-slide {
    font-weight: 600;
    font-size: 18px;
}

.slide-counter .backslash {
    padding: 0 5px;
}

/* ------- Brands archives ------- */
.post-type-archive-brands article.brand-categories-food-drinks {
    display: none;
}

/* Carousels */
.flat-dots .stk-block-carousel__dot:before {	
	height: 2px!important;
}

.dots-top .stk-block-carousel__dots {
	position: absolute;
	top: 0;
	left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
	margin-top: -50px;
}

.swiper-wrapper .swiper-slide:nth-child(3n-2) div.stk-block-background {
	background-color: #A72585!important;
}

.swiper-wrapper .swiper-slide:nth-child(3n-1)  div.stk-block-background {
	background-color: #352E87!important;
}

.swiper-wrapper .swiper-slide:nth-child(3n) div.stk-block-background {
	background-color: #FEBF00!important;
}

.swiper-wrapper h4.stk-block-heading__text {
	color: #fff!important;
}

/* Tables */
.headings-red th {
	background: #D53638;
	color: #fff;
	font-weight: 300;
}

.green--list li, .black--list li {
	list-style-type: square;
}

.green--list li::marker {
	color: #61932F;
}

/* Sustainability */
.grid {
	 display: flex!important;
      flex-wrap: wrap!important;
      gap: 10px!important;
}

.item {
	 width: calc(50% - 25px)!important; 
	 box-sizing: border-box!important;
}

@media (max-width: 768px) {
	 .item {
		 width: calc(100% - 25px)!important; /* One column */
	 }
}

/* Forms */

.acf-label label {
	font-weight: 300!important;
}

.acf-input :is(select, input, textarea) {
	border: 1px solid #000!important;
	border-radius: 0!important;
}

.acf-fields {
	margin-left: -10px!important;
}

.acf-fields>.acf-field {
	padding: 10px!important;
}

.acf-form-submit input:hover {
	background-color: #000!important;
}

.post-type-archive-whats-on .ct-dynamic-filter a {
	border: 1px solid #000;
	width: 25%;
	text-align: center;
}

.tax-occupier-type.term-services .leisure-header, .tax-occupier-type:is(.term-services, .term-retail, .term-office) .search-dropdown--container,  .tax-occupier-type.term-leisure .services-header, .tax-leisure-type .retail-header, .tax-occupier-type.term-retail .leisure-header {
	display: none;
}

/* Button slide */
.stk--hover-effect-darken:hover {
	box-shadow: inset 0 0 0 0 #D80286!important;
  -webkit-transition: ease-in-out 0.4s!important;
  -moz-transition: ease-in-out 0.5s!important;
  transition: ease-in-out 0.5s!important;
  box-shadow: inset 400px 0 0 0 black!important;
}

/* Occupier singles */
.occupier-type-office :is(.leisure-back, .retail-back, .services-back),
.occupier-type-retail :is(.leisure-back, .office-back, .services-back),
.occupier-type-leisure :is(.retail-back, .office-back, .services-back),
.occupier-type-services :is(.retail-back, .office-back, .leisure-back)
{
	display: none;
}

.occupier-type-services.occupier-type-leisure .services-back {
	display: block!important;
}

