/*
Theme Name: Superfund
Author: Superfund
Author URI: 
Theme URI: 
Tags: full-site-editing
Text Domain: fpress
Requires at least: 6.1
Requires PHP: 7.4
Tested up to: 6.8
Version: 2.6.13

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

*/
html {
  scroll-behavior: smooth;
}
.sf-behing {
	z-index: 0 !important;
}

/* MENU */
nav .wp-block-navigation__responsive-container-close {
  padding: 1rem !important;
}
nav .wp-block-navigation__submenu-container {
  padding: 1rem !important;
  border-radius: 1rem !important;
  z-index: 99999 !important;
}
nav .wp-block-navigation__submenu-container span.wp-block-navigation-item__label {
  white-space: nowrap;
}
nav .wp-block-navigation__responsive-container.has-modal-open ul.wp-block-navigation__container {
	padding: 0 2rem 4rem 2rem !important;
}
.sf-header nav .wp-block-navigation__responsive-container-open::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 53px;
  background-image: url('/wp-content/themes/superfund/sf_logo.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  pointer-events: none;
}
.sf-header nav .is-menu-open .wp-block-site-logo {
  display: none;
}
.sf-header-button {
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  background: #000000 !important;
  border: 2px solid #000000 !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-align: center !important;
}
.sf-footer ul {
	list-style: none !important;
	margin: 0;
	padding: 0;
	font-weight: 500 !important;
}

/* STICKY */
.is-position-sticky {
  top: 1rem !important;
}

/* SLIDERS */
.sf-desktop-sliders {
  position: relative !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  gap: 1rem !important;
  scroll-behavior: smooth;
  &::-webkit-scrollbar { display: none; }
  scrollbar-width: none;
}
.sf-desktop-sliders > * { flex: 0 0 100% !important; scroll-snap-align: center !important; }
@media (max-width: 767px) {
  .sf-desktop-sliders > * { flex: 0 0 85% !important; scroll-snap-align: center !important; }
  .sf-sliders > * { flex: 0 0 85% !important; scroll-snap-align: center !important; }
  .sf-sliders {
	  position: relative !important;
	  display: flex !important;
	  flex-wrap: nowrap !important;
	  overflow-x: auto !important;
	  scroll-snap-type: x mandatory !important;
	  gap: 1rem !important;
	  scroll-behavior: smooth;
	  &::-webkit-scrollbar { display: none; }
	  scrollbar-width: none;
	}
}
.sf-desktop-sliders-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}
.sf-desktop-sliders-arrow {
  all: unset;
  display: none;
  position: absolute;
  top: 0;
  z-index: 10;
  width: 64px;
  height: 100%;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.1s ease-out;
}
.sf-desktop-sliders-arrow:hover {
  background-color: rgba(0, 0, 0, 0.3) !important;
}
.sf-desktop-sliders-arrow svg {
  width: 64px;
  height: 64px;
  display: block;
  margin: auto;
}
.sf-desktop-sliders-arrow-left { left: 0; }
.sf-desktop-sliders-arrow-right { right: 0; }
@media (min-width: 768px) {
  .sf-desktop-sliders-arrow { display: block; }
}

/* TABS */
.sf-tabs a {
	background-color: #FFFFFF !important;
  color: #000000 !important;
	transition: all 0.1s ease-out; 
}
.sf-tabs a:hover,
.sf-tabs .is-active a {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}
.sf-tabs .is-active a {
  cursor: default !important;
}
.sf-content.is-hidden {
  display: none;
}
.block-editor-iframe__body .sf-content.is-hidden,
.is-visual-editing .sf-content.is-hidden { 
    display: block !important; 
}

