/*
	Theme Name: Mercury Child
	Theme URI: https://mercurytheme.com/
	Description: Child theme for Mercury theme
	Author: MercuryTheme.com
	Author URI: https://mercurytheme.com/
	Template: mercury
	Version: 3.9.10
*/
/* Parent theme styles now loaded via functions.php for correct cascade order */

html {
    scroll-behavior: smooth;
}

#shell-toc-target {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding: 10px 0;
    margin: 0 15px 30px;
    background-color: #fff;
    box-shadow: 0px 10px 40px 0px rgba(109, 141, 173, 0.25);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

#shell-toc-target .space-organizations-3-archive-item {
    background-color: transparent;
    border: 2px solid #000;
    /* Толще и цвет из сайта */
    border-radius: 5px;
    /* Радиус 5px */
    padding: 10px;
    margin-bottom: 10px;
    display: inline-block;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    margin: 10px;
}

#shell-toc-target .space-organizations-3-archive-item a {

    text-decoration: none;
}

#shell-toc-target .space-organizations-3-archive-item a:hover {
    color: #ff0000;
}

#shell-toc-target a {

    text-decoration: none;
}

#shell-toc-target a:hover {
    color: #ff0000;
}

body .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Две колонки равной ширины */
    gap: 20px;
    /* Расстояние между колонками */
    align-items: center;
    /* Выравнивание по центру */
}

.spoiler-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
    margin: 0 15px 40px;
}

.spoiler-header {
    list-style: none;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    outline: none;
    display: inline-block;
}

.spoiler-header::-webkit-details-marker {
    display: none;
}

.spoiler-arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 5px;
    font-size: 0.8em;
}

.spoiler-container[open] .spoiler-arrow {
    transform: rotate(180deg);
}

.space-organizations-3-archive-item {
    padding: 5px 0;
    padding-left: 15px;
}

.space-organizations-3-archive-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.space-organizations-3-archive-item a:hover {
    color: #0066cc;
}

.space-organizations-3-archive-item-ins .wp-block-uagb-faq-child.uagb-faq-child__outer-wrap {
    border-top-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
}

.wp-block-uagb-faq {
    padding-left: 20px;
    padding-right: 20px;
}

.space-page-content p {
    border-radius: 5px;
    margin-bottom: 8px;
}

.wp-container-core-group-is-layout-ad2f72ca {
    flex-wrap: nowrap;
}

.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.all-reviews-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.all-reviews-link:hover {
    color: #004499;
    text-decoration: underline;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar img {
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.review-date {
    font-size: 14px;
    color: #666;
}

.space-organization-content-rating-stars {
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.star-full {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFC107"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

.star-half {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFC107"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>');
}

.star-empty {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23DDDDDD"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>');
}

.review-content {
    margin-top: 10px;
}

.review-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.review-text {
    margin: 0 0 15px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.review-experience-date {
    font-size: 14px;
    color: #666;
}

.review-experience-date strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-title {
        font-size: 24px;
    }
}

.wp-block-buttons.is-content-justification-center,
h2 {
    width: 100%;
}

.space-title-box-ins.space-title-box-ins_main {
    padding: 20px 0 20px;
}

#iframe {
    max-width: 100%;
    width: 100%;
    height: 300px;
}

.wp-block-cover {
    min-height: unset;
    padding-top: 20px;
    padding-bottom: 20px;
}

h2,
h3 {
    padding: 0 15px 30px;
    font-family: 'Roboto', sans-serif;
    color: #151515;
    font-size: 1.333em;
    line-height: 1.45em;
    font-weight: 700;
}

body .wp-block-button__link,
form.wpcf7-form input[type="submit"],
.form-submit #submit {
    display: block;
    height: auto;
    padding: 17px 40px;
    margin: 15px 15px 10px;
    font-weight: 300;
    font-size: 1.333em;
    line-height: 1.25em;
    color: #fff;
    border-radius: 5px;
    background-color: #2ecc71;
    text-decoration: none !important;
    box-shadow: 0px 5px 15px 0px rgba(45, 221, 108, 0.55);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}


body .wp-block-button .wp-block-button__link:hover,
form.wpcf7-form input[type="submit"]:hover,
.form-submit #submit:hover {
    color: #fff;
    background-color: #2ecc71 !important;
    box-shadow: 0px 5px 15px 0px rgba(45, 221, 108, 0);
}

.sitemap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sitemap-content ul {
    list-style-type: none;
    padding-left: 0;
}

.sitemap-content ul ul {
    padding-left: 20px;
}

.sitemap-content a {
    text-decoration: none;
    color: #333;
    line-height: 1.6;
}

.sitemap-content a:hover {
    text-decoration: underline;
}

.sitemap-content h2 {
    padding: 30px 15px 10px;
}

.sitemap-content li {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin: 0 15px 10px;
    background-color: #fff;
    box-shadow: 0px 10px 40px 0px rgba(109, 141, 173, 0.25);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
}

/* Для всех форм CF7 на сайте */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100% !important;
    max-width: 100% !important;
}

