/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/* WooCommerce account: use the full content width for tabs, forms and result tables. */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    max-width: none;
}

.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields {
    max-width: none;
}

.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account .woocommerce-MyAccount-content .sidr-results-card,
.woocommerce-account .woocommerce-MyAccount-content .sidr-account-link-box {
    width: 100%;
    max-width: none;
}

.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content select.input-select,
.woocommerce-account .woocommerce-MyAccount-content textarea.input-text {
    width: 100%;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        max-width: none;
    }
}

/* Home constructor products: allow five product cards in one desktop row. */
@media (min-width: 1200px) {
    .home .section-products .shop-grid--columns-5 .product-category,
    .home .section-products .shop-grid--columns-5 .shop-item,
    .front-page .section-products .shop-grid--columns-5 .product-category,
    .front-page .section-products .shop-grid--columns-5 .shop-item {
        width: 20%;
        max-width: 20%;
        flex: 0 0 20%;
    }
}

/* Bono media slides: render uploaded MP4/WebM files as real videos. */
.card-slider--type-media .card-slider__image.bono-child-video-slide {
    position: relative;
    overflow: hidden;
    background-color: #000;
    background-image: none !important;
}

.bono-child-slider-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* Footer navigation: keep menu links readable on the dark footer background. */
.site-footer .footer-widgets .widget_nav_menu a,
.site-footer .footer-widgets .widget_nav_menu a:visited,
.site-footer .footer-widgets .wp-block-navigation-item__content,
.site-footer .footer-widgets .wp-block-navigation-item__content:visited {
    color: #fff !important;
}

.site-footer .footer-widgets .widget_nav_menu a:hover,
.site-footer .footer-widgets .widget_nav_menu a:focus-visible,
.site-footer .footer-widgets .widget_nav_menu a:active,
.site-footer .footer-widgets .wp-block-navigation-item__content:hover,
.site-footer .footer-widgets .wp-block-navigation-item__content:focus-visible,
.site-footer .footer-widgets .wp-block-navigation-item__content:active {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* About page: team posts rendered by [swim_team]. */
.swim-team {
    width: 100%;
    margin: clamp(48px, 7vw, 88px) 0;
}

.swim-team__grid {
    display: grid;
    grid-template-columns: repeat(var(--swim-team-columns, 4), minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
}

.swim-team__member {
    min-width: 0;
    margin: 0;
}

.swim-team__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef1f5;
}

.swim-team__media img,
.swim-team__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.swim-team__body {
    padding-top: 20px;
}

.swim-team__name {
    margin: 0;
    color: #111;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}

.swim-team__role {
    margin-top: 6px;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.swim-team__rule {
    display: block;
    width: 44px;
    height: 2px;
    margin: 22px 0 18px;
    background: #3960ff;
}

.swim-team__description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.swim-team__description > :first-child {
    margin-top: 0;
}

.swim-team__description > :last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .swim-team__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    }
}

@media (max-width: 560px) {
    .swim-team__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .swim-team__body {
        padding-top: 16px;
    }

    .swim-team__rule {
        margin: 18px 0 14px;
    }
}
