/*
Theme Name: Wessel Licht für Möbel
Author: Kimberley George | Agentur Herzstück GmbH
Author URI: https://www.agentur-herzstueck.de
Description: Ein individuelles Block-Theme mit Full-Site-Editing Features für WordPress. Handgemacht in Bad Salzuflen für Wessel Licht für Möbel GmbH.
Version: 1.0
Text Domain: wessel
*/

:root {
    --global-content-edge-padding: 1.25rem;
}

@import url(./assets/css/fonts.css);

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

p,
blockquote,
h1,
h2,
h3,
h4,
h5,
h6,
li {
    text-wrap: balance;
}

a,
button {
    transition: 0.2s;
}

p>a:hover {
    opacity: 0.7;
}

footer {
    margin-block-start: 0;
}


/****** 
************************************************ Floating button
******/


.fixed-btn {
        display: inline-block;
        transform: rotate(90deg);
        transform-origin: right top;
        position: fixed;
        top: calc(60% + 30px);
        right: 0;
        transition: 0.2s;
        background-color: var(--wp--preset--color--deep-sea);
        backdrop-filter: blur(10px);
        padding: 12px 20px 8px 20px;
        border-radius: 0 0 10px 10px;
        color: var(--wp--preset--color--off-white) !important;
        font-weight: 600;
        font-family: var(--wp--preset--font-family--figtree);
        z-index: 60;
        text-decoration: none;
    }

    .fixed-btn:hover {
        padding: 15px 20px 8px 20px;
    }
    .fixed-btn:first-of-type {
        top: 45vh;
    }
    .wlfm-newsletter-fixed-btn.fixed-btn {
        top: calc(45vh + 170px);
    }

@media (max-width: 767px) {
    .fixed-btn {
        display: none;
    }
    .wlfm-newsletter-fixed-btn.fixed-btn {
        display: block;
        padding: 8px;
        font-size: var(--wp--preset--font-size--normal);
    }
}

/****** 
************************************************ Helper Classes
******/

[id] {
    scroll-margin-top: 50px;
}

.text-shadow-white {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8)
}

.text-shadow-aurora {
    text-shadow: 0 0 10px rgba(37, 171, 158, 0.8)
}

.img-fixed-height-90>img {
    height: 90px;
    width: 90px;
    object-fit: contain;
}

.quote-line-left::before {
    content: "";
    height: 90%;
    width: 1px;
    display: block;
    background: var(--wp--preset--color--off-white);
    position: absolute;
    left: -15px;
    bottom: 0;
    opacity: 0.3;
}

/****** 
************************************************ Block styles
******/

/* Tables */

.wp-block-table.is-style-light td {
    border: 1px solid rgba(255, 255, 255, .3);
}

.wp-block-table.is-style-light tr.table-headline td {
    background-color: rgba(255, 255, 255, .1);
}

.wp-block-table.is-style-dark td {
    border: 1px solid rgba(35, 48, 56, .3);
}

.wp-block-table.is-style-dark tr.table-headline td {
    background-color: rgba(35, 48, 56, .1);
}

@media (max-width: 767px) {
    .wp-block-table table,
    .wp-block-table table tbody {
        display: block;
    }

    .wp-block-table td {
        display: block;
    }

    .wp-block-table.is-style-light tr.table-headline td {
        background-color: rgba(255, 255, 255, .2);
    }
    .wp-block-table.is-style-light tr td:first-child:not(tr.table-headline td) {
        background-color: rgba(255,255,255,.1);
    }

    .wp-block-table.is-style-dark tr.table-headline td {
        background-color: rgba(35, 48, 56, .3);
    }
    .wp-block-table.is-style-dark tr td:first-child:not(tr.table-headline td) {
        background-color: rgba(35, 48, 56, .15);
    }
}

/* Splide Carousel Styles */

.wp-block-splide-carousel:where(figure) {
    margin: 0;
}

.splide__slide figure {
    height: 100%;
    overflow: hidden;
}

.wp-block-splide-carousel,
.wp-block-splide-carousel__container,
.wp-block-splide-carousel__track {
    height: 100% !important;
}

.splide__slide figure img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.splide__arrows {
    z-index: 20;
    position: absolute;
    bottom: 10%;
    left: 20%;
}

.splide__arrows>.splide__arrow {
    border-radius: 10px;
    opacity: 1;
    background: var(--wp--preset--color--moonlight);
}

.splide__arrows>.splide__arrow--next {
    right: calc(-2em - 10px) !important;
}

@media (max-width: 1024px) {
    .splide__arrows {
        left: 10%;
    }
}

@media (max-width: 768px) {
    .splide__arrows>.splide__arrow--next {
        right: calc(-2em - 80px) !important;
    }
}

/* Circle Button */