/* Для текстовых полей и email */
.wpcf7-text,
.wpcf7-email,
.wpcf7-textarea {
    width: 100% !important;
    box-sizing: border-box;
}

/* Для текстовой области */
.wpcf7-textarea {
    min-height: 150px;
}

/* Для контейнера формы */
.wpcf7 {
    max-width: 100%;
}

form.wpcf7-form label {
    display: block;
}

/* Для всех кнопок CF7 */
.wpcf7-submit {
    float: right;
    margin-left: auto;
    display: block;
}

/* Или более современный вариант с flex */
.wpcf7-form {
    display: flex;
    flex-direction: column;
}

.wpcf7-submit {
    align-self: flex-end;
    margin-top: 15px;
}

.space-page-content pre {
    padding: 10px;
}

.comment-rating {
    margin: 10px 0;
}

.comment-rating label {
    margin-right: 10px;
}

.rating-container {
    direction: rtl;
    unicode-bidi: bidi-override;
}

.rating-container input {
    display: none;
}

.rating-container label {
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
}

.rating-container input:checked~label,
.rating-container label:hover,
.rating-container label:hover~label {
    color: #ffcc00;
}

.rating-container input:checked+label:hover,
.rating-container input:checked~label:hover,
.rating-container input:checked~label:hover~label,
.rating-container label:hover~input:checked~label {
    color: #ffcc00;
}

.rating-summary {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.rating-summary h3 {
    margin-top: 0;
}

.total-reviews {
    margin-bottom: 15px;
    color: #666;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stars-label {
    width: 70px;
    font-weight: bold;
}

.stars-percentage {
    margin-left: 15px;
    color: #333;
}

.rating-row input[type="checkbox"] {
    margin-right: 10px;
}

.rating-row label {
    cursor: pointer;
}

.rating-row input[type="checkbox"]:disabled+label {
    color: #ccc;
    cursor: not-allowed;
}

.all-reviews-link {
    width: 15%;
}

#captcha {
    width: 30px;
    padding: 5px;
}

.space-page-without-title .space-page-content .space-comments-list .alignfull {
    margin-top: 0;
    margin-left: 20px;
    margin-right: 20px;
    max-width: 100vw;
}

.space-organization-header-logo-box {
    width: 270px;
}

body .space-content-section .space-page-content-wrap .space-page-content .box-100 .wp-block-cover__background {
    z-index: 0 !important;
}

body .space-page-content-box-wrap {
    padding-bottom: 0;
    margin: 0;
}

body .space-page-section-ins {
    padding-top: 0;
    padding: 0;
}

.space-footer-top {
    padding: 15px 0;
}

hr.wp-block-separator {
    display: none;
}

.uagb-faq-item {
    margin-bottom: 15px !important;
}

.uagb-faq-questions-button {
    font-weight: 600;
}

.space-footer .text-small {
    font-size: 0.75em;
    margin: 20px 0 5px;
    color: #777777;
}

