/* Custom styles for UpVerso */

.wp-block-site-logo img {
    width: 146px;
}

.single-post.postid-1539 .wp-block-post-date {
    display: none;
}

.single-post h2 {
    font-size: 1.5rem;
}
.single-post h3 {
    font-size: 1.35rem;
}
.single-post h4 {
    font-size: 1.2rem;
}
.visible {
  z-index: 2;
  position: relative;
}
.hide {
    display: none;
}
.negativ-left-50 {
  margin-left: -50px;
}
.negativ-left-300 {
    margin-left: -300px;
}

.equal-height-columns {
    display: flex;
    gap: var(--wp--style--block-gap, 2rem); /* zachová mezeru mezi sloupci */
  }
  
  .equal-height-columns > .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
  }

.wp-block-image {
    text-align: initial;
}
@media only screen and (max-width: 781px) {
    .wp-image-9796 {
        display: none;
    }
}
.orange-btn a {
    color: var(--wp--preset--color--white-fg);
    font-weight: bold;
    background-color: var(--wp--preset--color--primary-orange);
    padding: 9px 24px !important;
    border-radius: 12px;
    line-height: var(--wp--custom--button--typography--line-height);
}
.orange-btn a:hover {
    background-color: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--white-fg) !important;
    text-decoration: none;
}
li::marker {
    color: var(--wp--preset--color--primary-orange);
}
@media screen {
    .d-none {
        display: none;
    }   
}
@media (min-width: 782px) {
    .d-sm-none {
        display: none;
    }
    .d-sm-table-cell {
        display: table-cell;
    }
}
.wp-block-cover, .wp-block-cover-image {
    min-height: 310px;
}
.grecaptcha-badge {
    display: none;
}
a:not(.ab-item):not(.screen-reader-shortcut):active, a:not(.ab-item):not(.screen-reader-shortcut):focus {
    outline: none;
}

/* Custom block styles */
ul.is-style-white-check, ul.is-style-orange-check, ul.is-style-orange-x {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul.is-style-white-check > li, ul.is-style-orange-check > li, ul.is-style-orange-x > li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.5em;
}

ul.is-style-white-check > li::before, ul.is-style-orange-check > li::before, ul.is-style-orange-x > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.5em;
  height: 1.5em;
  background-image: url('/wp-content/uploads/2025/03/621011.svg');
  background-size: contain;
  background-repeat: no-repeat;
}
ul.is-style-orange-check > li::before {
  background-image: url('/wp-content/uploads/2025/03/111140.svg');
}
ul.is-style-orange-x > li::before {
    background-image: url('/wp-content/uploads/2025/03/111029.svg');
}

/* Responsive styles */
@media (max-width: 781px) {
    .hide-on-mobile {
        display: none !important;
    }
    .no-bg-mobile {
        background-image: none !important;
    }
    .wp-site-blocks .site-header .wp-block-site-logo {
        flex-basis: initial;
        margin-bottom: unset;
        margin-top: calc( var(--wp--custom--gap--vertical) / 2 );
        text-align: center;
    }
    .entry-content > .wp-block-group.has-background {
        padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal) !important;
    }
    .entry-content > .wp-block-group > .wp-block-columns > .wp-block-column > .wp-block-group {
        min-height: 79vw !important;
    }
    .wp-container-core-group-is-layout-9dde13e5 {
        margin-top: 0;
    }
    .container_028ae42a8e8f > * {
        text-align: left !important;
        max-width: 100% !important;
    }
    .wp-container-core-group-is-layout-6b856653 {
        margin-top: 70px !important;
    }
}

