﻿/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

:root {
    --avt-blue: #36a9e1;
    --avt-blue-hover: #218fc7;
    --avt-border: #dbe4eb;
    --avt-muted: #687683;
}

.site-footer {
    background-color: var(--avt-blue) !important;
}

.site-footer,
.site-footer a,
.site-footer .footer-bottom { color: #fff; }

.avt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid var(--avt-blue);
    border-radius: 7px;
    background: var(--avt-blue);
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.avt-button:hover,
.avt-button:focus {
    border-color: var(--avt-blue-hover);
    background: var(--avt-blue-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.avt-heart-rating {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 17px;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='85' height='17' viewBox='0 0 85 17'%3E%3Cg fill='%23d7e0e6'%3E%3Cpath d='M8.5 15.2 2 9C-2 5.1.8-.8 5.7.4 6.9.7 7.9 1.4 8.5 2.3c.6-.9 1.6-1.6 2.8-1.9C16.2-.8 19 5.1 15 9z'/%3E%3Cpath d='M25.5 15.2 19 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C33.2-.8 36 5.1 32 9z'/%3E%3Cpath d='M42.5 15.2 36 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C50.2-.8 53 5.1 49 9z'/%3E%3Cpath d='M59.5 15.2 53 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C67.2-.8 70 5.1 66 9z'/%3E%3Cpath d='M76.5 15.2 70 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C84.2-.8 87 5.1 83 9z'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 85px 17px;
}

.avt-heart-rating__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='85' height='17' viewBox='0 0 85 17'%3E%3Cg fill='%2336a9e1'%3E%3Cpath d='M8.5 15.2 2 9C-2 5.1.8-.8 5.7.4 6.9.7 7.9 1.4 8.5 2.3c.6-.9 1.6-1.6 2.8-1.9C16.2-.8 19 5.1 15 9z'/%3E%3Cpath d='M25.5 15.2 19 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C33.2-.8 36 5.1 32 9z'/%3E%3Cpath d='M42.5 15.2 36 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C50.2-.8 53 5.1 49 9z'/%3E%3Cpath d='M59.5 15.2 53 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C67.2-.8 70 5.1 66 9z'/%3E%3Cpath d='M76.5 15.2 70 9c-4-3.9-1.2-9.8 3.7-8.6 1.2.3 2.2 1 2.8 1.9.6-.9 1.6-1.6 2.8-1.9C84.2-.8 87 5.1 83 9z'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 85px 17px;
}

.avt-dealer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 26px 0 34px;
}

body.home .post-cards--vertical,
body.search .post-cards--vertical,
body.search .post-cards--grid,
body.search .post-cards--horizontal,
body.search .post-cards--standard,
body.error404 .avt-dealer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.avt-dealer-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--avt-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(41, 58, 70, .07);
}

.avt-dealer-card__logo {
    display: flex;
    height: 145px;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #fff;
}

.avt-dealer-card__logo img,
.avt-compact-card__logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.avt-dealer-card__placeholder {
    display: flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf7fc;
    color: var(--avt-blue);
    font-size: 34px;
    font-weight: 800;
}

.avt-dealer-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 18px 18px;
}

.avt-dealer-card__title {
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.25;
    text-align: center;
}

