/*
 Theme Name:   Divi Child
 Template:     Divi
 Description:  Дочірня тема
 Author:       Admin
 Version:      1.0.0
*/

/* ::selection {
  background-color: #000;
  color: #ffffff;
}
::-moz-selection {
  background-color: #000;
  color: #ffffff;
} */

@font-face {
  font-family: "e-UkraineHead-LOGO";
  src: url("/wp-content/uploads/et-fonts/e-ukrainehead-logo.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

.site-title {
  font-family: "e-UkraineHead-LOGO", sans-serif;
}

a:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

a:not(.btn-diia-primary):focus,
a:not(.btn-diia-secondary):focus,
button.btn-diia:focus,
.cff-field:focus,
.main-logo:focus,
.site-map_title:focus,
.accordion-header:focus,
#accessibility-toggle-btn:focus,
.acc-action-btn:focus,
#acc-panel-close-x:focus,
.rdd-modal-close:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.et-menu-nav a {
  outline-offset: -2px;
}

.et_pb_menu .et_pb_menu__menu > nav > ul > li,
.et-menu a {
  transition: none !important;
}

/* accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px 24px;
  z-index: 99999;
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}
.skip-link:focus {
  top: 20px;
}

/* HEADER */

.header-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* MAP */
#map-container svg {
  overflow: visible;
}
#map-container path {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linejoin: round;
}
#map-container path:hover,
#map-container path:focus,
#map-container path.is-hovered {
  stroke: transparent !important;
}
#active-stroke-clone {
  fill: none !important;
  /*   stroke: #c7c7c7 !important; */
  /*   stroke: #ffd600 !important; */
  stroke: #ffe047 !important;
  stroke-width: 2px !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;

  paint-order: normal !important;

  visibility: visible !important;
  display: block !important;
}

.map-legend {
  margin: 48px 0;
  width: 100%;
}
.legend-wrapper {
  width: 100%;
}
.legend-title {
  margin-bottom: 10px;
}
.legend-gradient {
  height: 20px;
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.legend-label-right {
  text-align: end;
  margin-left: 30px;
}

/* MAP MODAL */

body.modal-open {
  overflow: hidden;
}
.rdd-modal {
  display: none;
  position: fixed;
  z-index: 99999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;

  padding-right: inherit;
}
.rdd-modal.is-open {
  display: flex;
  opacity: 1;
}
.rdd-modal-content {
  background-color: #fff;
  padding: 48px;
  border-radius: 0px;
  width: 90%;
  max-width: 720px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  text-align: left;
}
.rdd-modal.is-open .rdd-modal-content {
  transform: translateY(0);
}
.rdd-modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #aaa;
  font-size: 28px !important;
  font-weight: bold;
  cursor: pointer;
}
.rdd-modal-close:hover {
  color: #333;
}
.rdd-modal-header {
  overflow-wrap: anywhere;
}
.rdd-modal-region-summary {
  border-bottom: 2px solid #000;
  margin-bottom: 36px;
}
.rdd-modal-total-block {
  margin: 15px 0 25px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}
.rdd-total-highlight {
  display: block;
  font-size: 20px;
}
.rdd-modal-forms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  max-height: 250px;
  overflow-y: auto;
}
.rdd-modal-forms-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #000;
  font-size: 16px;
}
.rdd-modal-forms-list .form-title {
  padding-right: 15px;
}
.rdd-modal-forms-list .form-sum {
  white-space: nowrap;
  align-self: center;
}

/* MAP SUMMARY */

#map-total-amount {
  padding: 20px;
}

.rdd-total-main-box h3 {
  margin: 0 0 5px 0;
}

.rdd-total-big-amount {
  font-size: 2em;
  margin: 0 0 20px 0;
}

.rdd-total-distribution h4 {
  margin: 0 0 10px 0;
}

.rdd-total-forms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rdd-total-forms-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #000;
}

.rdd-total-forms-list .form-title {
  padding-right: 15px;
}

.rdd-total-forms-list .form-sum {
  font-family: e-Ukraine-Regular;
  white-space: nowrap;
  align-self: center;
}
#map-total-amount .rdd-total-forms-list {
  padding: 0;
}
.rdd-total-main-box h3,
.rdd-total-distribution h4 {
  border-bottom: 2px solid #000;
}
.rdd-no-data {
  margin: 30px 0 50px 0;
}

@media screen and (max-width: 980px) {
  .rdd-modal-total-block,
  .rdd-modal-forms-list li {
    flex-wrap: wrap;
    gap: 1em;
  }
}