/* Navigation and Top bar */
nav .wp-block-search__inside-wrapper {
    background-color: transparent;
}
a.wp-block-navigation-item__content.current-menu-item {
    color: var(--wp--preset--color--primary-orange) !important;
}
nav .wp-block-search__button.has-icon {
    color: var(--wp--preset--color--white-fg);
    background: transparent;
    padding: 0.5rem;
}
nav .wp-block-search__button.has-icon:hover svg {
    border-bottom: 1px solid var(--wp--preset--color--primary-orange);
}
@media (min-width: 782px) {
    nav .wp-block-search:not(.wp-block-search__searchfield-hidden) {
        position: absolute;
        top: 65px;
        background: var(--wp--preset--color--black-bg);
        border-radius: 16px;
        padding: 15px 0px 15px 15px;
    }
}
.wpml-language-switcher-navigation-block ul.horizontal-list > li.wp-block-navigation-item[data-wpml="current-language-item"] {
    display: none;
}
main#wp--skip-link--target {
    margin-block-start: 0;
    margin-top: 0;
  }
@media (min-width: 782px) {
    main#wp--skip-link--target {
      margin-top: -112px;
    }
}
.wp-site-blocks > div.is-position-sticky {
    padding: 1rem var(--wp--custom--gap--horizontal);
}
header nav .wp-block-navigation__responsive-container-content {
    gap: 20px;
}
.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
    min-width: 230px;
}

/* Stretched links */
.stretched-link-container > div {
  position: relative;
  cursor: pointer;
}
@media only screen and (min-width: 782px) {
    .stretched-link-container > div {
      transition: transform 0.3s ease-in-out;
    }
    .stretched-link-container > div:hover {
        transform: scale(1.02);
    }
}

/* Homepage */
.slick-next, .slick-prev {
  top: 8%;
}
.wp-block-cb-carousel .slick-next:before, .wp-block-cb-carousel .slick-prev:before {
    color: var(--wp--preset--color--primary-orange);
    opacity: 1;
}
@media only screen and (min-width: 1050px) {
    .home-cards {
        margin-top: -85px;
    }
    .home-cards > .wp-block-columns > .wp-block-column > .wp-block-group {
        margin-top: 23px;
    }
}

.home-benefit {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: bottom;
}
@media only screen and (max-width: 781px) {
    .home-benefit {
        background-image: none !important;
    }
}
.small-icons .wp-block-media-text {
    grid-template-columns: 8% auto !important;
}
.small-icons figure.wp-block-media-text__media > img {
    width: 24px;
}
.small-icons .wp-block-media-text__content {
    padding: 0;
}
.small-icons .wp-block-media-text__content > p {
    margin-top: 0;
}
.accent-hover:hover {
    background-color: var(--wp--preset--color--accent-orange);
    border-radius: 12px;
}
@media only screen and (max-width: 781px) {
    .stats > .wp-block-column {
        padding: 0 0 25px 0 !important;
    }
}
.home .slider {
    padding-top: 112px !important;
    background-image: url(https://www.upverso.cz/wp-content/smush-webp/2025/03/Background-1024x372.png.webp);
    background-position: center;
    background-size: cover;
}
.home .slider h1 {
    font-size: 3rem;
}
@media (max-width: 768px) {
  .home .slider {
    padding-top: 40px !important;
    background-image: none;
  }
  .home .slider h1 {
    font-size: 2.5rem;
  }
}

/* Final Optimization Hacks */
.slider .wp-image-1457 {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
  aspect-ratio: 585 / 486;
}
.slider .wp-block-columns .wp-block-column:last-child {
  content-visibility: auto;
  contain: layout style;
  overflow: hidden;
}
.slider .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Products page */
.product-cards .wp-block-columns > .wp-block-column > div {
  position: relative;
}
.product-cards .wp-block-columns > .wp-block-column > div h2 {
  z-index: 2;
  position: relative;
}
.product-cards .wp-block-columns > .wp-block-column > div::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 45%;
  pointer-events: none;
  z-index: 1;
}
.product-cards .wp-block-columns > .wp-block-column:nth-of-type(1) > div::before {
  background-image: url(/wp-content/uploads/2025/03/6397.svg);
}
.product-cards .wp-block-columns > .wp-block-column:nth-of-type(2) > div::before {
  background-image: url(/wp-content/uploads/2025/03/6799.svg);
}
.product-cards .wp-block-columns > .wp-block-column:nth-of-type(3) > div::before {
  background-image: url(/wp-content/uploads/2025/03/6840.svg);
}

