/*
Theme Name: OmniCanvasFSE
Theme URI: https://www.livetech.co.uk
Author: Livetech
Author URI: https://www.livetech.co.uk
Description: Livetech Parent Theme
Version: 0.1.93
License: GNU General Public License v3 or later
License URI: https://www.livetech.co.uk
Tags: full-site-editing, block-patterns, block-styles, wide-blocks
Text Domain: omnicanvasfse
*/

/* Globals 
-------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    padding: 0;
    margin: 0;
    font-optical-sizing: auto;
}

body :where(.wp-site-blocks)>* {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Focus styles — only show for keyboard navigation, not mouse/touch */
:where(.wp-site-blocks *:focus) {
    outline: none;
}

:where(.wp-site-blocks *:focus-visible) {
    outline-width: 2px;
    outline-style: solid;
}

/* Prevents unnecessary scrollbars while handling long lines of preformatted text. */
:where(pre) {
    overflow-x: auto;
}

.has-full-height {
    height: 100vh;
}

figure {
    margin: 0;
}

iframe {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

.is-style-label-eyebrow+h1,
.is-style-label-eyebrow+h2,
.is-style-label-eyebrow+h3,
.is-style-label-eyebrow+h4,
.is-style-label-eyebrow+h5,
.is-style-label-eyebrow+h6 {
    margin-top: 10px;
}

p,
ul,
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

p:last-child,
ul:last-child,
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child {
    margin-bottom: 0;
}

a {
    transition: opacity 0.25s ease;
}

a:hover {
    opacity: 0.75;
}

ul{
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
}

input {
    color: #000;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #000;
    font-size: 16px;
}

.text-center,
.has-text-align-center,
[data-text-align="center"] {
    text-align: center;
}

.text-right,
.has-text-align-right,
[data-text-align="right"] {
    text-align: right;
}

select {
    padding: 5px;
    font-family: var(--wp--preset--font-family--primary-font);
}

address {
    font-style: normal;
}

/* Buttons
-------------------------------------------------------------- */
/* Base button styles */
body .wp-element-button,
button[type="submit"],
.omnisuite-button,
.wp-block-post-excerpt.is-style-fill .wp-block-post-excerpt__more-link,
.wp-block-post-excerpt.is-style-alt-fill .wp-block-post-excerpt__more-link,
.wp-block-post-excerpt.is-style-outline .wp-block-post-excerpt__more-link,
.wp-block-post-excerpt.is-style-alt-outline .wp-block-post-excerpt__more-link,
.wpcf7 input[type="submit"] {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: #fff;
    background-color: var(--wp--preset--color--base);
    border: 2px solid var(--wp--preset--color--base);
    border-radius: 0;
    min-height: 40px;
    padding: 5px 20px;
    cursor: pointer;
    transition: all 0.25s ease !important;
    -webkit-tap-highlight-color: transparent;
}

/* Alt Fill */
body .is-style-alt-fill .wp-element-button,
button[type="submit"].alt,
.omnisuite-button.alt,
.wpcf7 input[type="submit"].alt,
.wp-block-post-excerpt.is-style-alt-fill .wp-block-post-excerpt__more-link {
    background-color: var(--wp--preset--color--contrast);
    border-color: var(--wp--preset--color--contrast);
}

/* Outline */
body .is-style-outline .wp-element-button,
button[type="submit"].outline,
.omnisuite-button.outline,
.wpcf7 input[type="submit"].outline,
.wp-block-post-excerpt.is-style-outline .wp-block-post-excerpt__more-link {
    background-color: transparent;
    color: var(--wp--preset--color--base);
}

/* Alt Outline */
body .is-style-alt-outline .wp-element-button,
button[type="submit"].alt-outline,
.omnisuite-button.alt-outline,
.wpcf7 input[type="submit"].alt-outline,
.wp-block-post-excerpt.is-style-alt-outline .wp-block-post-excerpt__more-link {
    background-color: transparent;
    border-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--contrast);
}

body .wp-element-button:hover,
button[type="submit"]:hover,
.omnisuite-button:hover,
.wp-block-post-excerpt.is-style-fill .wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt.is-style-alt-fill .wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt.is-style-outline .wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt.is-style-alt-outline .wp-block-post-excerpt__more-link:hover,
.wpcf7 input[type="submit"]:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.more-link {
    display: block;
}

/* Icons (Material Symbols) */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.omnicanvasfse-icon {
    flex-shrink: 0;
}

