/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Author: Baltica Industrial Park
Description: A child theme for Hello Elementor
Version: 1.0
Text Domain: hello-elementor-child
*/



/* Popup overlay */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 47, 21, 0.92);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
	backdrop-filter: blur(40px);
}

.custom-popup-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Popup container */
.custom-popup-container {
    background: #fff;
    max-width: 1297px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    position: relative;
	padding: 40px 48px;
}

.custom-popup-overlay.active .custom-popup-container {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.popup-header__title-col h3 {
    font-size: calc(22px + (32 - 22) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #31512D;
    margin: 0;
}
.popup-header__title-col p {
    font-size: calc(18px + (24 - 18) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #2B313C;
}

.popup-header__title-col {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.popup-header__available-space-col {
    display: flex;
    flex-direction: column;
}
.popup-header__available-space-col div {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: right;
  color: rgba(0, 0, 0, 0.7);
}
.popup-header__available-space-col p {
    font-size: calc(20px + (32 - 20) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.7);
}
.popup-close {
    background-image: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer;
    color: #000 !important;
    line-height: 1;
    padding: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 0 !important;
    position: absolute;
    right: 22px;
    top: 22px;
}
.popup-body h4 {
    font-size: calc(18px + (24 - 18) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #2B313C;
    margin: 0 0 6px;
}
.popup-body p, .popup-body ul li {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.7);
}
@media screen and (min-width: 1921px) {
    .popup-header__available-space-col h3, .popup-header__available-space-col p  {
      font-size: 32px;
    }
    .popup-header__available-space-col p, .popup-body h4 {
       font-size: 24px;
    }
}
.custom-popup-container .wp-block-table {
    margin: 0;
}
.custom-popup-container .has-fixed-layout {
    border-collapse: separate;
    border-spacing: 0 4px; 
    border-color: transparent;
    margin: 9px 0 32px;
}
.custom-popup-container tbody tr {
    background: #F5F5F5;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    padding-inline: 23px;
}
.custom-popup-container tbody td {
    border: none;
    padding: 8px;
}
.custom-popup-container tbody tr:first-of-type td {
    padding: 4px 8px;
}
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: transparent;
}

table tbody tr:hover>td, table tbody tr:hover>th {
    background-color: transparent;
}
.custom-popup-container tbody tr:first-of-type {
    background: #31512D;
    color: #FFF;
    font-weight: 400;
}
.custom-popup-container tbody tr:first-of-type td {
    background-color: #31512D;
}
.custom-popup-container tbody tr td:first-of-type {
   padding-left: 24px;
}
.custom-popup-container tbody tr td:last-of-type {
   padding-right: 24px;
}
.custom-popup-container tbody tr:last-of-type {
    background: #D6D8D6;
    font-weight: 700;
}
.popup__lists {
    display: flex;
    column-gap: 40px;
    & > *  {
        flex: 1;
    }
}
.popup__list ul {
    margin-top: 16px;
    padding-left: 0;
}
.popup__list ul li {
    list-style-type: none;
    padding-left: 28px;
    position: relative;
    margin-bottom: 6px;
}
.popup__list ul li:after {
    position: absolute;
    left: 0;
    top: 7px;
    display: inline-block;
    content: "";
    width: 12px;
    height: 12px;
    background: #FFC51A;
    border-radius: 50%;
}
.popup__image-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 47px;
}
.popup__image-gallery img {
    width: calc((100% / 4) - 18px);
    border-radius: 8px;
    aspect-ratio: 1.6;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.popup-icon-block__wrap {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #D8D8D8;
    margin-top: 46px;
    flex-wrap: wrap;
}
.popup-icon-block__item {
   padding: 30px 20px 28px;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   row-gap: 20px;
   flex: 1;
}
.popup-icon-block__item:not(:last-child) {
    border-right: 1px solid #D8D8D8;
}
.popup-icon-block__item img {
    width: 40%;
    height: auto;
    object-fit: contain;
}
.popup-icon-block__item h5 {
    color: #22282B;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    font-weight: 600;
    text-align: center;
    margin: 0;
}
@media screen and (max-width: 1024px) {
    .custom-popup-container {
	  padding: 45px 24px 30px;
    }
    .popup-close {
        top: 16px;
        right: 16px;
    }
    .popup-header__available-space-col div {
        font-size: 14px;
    }
    .popup-body p, .popup-body ul li {
        font-size: 14px;
    }
    .custom-popup-container tbody tr {
        font-size: 14px;
    }
    .popup__list ul li {
       padding-left: 22px;
    }
    .popup__list ul li:after {
        width: 8px;
        height: 8px;
    }
    .popup__image-gallery {
        gap: 12px;
        margin-top: 32px;
    }
    .popup__image-gallery img {
        width: calc((100% / 4) - 9px);
    }
    .popup-icon-block__item {
       padding: 24px 16px 24px;
    }
    .popup-icon-block__item h5 {
       font-size: 14px;
    }
}
@media screen and (max-width: 767px) {
    .popup__lists {
       flex-direction: column;
       row-gap: 24px;
    }
    .popup-header {
        flex-direction: column;
        row-gap: 20px;
    }
    .popup-header__title-col, .popup-header__available-space-col {
        align-items: center;
    }
    .custom-popup-container tbody tr td:first-of-type {
        padding-left: 8px;
    }
    .custom-popup-container tbody tr td:last-of-type {
      padding-right: 8px;
    }
    .popup-header__available-space-col div {
        font-size: 12px;
    }
    .popup-body p, .popup-body ul li {
        font-size: 12px;
    }
    .custom-popup-container tbody tr {
        font-size: 12px;
    }
    .popup-icon-block__item h5 {
       font-size: 12px;
    }
    .popup__image-gallery img {
        width: calc((100% / 2) - 6px);
    }
    .popup-icon-block__wrap {
        flex-direction: column;
        border: none;
        row-gap: 16px;
    }
    .popup-icon-block__item {
        border: 1px solid #D8D8D8;
        border-radius: 8px;
        flex-direction: row;
        column-gap: 16px;
        width: 100%;
        padding: 16px;
    }
    .popup-icon-block__item img {
        width: 48px;
    }
    .popup-icon-block__item h5 {
        text-align: left;
    }
}
/* loader */
.popup-loader {
    text-align: center;
    padding: 60px 40px;
}

.popup-loader::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #31512D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.popup-error {
    text-align: center;
    padding: 60px 40px;
}

.popup-error p {
    color: #e74c3c;
    font-size: 18px;
    margin: 0;
}

/* Popup responsive*/
@media (max-width: 768px) {
    .custom-popup-container {
        width: 95%;
        max-height: 95vh;
    }
}   