/* Other Pages */
@media only screen and (min-width: 782px) {
    .wp-block-columns.arrows > .wp-block-column:not(:first-of-type):before {
        content: url(/wp-content/uploads/2024/02/padding-top.png);
        position: absolute;
        margin-left: -45px;
    }
}

details {
    border-radius: 16px;
}
details summary {
  display: flex;
  align-items: center;
  list-style: none;
  font-weight: bold;
  color: var(--wp--preset--color--primary-orange);
}
summary::-webkit-details-marker {display: none; }
details summary::before { 
    content: url(https://www.ebenefity.cz/wp-content/uploads/2024/02/Button-3.png); 
    vertical-align: middle;
    margin-right: 1rem;
    display: inline-block;
}
details[open] summary::before { 
    content: url(https://www.ebenefity.cz/wp-content/uploads/2024/02/Button-1-1.png); 
}
.wp-block-file:not(.wp-element-button) {
    font-size: unset;
    background-image: url(https://www.ebenefity.cz/wp-content/uploads/2024/02/bxs-file-pdf.svg.png);
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 30px;
    font-weight: bold;
    text-align: left !important;
}
.files table {
    width: 100%;
}
.files tr > td {
    border-bottom: 1px solid #3c516a;
    padding: 12px 5px 15px;
    text-align: center;
}
.files .wp-block-file__button {
    font-weight: bold;
    background: transparent;
    color: var(--wp--preset--color--primary-orange);
    font-size: inherit;
    background-image: url(https://www.ebenefity.cz/wp-content/uploads/2024/02/bxs-download.svg.png);
    background-repeat: no-repeat;
    background-position: right;
    padding-right: 30px;
}
.files .wp-block-file__button:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--primary-orange) !important;
    text-decoration: underline;
}
@media only screen and (max-width: 781px) {
    .files .wp-block-file__button {
        color: transparent;
        width: 0px;
        margin-left: 0;
    }
}
#mam-zajem {
    background-size: inherit !important;
    background-repeat: no-repeat;
    background-position: bottom left;
}
.bg-contain-right {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: right;
}
@media only screen and (max-width: 781px) {
    #mam-zajem, .bg-contain-right {
        background-image: none !important;
    }
    .loga .wp-block-image {
        width: 45%;
    }
}

/* Cenik */
#cenik table th {
    background-color: #F3EEED;
}
#cenik :is(td, th, thead) {
    border: none !important;
}
#cenik figure.wp-block-table {
    border-radius: 16px;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #FAF9F9;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: white;
}
#cenik table img.wp-image-832 {
    display: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Contact form */
