/*
Theme Name: KWB Eesti theme
Author: Kristjan Tiido (spetsymarketing.com)
Version: 1.0
*/

/* FONT */

@font-face {
    font-family: 'AzoSans';
    src: url('https://kwb.windhager.ee/wp-content/uploads/fonts/AzoSans-Light.afc5ac16.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AzoSans';
    src: url('https://kwb.windhager.ee/wp-content/uploads/fonts/AzoSans-Regular.12d9e6ce.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AzoSans';
    src: url('https://kwb.windhager.ee/wp-content/uploads/fonts/AzoSans-Medium.4757a8f5.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


body,
.elementor-widget,
.elementor-widget-container,
.elementor *,
.elementor-heading-title,
.elementor-widget-text-editor {
  font-family: 'AzoSans', sans-serif !important;
}

/* GENERAL */

body, html {
    margin: 0 !important;
}

*::selection {
  background: #fdb913;
  color: #000;
}
*::-moz-selection {
  background: #fdb913;
  color: #000;
}
*::-webkit-selection {
  background: #fdb913;
  color: #000;
}

.kwb-link {
    text-decoration: underline !important;
    text-decoration-color: #000 !important;
    color: inherit !important;
}

.kwb-link:hover {
  background-color: #fdb913 !important;
  text-decoration: none !important;
}

.kwb-link-2 {
    transition: .2s;
}
.kwb-link-2 a:hover {
    color: #fdb913 !important;
}
.kwb-breadcrumbs a {
    text-decoration: underline;
    text-decoration-color: #275f41;
}
.kwb-breadcrumbs a:hover {
    background-color: #fdb913;
    text-decoration: none;
}
.kwb-menu-link:hover h3 {
    color: #fdb913 !important;
}


/* HEADER AND MMENU */

header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background: white; /* or whatever background prevents transparency */
}

.mm-page {
    padding-top: 80px;
}

#menu {
    padding-top: 80px;
    display: none;
	visibility: hidden;
}

.bar {
    background: #275f41;
}

.mm-panels {
    background-color: white;
}

.mm-listitem__btn:hover {
  background-color: #ffd369;
}
.mm-listitem__text:hover {
  background-color: #ffd369;
}

.mm-menu {
    --mm-color-background: #fff;
    --mm-line-height: 16px;
    --mm-listitem-size: 45px;
    --mm-navbar-size: 45px;
    --mm-offset-top: 0;
    --mm-offset-right: 0;
    --mm-offset-bottom: 0;
    --mm-offset-left: 0;
    --mm-color-border: transparent;
    --mm-color-icon: #275f41;
    --mm-color-button: #275f41;
    --mm-color-text: #275f41;
    --mm-color-text-dimmed: rgba(0, 0, 0, .3);
    --mm-color-background-highlight: rgba(0, 0, 0, .05);
    --mm-color-background-emphasis: hsla(0, 0%, 100%, .4);
    --mm-shadow: 0 0 10px rgba(0, 0, 0, .3);
    font-size: 15px;
    font-weight: 500;
    max-width: 100%;
    min-width: 100%;
    width: 100%;
}

.mm-navbar__title {
    justify-content: start;
}

.kwb-link-arrow a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 1 L7 5 L2 9' stroke='%23275F41' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.kwb-link-arrow a.active::after {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 1 L7 5 L2 9' stroke='%23CE9712' fill='none' stroke-width='2'/%3E%3C/svg%3E");
}



/* FOOTER */

footer {
    position: rel;
}
.kwb-footer-link a {
    display: inline-block !important;
}
.kwb-footer-link a:hover {
    background-color: #fdb913;
}
.kwb-footer-link-2:hover span, svg {
    color: #fdb913 !important;
}
.kwb-footer-link-2:hover path {
    fill: #fdb913 !important;
}

/* PRODUCT PAGE */

.kwb-product-image {
    position: sticky;
    top: 80px;
}

.kwb-download {
  background-image: linear-gradient(to right, #fdb913 100%, #ffffff 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-color: #ffffff; /* fallback */
  transition: background-size 0.2s ease;
}

.kwb-download:hover {
  background-size: 100% 100%;
}

/* POPUP */

#kwb-popup {
    display:none;
    position:fixed !important;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    z-index:9999;
}
#kwb-popup-container {
    background:#fff;
    margin:10% auto;
    padding:20px;
    max-width:500px;
    position:sticky;
    top: 120px;
    max-height: 70vh;
    overflow: auto;
}
#kwb-close-popup {
    top:10px;
    left:10px;
    border: none;
    background: transparent;
}
#kwb-close-popup svg {
    height: 20px;
}
@media (max-width: 768px) {
  #kwb-popup-container {
    max-width:75%;
  }
  .mm-page {
      padding-top: 55px;
  }
}