/* MOBILE */
@media (max-width: 767px) {
  .sf-header {
    min-height: 5rem;
  }
  .wp-block-column.sf-left-col {
    order: 2;
  }
  .wp-block-column.sf-right-col {
    order: 1;
  }
	.sf-print-button {
		display: none !important;
	}
}
.wp-block-accordion-heading__toggle-title, a {
    text-decoration: none !important;
}
.wp-block-accordion-heading__toggle-icon {
    font-size: 2.5rem !important;
    font-weight: 300 !important;
}

/* FUNDFEEDS DEFAULT OVERRIDES */

/* main */
.wp-block-fundfeeds {
	min-height: 10rem;
}
.wp-block-fundfeeds table th {
  font-weight: 500;
}
.wp-block-fundfeeds table td {
  font-weight: 700;
}

/* flat table */
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat th, 
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat td {
  text-align: left !important;
}
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat td {
  vertical-align: top !important;
}
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat th {
  font-weight: 400;
}

/* cells */
.wp-block-fundfeeds table td.investment_objective {
  font-size: 16px !important;
  font-weight: 400 !important;
  text-align: left !important;
  line-height: 1.2 !important;
}
/* td.emt_priip_sri:not(.wp-block-fundfeeds-fund-report *),
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat td.emt_priip_sri:not(.wp-block-fundfeeds-fund-report *) {
  font-size: 12px !important;
  text-align: center !important;	
} */
td.emt_priip_sri,
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat td.emt_priip_sri {
  font-size: 12px !important;
  text-align: center !important;	
}


td.currencies_of_multicurrency_share_class {
	white-space: nowrap !important;
}
.wp-block-fundfeeds-fund-screener span.wp-block-fundfeeds-umbrella,
.wp-block-fundfeeds-fund-screener span.wp-block-fundfeeds-efama-main-efc-category,
.wp-block-fundfeeds-fund-screener span.wp-block-fundfeeds-efama-active-efc-classification {
  font-size: 80%;
  font-weight: 400;
  margin: 0.25rem 0 !important;
}

/* buttons */
.wp-block-fundfeeds-fund-buttons {
  text-align: center !important;
}
.wp-block-fundfeeds-fund-buttons button:not(.components-button) {
  margin: .25rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  background: #000000 !important;
  border: 2px solid #000000 !important;
  color: #ffffff !important;
}
.wp-block-fundfeeds-fund-buttons button:not(.components-button):not(.wp-block-fundfeeds-button-icon):nth-child(even) {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}
.wp-block-fundfeeds-fund-buttons button:not(.components-button):not(.wp-block-fundfeeds-button-icon):hover {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}
.wp-block-fundfeeds table tbody button:not(.components-button) {
  font-size: 14px !important;
	transition: all 0.1s ease-out;
}
.wp-block-fundfeeds table.wp-block-fundfeeds-table-flat tbody button:not(.components-button) {
  font-size: 16px !important;
}

/* filters */
.wp-block-fundfeeds-filters {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem !important;
  justify-content: flex-end;
  align-items: center;
}
.wp-block-fundfeeds-filters input {
  border: 1px solid #cccccc !important;
  border-radius: 8px !important;
  padding: 0.5rem !important;
  margin: 0.5rem 0 !important;
  background-color: #ffffff !important;
  flex: 1;
}
.wp-block-fundfeeds-filters label {
  font-size: 1rem !important;
  margin-left: 0.5rem !important;
}
.wp-block-fundfeeds-filters button,
.wp-block-fundfeeds-fund-screener thead button {
  padding: 0.25rem 1rem !important;
  border-radius: 0.25rem !important;
	transition: all 0.1s ease-out;
}
.wp-block-fundfeeds-filters button:hover,
.wp-block-fundfeeds-fund-screener thead button:hover {
  background: #000000;
  color: #ffffff;
}
.wp-block-fundfeeds-filters .wp-block-fundfeeds-periods {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;
  min-width: 50% !important;
}
.wp-block-fundfeeds-filters .wp-block-fundfeeds-dates {
  text-align: right !important;
}