.wpcf7-list-item {
    margin: 0;
}
.wpcf7 a {
    text-decoration: underline;
}
.wpcf7 label {
    font-weight: bold;
}
body:not(.single-post) .wpcf7 .wpcf7-form-control.wpcf7-text, body:not(.single-post) .wpcf7 textarea, body:not(.single-post) .wpcf7 select {
    color: var(--wp--preset--color--black-bg);
    background: #FFE5C7;
    border: 1px solid #FFD4A2;
    width: 100%;
}
body.single-post .wp-block-contact-form-7-contact-form-selector {
    color: var(--wp--preset--color--dark-gray) !important;
    background-color: var(--wp--custom--color--tertiary) !important;
    padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
    border-radius: 16px;
}
body.single-post .wpcf7 .wpcf7-form-control.wpcf7-text, body.single-post .wpcf7 textarea, body.single-post .wpcf7 select {
    color: var(--wp--preset--color--black-bg);
    background: #F4F4f4;
    border: 1px solid #FFF;
    width: 100%;
}
.wpcf7 .row {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.wpcf7 .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 782px) {
  .wpcf7 .col-md-6 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
.wpcf7 .wpcf7-form-control.wpcf7-text {
    max-width: 100%;
}
.wpcf7 .wpcf7-submit {
    background: #2B3C50;
    color: #fff;
    border-radius: 12px;
    font-weight: bold;
    width: 100%;
    padding: 18px;
    border-style: none;
    background-image: url(/wp-content/uploads/2024/02/bx-send.svg.png);
    background-repeat: no-repeat;
    background-position: 59%;
}
.narrow .wpcf7 .wpcf7-submit {
    background-position: 80%;
} 
body.single-post .wpcf7 .wpcf7-submit {
    background-color: var(--wp--preset--color--primary-orange);
    color: #fff;
    border: 0;
}
body.single-post .wpcf7 .wpcf7-submit:hover {
    color: #fff;
    background-color: var(--wp--preset--color--accent-orange);
}
@media (max-width: 781px) {
  .wpcf7 .wpcf7-submit {
    background-position: 64%;
  }
}
.wpcf7 .hidden-fields-container {
    display: none;
}
:is(.wp-block-search__button, .wp-block-button__link):is(:hover, :active, :focus) {
    color: #fff;
}
.wp-block-button.is-style-fill .wp-block-button__link:focus,
.wp-block-button.is-style-fill .wp-block-button__link:active {
    background-color: var(--wp--preset--color--primary-orange) !important;
    outline: none;
}
.wp-block-button.is-style-fill .wp-block-button__link:active {
    background-color: var(--wp--preset--color--accent-orange) !important;
    outline: none;
}

/* Search */
.wp-block-search__inside-wrapper {
    background-color: #3C516A;
    border-radius: 16px;
}
input.wp-block-search__input {
    font-size: var(--wp--custom--font-sizes--x-small) !important;
}
.wp-block-search .wp-block-search__input {
    padding: 10px 20px;
    border: 1px solid #4C627C;
    border-radius: 16px;
    background-color: #3C516A;
    min-width: 15rem;
}
.wp-block-search__button {
    background: transparent;
    color: var(--wp--preset--color--primary-orange);
}
.wp-block-search__button:hover {
    background: transparent !important;
}
.wp-block-search__button:hover svg {
    fill: var(--wp--preset--color--primary-orange) !important;
}

/* Novinky */
.wp-block-post-featured-image img {
    border-radius: 16px 16px 0 0;
}
body.single-post .entry-content, body.single-post .entry-content p {
    font-size: var(--wp--preset--font-size--small);
}
body.single-post .entry-content .wp-block-spacer {
    display: none;
}
body.single-post .entry-content a:where(:not(.wp-element-button)) { 
    color: var(--wp--preset--color--primary-orange);
    text-decoration: underline;
}
.filter ul {
    list-style: none;
    padding: 0;
}
.filter ul > li {
    display: inline-block;
    margin-right: 20px;
}
.filter ul > li.current-cat > a {
    text-decoration: underline;
    color: var(--wp--preset--color--primary-orange)
}
.filter a {
    text-underline-offset: 13px;
    color: var(--wp--preset--color--white-fg);
}
.medajlonky img {
    border: 1.5px solid #fff;
    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.3);
}

/* Animace a efekty - pouze desktop */
@media only screen and (min-width: 782px) {        
    @keyframes slideUpFadeIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
    }
    .animate-up {
        animation: slideUpFadeIn 1s ease-out forwards;
        opacity: 0;
        animation-delay: 0.5s;
    }
    
    @keyframes jiggle {
        0%   { transform: scale(1) rotate(0deg); }
        25%  { transform: scale(1.05) rotate(-5deg); }
        50%  { transform: scale(1.05) rotate(5deg); }
        75%  { transform: scale(1.05) rotate(-3deg); }
        100% { transform: scale(1) rotate(0deg); }
    }  
    .jiggle-on-scroll.animate > img {
        animation: jiggle 1s ease-in-out !important;
        transform-origin: center center !important;
    }
}