.is-style-circle-animated {
    position: relative;
    overflow: visible;
    background: transparent;
}

.is-style-circle-animated .kb-svg-icon-wrap {
    transition: 0.25s;
}

.is-style-circle-animated .kt-btn-inner-text {
    z-index: 10;
}

.is-style-circle-animated::after {
    content: "";
    position: absolute;
    top: calc(0px - 20px);
    left: -13px;
    width: 85px;
    height: 85px;
    background-image: url("assets/img/circle.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    transform: rotate(0deg);
    transform-origin: center center;
}

.is-style-circle-animated:hover::after {
    animation: rotateOnce 0.8s forwards;
}

@keyframes rotateOnce {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.is-style-circle-animated:hover .kb-svg-icon-wrap {
    transform: translateX(3px);
}

/* Product download button */

.product-downloads .wp-block-button__link {
    gap: 1rem;
    display: flex;
}

/****** 
************************************************ Modal
******/

.wlfm-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s step-end;
  z-index: 9999;
}

.wlfm-modal:target {
  visibility: visible;
  opacity: 1;
  transition: opacity .25s ease, visibility 0s;
}

.wlfm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 56, .8);
  display: block;
  content: "";
}

.wlfm-modal-card {
  position: relative;
  width: min(92vw, 520px);
  background: var(--wp--preset--color--midnight-light);
  color: var(--wp--preset--color--off-white);
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.wlfm-modal:target .wlfm-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wlfm-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
}

.wlfm-modal-close a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  color: var(--wp--preset--color--off-white);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--normal);
  transition: background-color .2s ease, transform .15s ease;
}

.wlfm-modal-close a:hover,
.wlfm-modal-close a:focus {
  background: rgba(0,0,0,.35);
  outline: 2px solid var(--wp--preset--color--off-white);
  outline-offset: 2px;
}

.wlfm-modal-close a:active { 
    transform: translateY(1px); 
}

/****** 
************************************************ Forms
******/

input[type="text"], 
input[type="tel"], 
input[type="number"], 
input[type="date"], 
input[type="time"], 
input[type="email"], 
select, 
textarea {
  color: var(--wp--preset--color--off-white);
  border: 1px solid rgba(35,48,56,0.5);
  border-radius: 10px;
  background: rgba(35,48,56,.5);
  font-size: var(--wp--preset--font-size--normal);
  padding: .5rem;
  max-width: 100%;
}

.wlfm-modal input[type="text"], 
.wlfm-modal input[type="tel"], 
.wlfm-modal input[type="number"], 
.wlfm-modal input[type="date"], 
.wlfm-modal input[type="time"], 
.wlfm-modal input[type="email"], 
.wlfm-modal select, 
.wlfm-modal textarea {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(0,0,0,0.5);
}

label {
    display: block;
}

/* Kadence Forms */
.kb-form-basic-style input[type="radio"],
.kb-form-basic-style input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--wp--preset--color--off-white);
    border: 0;
}

.kb-adv-form-submit-button:hover,
.kb-adv-form-submit-button:focus {
    cursor: pointer;
}

/* Newsletter Forms */

.tnp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tnp-form label {
    margin-bottom: .5rem;
}

.tnp-form .tnp-email {
  width: calc(100% - 1rem);
}

.tnp-submit,
.tnp-button-form.tnp-unsubscribe button.tnp-submit,
.tnp-button-form.tnp-reactivate button.tnp-submit {
  color: var(--wp--preset--color--off-white);
  display: inline-flex;
  gap: .5em;
  background: rgba(6,80,86,0);
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--titillium-web);
  border: 1px solid var(--wp--preset--color--aurora-green);
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  transition: all .35s ease;
  cursor: pointer;
}

.tnp-submit .kb-svg-icon-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.tnp-submit .kb-svg-icon-wrap svg {
  width: 1em;
  height: 1em;
}

.tnp-submit:hover,
.tnp-button-form.tnp-unsubscribe button.tnp-submit:hover,
.tnp-button-form.tnp-reactivate button.tnp-submit:hover {
    background-color: var(--wp--preset--color--aurora-green);
    color: var(--wp--preset--color--off-white);
}

.tnp-submit:focus,
.kb-adv-form-submit-button:focus,
.tnp-button-form.tnp-unsubscribe button.tnp-submit:focus,
.tnp-button-form.tnp-reactivate button.tnp-submit:focus {
    outline: 2px solid;
}


#wlfm-newsletter-modal .tnp-msg.is-error,
#wlfm-newsletter-modal .tnp-result.is-error { 
    color: #ff6b6b; 
}

#wlfm-newsletter-modal .tnp-form.fade-out {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#wlfm-newsletter-modal .tnp-result {
    display: none;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
}
#wlfm-newsletter-modal .tnp-result.is-visible { 
    display: block; 
}