/* documents */
.wp-block-fundfeeds-fund-documents table tbody td {
  position: relative;
  padding-left: 2rem !important;
  text-align: left !important;
}
.wp-block-fundfeeds-fund-documents table td a::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('/wp-content/themes/superfund/doc.webp');
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  pointer-events: none;
}

/* search */
.wp-block-fundfeeds-fund-search {
  position: relative !important;
}
.wp-block-fundfeeds-fund-search .wp-block-fundfeeds {
  min-height: 0 !important;
}
.wp-block-fundfeeds-fund-search .wp-block-fundfeeds-table-overflow {
  position: absolute !important;
  width: calc(100% - 3rem) !important;
  z-index: 99 !important;
  padding: 1.5rem !important;
  border: 1px solid #cccccc !important;
 max-height: 50vh !important;
	overflow-y: scroll !important;
}

/* box */
.sf-box .wp-block-fundfeeds table.wp-block-fundfeeds-table-flat thead th {
  font-size: 20px !important;
  font-weight: 700 !important;
}
.sf-box .wp-block-fundfeeds table.wp-block-fundfeeds-table-flat tbody th,
.sf-box .wp-block-fundfeeds-fund-buttons {
  padding-top: 1.25rem !important;
}

/* vertical-breakdowns-group */
.sf-breakdowns-group .wp-block-fundfeeds table tbody tr th {
  width: 200px !important;
 min-width: 200px !important;
	max-width: 200px !important;
}
.sf-breakdowns-group .wp-block-fundfeeds table tbody tr td:nth-child(2) {
  width: 100px !important;
	min-width: 100px !important;
	max-width: 100px !important;
}

/* top-ten */
.sf-top-ten .wp-block-fundfeeds table thead th button {
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}
.sf-top-ten .wp-block-fundfeeds table thead th button span {
  display: none !important;
}

/* comparer */
.wp-block-fundfeeds-fund-comparer {
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  width: 90vw !important;
  left: 50% !important;
  right: auto !important;
  bottom: 1rem !important;
  transform: translateX(-50%) translateY(-1rem) !important;
}
.wp-block-fundfeeds-fund-comparer button {
  float: right !important;
  border-radius: 0.5rem !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  z-index: 99999 !important;
}
.wp-block-fundfeeds-fund-comparer-ticker {
  margin-right: 1rem !important;
}
.wp-block-fundfeeds-fund-comparer-ticker button {
  float: none !important;
  font-size: 1rem !important;
  width: auto !important;
  height: auto !important;
  padding: 0.25rem 0.5rem !important;
}
/* nodata */
.wp-block-fundfeeds-nodata {
 color: #666666 !important;
 font-size: 16px !important;
 line-height: 1rem !important;
}


/* slideIns */
/* @keyframes slideIn {
  from {
    transform: translateY(3rem);
  }
  to {
    transform: translateY(0);
  }
}
main > *,
.sf-animate > *,
.sf-animate > ul.wp-block-post-template > li {
  animation: slideIn ease-out both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
} */


/* hovers */
@media (min-width: 767px) {
	.sf-table-hover .wp-block-fundfeeds table tbody tr,
	.sf-table-hover .wp-block-fundfeeds table tbody tr th,
	.sf-table-hover .wp-block-fundfeeds table tbody tr td {
		transition: border 0.1s ease-out, border-top-color 0.1s ease-out, border-bottom-color 0.1s ease-out, border-left-color 0.1s ease-out, border-right-color 0.1s ease-out;
	}
	.sf-table-hover .wp-block-fundfeeds table tbody tr:hover {
    border: 1px solid #86ba55 !important;
  }
  .sf-table-hover .wp-block-fundfeeds table tbody tr:hover th,
  .sf-table-hover .wp-block-fundfeeds table tbody tr:hover td {
    border-top-color: #86ba55 !important;
    border-bottom-color: #86ba55 !important;
  }
  .sf-table-hover .wp-block-fundfeeds table tbody tr:hover th:first-child,
  .sf-table-hover .wp-block-fundfeeds table tbody tr:hover td:first-child {
    border-left-color: #86ba55 !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
  }
  .sf-table-hover .wp-block-fundfeeds table tbody tr:hover th:last-child,
  .sf-table-hover .wp-block-fundfeeds table tbody tr:hover td:last-child {
    border-right-color: #86ba55 !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
  }
	.sf-grid-hover > div,
	.sf-grid-hover > ul li > div {
		transition: border-color 0.1s ease-out; 
	}
	.sf-grid-hover > div:hover,
	.sf-grid-hover > ul li > div:hover {
    	border-color: #86ba55 !important;
	}
}