/* =Formatting
-------------------------------------------------------------- */
/* =Alignment */
.wp-site-blocks>.entry-content> :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.slick-list):not(.slick-arrow),
.acf-innerblocks-container> :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.slick-list):not(.slick-arrow) {
    max-width: var(--wp--style--global--content-size);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.is-style-alignwide,
.alignwide {
    max-width: var(--wp--style--global--wide-size);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.is-style-alignfull,
.alignfull,
.acf-innerblocks-container {
    width: 100%;
    left: unset;
    right: unset;
    margin-left: unset;
    margin-right: unset;
}

.acf-innerblocks-container>*:first-child {
    margin-top: 0;
}

.acf-innerblocks-container>*:last-child {
    margin-bottom: 0;
}

/* =Flex */
ul.products,
.flex,
.wp-block:has(> .flex) {
    display: flex;
    gap: var(--wp--style--block-gap, var(--wp--preset--spacing--regular));
}

.wp-block>.flex {
    width: 100%;
}

[data-column="full"] {
    flex: 0 0 100%;
}

[data-column="half"] {
    width: calc(50% - var(--wp--style--block-gap) / 2);
}

[data-column="third"] {
    width: calc(33.3333% - 2 * var(--wp--style--block-gap) / 3);
}

[data-column="quarter"] {
    width: calc(25% - 3 * var(--wp--style--block-gap) / 4);
}

[data-column="fifth"] {
    width: calc(20% - 4 * var(--wp--style--block-gap) / 5);
}

[data-column="sixth"] {
    width: calc(16.6667% - 5 * var(--wp--style--block-gap) / 6);
}

[data-column="seventh"] {
    width: calc(14.2857% - 6 * var(--wp--style--block-gap) / 7);
}

[data-column="eigth"] {
    width: calc(12.5% - 7 * var(--wp--style--block-gap) / 8);
}

[data-column="ninth"] {
    width: calc(11.1111% - 8 * var(--wp--style--block-gap) / 9);
}

[data-column="tenth"] {
    width: calc(10% - 9 * var(--wp--style--block-gap) / 10);
}

[data-column="two-thirds"] {
    width: calc(66.6667% - var(--wp--style--block-gap) / 3);
}

[data-column="three-quarters"] {
    width: calc(75% - 3 * var(--wp--style--block-gap) / 4);
}

.flex-wrap {
    flex-wrap: wrap;
}

/* =Grid */
/* :where() keeps this a default, so a Grid block's own gap setting wins */
:where(.is-layout-grid) {
    display: grid;
    gap: var(--wp--style--block-gap, var(--wp--preset--spacing--regular));
}

.is-layout-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.is-layout-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.is-layout-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.is-layout-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.is-layout-grid[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.is-layout-grid[data-columns="7"] {
    grid-template-columns: repeat(7, 1fr);
}

.is-layout-grid[data-columns="8"] {
    grid-template-columns: repeat(8, 1fr);
}

.is-layout-grid[data-columns="9"] {
    grid-template-columns: repeat(9, 1fr);
}

.is-layout-grid[data-columns="10"] {
    grid-template-columns: repeat(10, 1fr);
}

.is-vertical {
    flex-direction: column;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-bottom {
    align-items: flex-end;
}

.align-items-stretch {
    align-items: stretch;
}

/* =Header 
-------------------------------------------------------------- */
/* Header Editor sticky fix */
header:has(> .is-position-sticky) {
    position: sticky;
    top: 0;
    z-index: 9999;
}

header:has(> .is-position-sticky)>.is-position-sticky {
    position: static;
}

/* =Gutenberg Overrides
-------------------------------------------------------------- */
:where(.wp-site-blocks)>* {
    margin-block-start: 0;
}

/* Navigation */
header .wp-block-navigation .wp-block-navigation-item__content {
    padding: 10px 0;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    left: -10px;
    z-index: 3;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content {
    padding: 5px 10px;
}

.wp-block-navigation .wp-block-navigation__submenu-icon svg {
    transition: all 0.25s ease;
}

/* Media / Text */
.wp-block-media-text:not(.has-media-on-the-right)>.wp-block-media-text__content {
    padding-right: 0;
}

.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content {
    padding-left: 0;
}

.wp-block-media-text.alignfull>.wp-block-media-text__content {
    padding: 0 8%;
}

.wp-block-categories-list.is-style-remove-dots {
    list-style: none;
}

/* List block - row style */
.is-style-row.wp-block-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 50px;
}

.is-style-row.wp-block-list:not(.is-style-arrows):not(.is-style-ticks) {
    gap: 25px;
}

.is-style-row.wp-block-list.has-text-align-center {
    justify-content: center;
}

.is-style-row.wp-block-list.has-text-align-right {
    justify-content: flex-end;
}

ul.is-style-arrows,
ul.is-style-ticks {
    list-style: none;
    padding-left: 15px;
}

ul.is-style-arrows li,
ul.is-style-ticks li {
    display: flex;
    align-items: center;
    gap: 10px;
}

ul.is-style-arrows li::before {
    content: "";
    display: block;
    width: 0.8em;
    height: 0.8em;
    flex-shrink: 0;
    background-color: currentColor;
    clip-path: polygon(0 47%, 62% 47%, 62% 28%, 100% 50%, 62% 72%, 62% 53%, 0 53%);
}

ul.is-style-ticks li {
    display: flex;
    align-items: center;
    gap: 10px;
}

ul.is-style-ticks li::before {
    content: "";
    display: block;
    width: 0.8em;
    height: 0.8em;
    flex-shrink: 0;
    background-color: currentColor;
    clip-path: polygon(14% 50%, 0% 65%, 35% 100%, 100% 15%, 85% 0%, 35% 65%);
}

/* =Accordion
-------------------------------------------------------------- */
.accordion {
    overflow: hidden;
}

.accordion .accordion-item {
    margin-bottom: 10px;
}

.accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-head {
    cursor: pointer;
    display: flex;
    background-color: var(--wp--preset--color--base);
    color: #fff;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--small);
    transition: 0.25s ease;
    padding: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.accordion-head:hover{
    opacity: 0.9;
}

.accordion-icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-image: var(--wp--custom--icon--chevron-down);
    mask-image: var(--wp--custom--icon--chevron-down);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform 0.25s ease;
}

.accordion-head.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-panel {
    box-sizing: border-box;
    padding: 20px;
}

.accordion .accordion-item:last-child .accordion-panel {
    padding-bottom: 0;
}

/* =Slick Slider
-------------------------------------------------------------- */
.slick-list:has(.slick-active + .slick-active) {
    margin: 0 -15px;
}

.slick-list:has(.slick-active + .slick-active) .slick-slide {
    margin: 0 15px;
}

.slick-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Slick Nav */
ul.slick-dots {
    margin: 15px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

ul.slick-dots li button {
    border: 1px solid var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--base);
    border-radius: 25px;
    padding: 0;
    width: 15px;
    height: 10px;
    font-size: 0;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

ul.slick-dots li button:hover {
    background-color: var(--wp--preset--color--contrast);
}

ul.slick-dots li.slick-active button {
    width: 25px;
    cursor: default;
}


button.slick-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 1px solid var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--base);
    font-size: 0;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

button.slick-arrow:hover {
    opacity: 0.75;
}

button.slick-arrow:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    -webkit-mask-image: var(--wp--custom--icon--chevron-down);
    mask-image: var(--wp--custom--icon--chevron-down);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

button.slick-arrow.slick-next {
    right: 10px;
}

button.slick-arrow.slick-next:after {
    transform: rotate(-90deg);
}

button.slick-arrow.slick-prev {
    left: 10px;
}

button.slick-arrow.slick-prev:after {
    transform: rotate(90deg);
}

/* =Contact Form 7
-------------------------------------------------------------- */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    row-gap: var(--wp--style--block-gap, var(--wp--preset--spacing--regular));
}

.wpcf7-form > p {
    margin: 0;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7 input:not([type="submit"], [type="checkbox"], [type="radio"], [type="file"]),
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.wpcf7 textarea,
.wpcf7 select {
    color: #000;
    padding: 10px;
    border: 1px solid #000;
    font-family: inherit;
    font-size: 16px;
}

.wpcf7 select {
    height: 40px;
    padding-block: 0;
}

/* The global input rule above would make these 40px boxes */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"],
.wpcf7 input[type="file"] {
    height: auto;
    padding: 0;
    border: 0;
}

.wpcf7 .wpcf7-list-item {
    margin: 0 1em 0 0;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #dc3232;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 10px 15px;
}

/* Image Modal
-------------------------------------------------------------- */
/* Make images clickable when modal is enabled */
[data-enable-image-modal="1"] img,
img[data-enable-image-modal="1"] {
    cursor: pointer;
}

[data-enable-image-modal="1"] img:hover,
img[data-enable-image-modal="1"]:hover {
    opacity: 0.85;
}

/* Modal styles: a full-screen <dialog> in the shared pop-up (assets/js/dialog.js) */
.image-modal {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: white;
    background: transparent;
    border: 0;
}

.image-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal::backdrop {
    background: rgba(0, 0, 0, 0.95);
}

.image-modal-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.image-modal-image {
    max-width: 98vw;
    max-height: 98vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.image-modal-close:hover {
    transform: scale(1.2);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 15px 20px;
    transition: background 0.2s ease;
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

/* One image: no previous / next */
.image-modal-root.is-single .image-modal-nav {
    display: none;
}

.image-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 4px;
}

/* =CookieYes
-------------------------------------------------------------- */
/* Solid Buttons */
.cky-btn-accept,
.cky-btn-reject,
.cky-btn-preferences {
    background: var(--wp--preset--color--base) !important;
    border: 2px solid var(--wp--preset--color--base) !important;
    color: #fff !important;
}

/* Outline Buttons */
.cky-btn-customize {
    color: var(--wp--preset--color--base) !important;
    border: 2px solid var(--wp--preset--color--base) !important;
}

/* Icon Colour */
.cky-btn-revisit-wrapper {
    background: var(--wp--preset--color--base) !important;
}

/* =Woocommerce 
-------------------------------------------------------------- */
.wp-block-woocommerce-customer-account a,
.wc-block-mini-cart__button {
    padding: 3px;
}

/* =Accessibility
-------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -1000em;
    left: 6px;
    height: auto;
    width: auto;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 23px 14px;
    background: #f0f0f1;
    color: #000;
    z-index: 100000;
    text-decoration: none;
}

.skip-link:focus {
    top: 7px;
    background: #f0f0f1;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

button#toTopBtn {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f0f0f1;
    opacity: 0.5;
    border: none;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    z-index: 9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

button#toTopBtn:hover,
button#toTopBtn:focus {
    outline: none;
    opacity: 1;
}

button#toTopBtn img {
    transform: rotate(180deg);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =Media Queries
-------------------------------------------------------------- */
@media (max-width: 991.98px) {

    [data-column="fifth"],
    [data-column="quarter"],
    [data-column="three-quarters"],
    [data-column="third"],
    [data-column="two-thirds"] {
        width: calc(50% - var(--wp--style--block-gap) / 2);
    }

    [data-column="sixth"],
    [data-column="seventh"],
    [data-column="eigth"],
    [data-column="ninth"],
    [data-column="tenth"] {
        width: calc(33.3333% - 2 * var(--wp--style--block-gap) / 3);
    }

    .is-layout-grid[data-columns="3"],
    .is-layout-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .is-layout-grid[data-columns="5"],
    .is-layout-grid[data-columns="6"],
    .is-layout-grid[data-columns="7"],
    .is-layout-grid[data-columns="8"],
    .is-layout-grid[data-columns="9"],
    .is-layout-grid[data-columns="10"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .has-full-height {
        height: 70vh;
    }

    /* =Gutenberg Overrides
    -------------------------------------------------------------- */
    /* Navigation */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }

    .wp-block-navigation__responsive-container-close {
        display: flex;
    }
}

@media (max-width: 781.98px) {

    [data-column="half"],
    [data-column="fifth"],
    [data-column="quarter"],
    [data-column="three-quarters"],
    [data-column="third"],
    [data-column="two-thirds"],
    [data-column="sixth"],
    [data-column="seventh"],
    [data-column="eigth"],
    [data-column="ninth"],
    [data-column="tenth"] {
        width: 100%;
    }

    .is-layout-grid[data-column] {
        grid-template-columns: 1fr;
    }

    /* =Gutenberg Overrides
    -------------------------------------------------------------- */
    /* Media / Text */
    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 100%;
    }

    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
    }

    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
    }

    .wp-block-media-text:not(.alignfull)>.wp-block-media-text__content {
        padding: 5% 0 0;
    }

    /* Image Modal */
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    .image-modal-nav {
        padding: 10px 15px;
        font-size: 18px;
    }

    .image-modal-prev {
        left: 10px;
    }

    .image-modal-next {
        right: 10px;
    }
}