.space-footer-menu {
    column-count: 2;
    /* Устанавливаем два столбца */
    column-gap: 20px;
    /* Расстояние между столбцами */
}

.space-footer-copy-menu ul li {
    float: none;
}

.space-footer .wp-block-image .aligncenter {
    margin: 0;
    text-align: left;
}

.space-footer .text-copyright {
    font-size: 0.75em;
    color: #777777;
    text-align: right;
    width: 100%;
}

.space-footer-copy {
    padding: 30px 0 10px;
}

.games-block-wrapper .wp-block-column h1 {
    margin-bottom: 20px;
}

.games-block-wrapper .space-organizations-archive-item-detailed-tc-ins p {
    margin-bottom: 40px;
}

.games-block-wrapper .wp-block-columns {
    margin-top: 1.45em;
}

.games-block-wrapper .wp-block-column {
    display: grid;
    place-items: center;
}

/* Для мобильных устройств */
@media only screen and (max-width: 768px) {

    .space-page-content p.has-mercury-second-background-color {
        padding-bottom: 1.45em;
    }

    body .wp-block-button__link {
        margin: 0;
    }

    .space-organizations-8-archive-item-brand .space-organizations-8-archive-item-brand-logo img {
        margin: 25px 0 25px 15px;
        max-width: inherit;
        border-radius: 5px !important;
    }

    .space-organizations-8-archive-item-brand {
        display: block;
    }

    .space-footer-menu {
        column-count: 1;
    }

    .grid-container {
        grid-template-columns: auto !important;
        /* Одна колонка для небольших экранов */
    }

    .space-page-content h3 {
        padding: 0;
    }

    .space-page-content p {
        padding-bottom: 0;
    }

    .game-info-table tbody tr {
        display: block;
        border-bottom: 1px solid #ccc;
    }

    .game-info-table tbody tr td {
        display: block;
        text-align: center;
        padding-left: 50%;
        /* Пространство слева для названия столбца */
        position: relative;
    }

    .game-info-table tbody tr td::before {
        content: attr(data-label);
        float: left;
        clear: both;
        color: grey;
        font-weight: bold;
        padding-top: 10px;
        padding-right: 10px;
    }

    .game-info-table tbody tr:nth-child(even) {
        background-color: rgba(0, 0, 0, 0.05);
        /* Легкий оттенок для четных строк */
    }

    .game-info-table td:first-child {
        background-color: unset !important;
    }

    .influencer .is-layout-flex {
        display: block;
        padding: 10px;
    }

    .influencer .wp-block-spacer {
        display: none;
    }

    .reviews-header {
        display: block;
    }
}

.space-organization-header-button .space-style-2-button,
.space-organization-style-2-calltoaction-button-ins .space-calltoaction-button,
.space-style-3-organization-header-button .space-style-3-button,
.space-organizations-7-archive-item-button-two a,
.space-organizations-8-archive-item-button-two a,
.space-organization-float-bar-button-wrap a {
    color: #ffffff !important;
    background-color: #2ecc71 !important;
    box-shadow: 0px 5px 15px 0px rgba(46, 204, 113, 0.55) !important;
}

.space-organization-header-button .space-style-2-button:hover,
.space-organization-style-2-calltoaction-button-ins .space-calltoaction-button:hover,
.space-style-3-organization-header-button .space-style-3-button:hover,
.space-organizations-7-archive-item-button-two a:hover,
.space-organizations-8-archive-item-button-two a:hover,
.space-organization-float-bar-button-wrap a:hover {
    box-shadow: 0px 5px 15px 0px rgba(46, 204, 113, 0) !important;
}

.space-organization-header-button .space-style-2-button {
    display: block;
    padding: 17px 40px;
    margin: 15px 15px 10px;
    font-weight: 300;
    font-size: 1.333em;
    line-height: 1.25em;
    color: #fff;
    border-radius: 5px;
    background-color: #2ecc71;
    text-decoration: none !important;
    box-shadow: 0px 5px 15px 0px rgba(45, 221, 108, 0.55);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}