/* print */
.sf-print-only {
    display: none !important;
  }
@media print {
  main .wp-block-fundfeeds-filters {
    display: none !important;
  }
  main .wp-block-fundfeeds-table-overflow {
    --print-scale: 0.8 !important;
    transform: scale(var(--print-scale)) !important;
    transform-origin: top left !important;
    width: calc(100% / var(--print-scale)) !important;
    overflow: visible !important;
  }
  main .wp-block-fundfeeds table {
    width: 100% !important;
    max-width: 100% !important; 
  }
  main .wp-block-fundfeeds-fund-performance-line-chart .wp-block-fundfeeds figure div div canvas,
  main .wp-block-fundfeeds-fund-performance-bar-chart .wp-block-fundfeeds figure div canvas,
  main .wp-block-fundfeeds-fund-breakdown-chart .wp-block-fundfeeds figure div div canvas {
    width: 100% !important;
    height: auto !important;
  }
  main .wp-block-fundfeeds-fund-performance-line-chart .wp-block-fundfeeds figure div,
  main .wp-block-fundfeeds-fund-performance-line-chart .wp-block-fundfeeds figure div div,
  main .wp-block-fundfeeds-fund-performance-bar-chart .wp-block-fundfeeds figure div,
  main .wp-block-fundfeeds-fund-breakdown-chart .wp-block-fundfeeds figure div,
  main .wp-block-fundfeeds-fund-breakdown-chart .wp-block-fundfeeds figure div div  {
    height: auto !important;
  }
  nav button,
	nav .sf-header-button,
	nav ul li > *,
  .sf-footer > * {
    display: none !important;
  }
  nav ul li .wp-block-site-logo,
  .sf-print-only {
    display: block !important;
  }
	.sf-no-print {
		display: none !important;
	}
}


/* IKE IKZE */
/* IKE + IKZE */
.ikecalc .ikecalc-horyzont-slider,
.ikecalc .ikecalc-stopazwrotu-slider,
.ikzecalc .ikzecalc-horyzont-slider,
.ikzecalc .ikzecalc-stopazwrotu-slider {
  width: 100% !important;
  max-width: none !important;
  align-self: stretch;
  display: block;
  margin: 0;
}

.ikecalc .ikecalc-horyzont-slider input[type="range"],
.ikecalc .ikecalc-stopazwrotu-slider input[type="range"],
.ikzecalc .ikzecalc-horyzont-slider input[type="range"],
.ikzecalc .ikzecalc-stopazwrotu-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111111 0%, #3c3c3c 100%);
  outline: none;
  cursor: pointer;
  display: block;
}

.ikecalc .ikecalc-horyzont-slider input[type="range"]::-webkit-slider-thumb,
.ikecalc .ikecalc-stopazwrotu-slider input[type="range"]::-webkit-slider-thumb,
.ikzecalc .ikzecalc-horyzont-slider input[type="range"]::-webkit-slider-thumb,
.ikzecalc .ikzecalc-stopazwrotu-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #111111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease;
}

.ikecalc .ikecalc-horyzont-slider input[type="range"]:active::-webkit-slider-thumb,
.ikecalc .ikecalc-stopazwrotu-slider input[type="range"]:active::-webkit-slider-thumb,
.ikzecalc .ikzecalc-horyzont-slider input[type="range"]:active::-webkit-slider-thumb,
.ikzecalc .ikzecalc-stopazwrotu-slider input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.08);
}