.avt-dealer-card__title a { color: #26343e; text-decoration: none; }

.avt-dealer-card__details {
    margin: 0 0 15px;
    color: #35444f;
    font-size: 14px;
}

.avt-dealer-card__details > div { margin-top: 8px; }
.avt-dealer-card__details dt { color: var(--avt-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.avt-dealer-card__details dd { min-width: 0; margin: 2px 0 0; overflow-wrap: anywhere; }
.avt-dealer-card__rating { margin: auto 0 15px; text-align: center; }
.avt-dealer-card__button { width: 100%; }

.avt-wide-page,
.single .avt-dealer-page { width: 100%; }

.avt-empty-page,
.avt-recommended { margin-bottom: 36px; }
.avt-recommended > h2 { text-align: center; }

.single .site-content:has(.avt-dealer-page) .content-area {
    width: 100%;
    max-width: 100%;
}

.avt-dealer-page .breadcrumb { margin-bottom: 18px; }
.avt-dealer-profile {
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid var(--avt-border);
    border-top: 5px solid var(--avt-blue);
    border-radius: 12px;
    background: #fff;
}

.avt-dealer-profile__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    padding: 38px 42px 28px;
}

.avt-dealer-profile__eyebrow {
    margin: 0 0 8px;
    color: var(--avt-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.avt-dealer-profile .entry-title { margin: 0; }
.avt-dealer-profile__logo { display: flex; height: 90px; align-items: center; justify-content: center; }
.avt-dealer-profile__logo img { width: auto; max-width: 100%; height: auto; max-height: 90px; object-fit: contain; }
.avt-dealer-profile__rating {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 22px 42px;
    border-top: 1px solid var(--avt-border);
}
.avt-dealer-profile__rating span:last-child { color: var(--avt-muted); }

.avt-dealer-profile__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--avt-border);
    background: #f7f9fb;
}
.avt-dealer-profile__details > div { min-width: 0; padding: 20px 25px; border-right: 1px solid var(--avt-border); }
.avt-dealer-profile__details > div:last-child { border-right: 0; }
.avt-dealer-profile__details dt { color: var(--avt-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.avt-dealer-profile__details dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.avt-dealer-profile__actions { padding: 24px; text-align: center; }
.avt-dealer-profile__actions .avt-button { min-width: 240px; }
.avt-dealer-intro { margin-bottom: 28px; }

.avt-related-dealers { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--avt-border); }
.avt-related-dealers > h2 { margin-bottom: 24px; text-align: center; }
.avt-related-dealers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.avt-compact-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--avt-border); border-radius: 12px; background: #fff; }
.avt-compact-card__logo { display: flex; height: 110px; align-items: center; justify-content: center; padding: 16px; }
.avt-compact-card__body { display: flex; flex: 1; flex-direction: column; padding: 0 16px 16px; }
.avt-compact-card h3 { margin: 0 0 12px; font-size: 17px; line-height: 1.25; text-align: center; }
.avt-compact-card h3 a { color: #26343e; text-decoration: none; }
.avt-compact-card p { margin: 0 0 7px; color: #4c5a64; font-size: 13px; overflow-wrap: anywhere; }
.avt-compact-card__button { width: 100%; margin-top: auto; }

/* The custom profile has one review button; WPCR's form remains available. */
.avt-dealer-page .wpcr3_respond_3,
.avt-dealer-page .wpcr3_aggregateRating,
.avt-dealer-page .wpcr3_dotline { display: none !important; }

.avt-dealer-page .wpcr3_review_item {
    display: grid;
    gap: 18px;
}

.avt-dealer-page .wpcr3_review {
    padding: 24px;
    border: 1px solid var(--avt-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(41, 58, 70, .06);
}

.avt-dealer-page .wpcr3_review_ratingValue,
.avt-dealer-page .wpcr3_review_datePublished,
.avt-dealer-page .wpcr3_review_author {
    float: none !important;
    display: inline-block;
    vertical-align: middle;
}

.avt-dealer-page .wpcr3_review_ratingValue { margin: 0 12px 10px 0; }
.avt-dealer-page .wpcr3_review_datePublished { margin: 0 12px 10px 0; color: var(--avt-muted); font-size: 14px; }
.avt-dealer-page .wpcr3_review_author { margin: 0 0 10px; color: var(--avt-muted); font-size: 14px; }
.avt-dealer-page .wpcr3_review_author .wpcr3_caps { color: #26343e; font-weight: 700; }
.avt-dealer-page blockquote.wpcr3_content {
    clear: both;
    margin: 6px 0 0;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid #edf1f4;
    background: transparent;
    color: #303e48;
    font-style: normal;
}
.avt-dealer-page blockquote.wpcr3_content::before,
.avt-dealer-page blockquote.wpcr3_content::after { display: none; }
.avt-dealer-page blockquote.wpcr3_content p:last-child { margin-bottom: 0; }

.dealer-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.dealer-review__meta {
    display: grid;
    gap: 3px;
    color: var(--avt-muted);
    font-size: 14px;
    text-align: right;
}

.dealer-review__title { margin: 0 0 12px; font-size: 19px; }
.dealer-review__content { color: #303e48; line-height: 1.65; }
.dealer-review__content p { margin: 0 0 1em; }
.dealer-review__content p:last-child { margin-bottom: 0; }

.avt-review-reply {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf1f4;
}

.avt-review-reply__button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--avt-blue);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.avt-review-reply__button:hover,
.avt-review-reply__button:focus {
    color: var(--avt-blue-hover);
    text-decoration: underline;
}

.avt-dealer-page .wpcr3_submit_btn,
.avt-dealer-page input[type="submit"] {
    border-color: var(--avt-blue) !important;
    background: var(--avt-blue) !important;
    color: #fff !important;
}

.avt-dealer-page .wpcr3_submit_btn:hover,
.avt-dealer-page input[type="submit"]:hover {
    border-color: var(--avt-blue-hover) !important;
    background: var(--avt-blue-hover) !important;
}

.avt-dealer-page .wpcr3_cancel_btn {
    border-color: #d83b3b !important;
    background: #d83b3b !important;
    color: #fff !important;
}

.avt-dealer-page .wpcr3_cancel_btn:hover,
.avt-dealer-page .wpcr3_cancel_btn:focus {
    border-color: #b92d2d !important;
    background: #b92d2d !important;
    color: #fff !important;
}

@media (max-width: 1180px) {
    .avt-dealer-grid,
    body.home .post-cards--vertical,
    body.search .post-cards--vertical,
    body.search .post-cards--grid,
    body.search .post-cards--horizontal,
    body.search .post-cards--standard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .avt-dealer-grid,
    body.home .post-cards--vertical,
    body.search .post-cards--vertical,
    body.search .post-cards--grid,
    body.search .post-cards--horizontal,
    body.search .post-cards--standard,
    .avt-related-dealers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avt-dealer-profile__heading { grid-template-columns: minmax(0, 1fr) 160px; padding: 30px; }
    .avt-dealer-profile__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avt-dealer-profile__details > div:nth-child(2) { border-right: 0; }
    .avt-dealer-profile__details > div:nth-child(n+3) { border-top: 1px solid var(--avt-border); }
}

@media (max-width: 560px) {
    .avt-dealer-grid,
    body.home .post-cards--vertical,
    body.search .post-cards--vertical,
    body.search .post-cards--grid,
    body.search .post-cards--horizontal,
    body.search .post-cards--standard,
    .avt-related-dealers__grid { grid-template-columns: 1fr; }
    .avt-dealer-profile__heading { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; }
    .avt-dealer-profile__logo { grid-row: 1; }
    .avt-dealer-profile__rating { flex-wrap: wrap; justify-content: center; padding: 19px 20px; }
    .avt-dealer-profile__details { grid-template-columns: 1fr; }
    .avt-dealer-profile__details > div { border-top: 1px solid var(--avt-border); border-right: 0; }
    .avt-dealer-profile__details > div:first-child { border-top: 0; }
    .avt-dealer-profile__actions .avt-button { width: 100%; min-width: 0; }
    .avt-dealer-page .wpcr3_review { padding: 18px; }
    .dealer-review__header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .dealer-review__meta { text-align: left; }
}