.ikecalc .ikecalc-horyzont-slider input[type="range"]::-moz-range-track,
.ikecalc .ikecalc-stopazwrotu-slider input[type="range"]::-moz-range-track,
.ikzecalc .ikzecalc-horyzont-slider input[type="range"]::-moz-range-track,
.ikzecalc .ikzecalc-stopazwrotu-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #111111 0%, #3c3c3c 100%);
}

.ikecalc .ikecalc-horyzont-slider input[type="range"]::-moz-range-thumb,
.ikecalc .ikecalc-stopazwrotu-slider input[type="range"]::-moz-range-thumb,
.ikzecalc .ikzecalc-horyzont-slider input[type="range"]::-moz-range-thumb,
.ikzecalc .ikzecalc-stopazwrotu-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #111111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* bars */
.ikecalc .ikecalc-bar-cell,
.ikzecalc .ikzecalc-bar-cell {
  min-width: 220px;
  width: 100%;
}

.ikecalc .ikecalc-bar-track,
.ikzecalc .ikzecalc-bar-track {
  display: block;
  width: 100%;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ikecalc .ikecalc-bar-fill,
.ikzecalc .ikzecalc-bar-fill {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 56px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: width 0.35s ease;
}

.ikecalc .ikecalc-bar-fill.is-main,
.ikzecalc .ikzecalc-bar-fill.is-main {
  background: #86ba55;
}

.ikecalc .ikecalc-bar-fill.is-std,
.ikzecalc .ikzecalc-bar-fill.is-std {
  background: #666666;
}

.ikecalc .ikecalc-bar-value,
.ikzecalc .ikzecalc-bar-value {
  display: inline-block;
}

.ikecalc a, 
.ikzecalc a {
  transition: all 0.1s ease-out;
}
.ikecalc a:hover, 
.ikzecalc a:hover,
.ikecalc .is-active a, 
.ikzecalc .is-active a {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}
.ikecalc .is-active a, 
.ikzecalc .is-active a {
    cursor: default !important;
}


/* FROM */
.sf-contact-form-wrapper input,
.sf-contact-form-wrapper textarea,
.sf-contact-form-wrapper button {
  all: unset;
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  white-space: nowrap;
  line-height: 1em;
  padding: .25em .5em;
}
.sf-contact-form-wrapper input,
.sf-contact-form-wrapper textarea {
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 0.5rem;
  background-color: #ffffff;
}
.sf-contact-form-wrapper input[type="checkbox"] {
  all: revert;
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  accent-color: #86ba55;
  cursor: pointer;
}
.sf-contact-form-wrapper button {
  margin: .25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 2px solid #000000;
  color: #000000;
  font-size: 14px;
  transition: all 0.1s ease-out;
}
.sf-contact-form-wrapper button[type="submit"],
.sf-contact-form-wrapper button:hover,
.sf-contact-form-wrapper button.is-active {
  background: #000000;
  color: #FFFFFF;
}
.sf-contact-form-wrapper .sf-contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.sf-contact-form-wrapper .sf-topic-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sf-contact-form-wrapper .sf-topic-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid #cccccc;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.1s ease-out;
  white-space: nowrap;
}
.sf-contact-form-wrapper .sf-topic-input:checked + .sf-topic-label {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.sf-contact-form-wrapper .sf-topic-input:focus-visible + .sf-topic-label {
  outline: 2px solid #86ba55;
  outline-offset: 2px;
}


/* Fund Reports CPT */
.wp-block-fundfeeds-fund-report .wp-block-fundfeeds {
  min-height: 0 !important;
}
.wp-block-fundfeeds-fund-report .sf-rep-roczne-pionowe table tbody th {
  background-color: #f8f8f8 !important;
}