/**
 * Repair Card Toggle
 *
 * Redesigned "Показать что входит в пакет" toggle used inside [boris_card]
 * and [boris_card_commertional] shortcodes (price-repair section).
 *
 * Figma reference:
 *   - https://www.figma.com/design/KgV5c4uvNWd3LxampSwcSs/BORISSTUDIO--Copy-?node-id=9451-29198 (closed state)
 *   - https://www.figma.com/design/KgV5c4uvNWd3LxampSwcSs/BORISSTUDIO--Copy-?node-id=9453-29922 (open state)
 *   - https://www.figma.com/design/KgV5c4uvNWd3LxampSwcSs/BORISSTUDIO--Copy-?node-id=9451-29267 (1024px cards row)
 *
 * The trigger and the collapse content share a single bordered card.
 * Bootstrap 5 collapse adds/removes `.collapsed` on the trigger; the
 * chevron rotates via that selector.
 */

.repair_price {
    overflow: hidden;
}

.repair_price .repair_price_title {
    margin: 11px 0px 0px 0px;
}


.repair_price .repair_price_description .repair-card-toggle {
    margin: 9px 0 0 0;
    background-color: #FAF8F3;
    border: 1px solid rgba(33, 33, 33, 0.5);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.repair_price .repair_price_list {
    margin: 15px 0px 0px 0px;
}


.repair_price .repair_price_furniture {
    margin-top: 10px;
}

.repair_price .repair_price_footer {
    margin-top: 22px;
}

.repair_price .repair_price_footer .main_price {
    font-size: 30px;
}

.repair_price .repair_price_footer .footer-text {
    font-size: 11px;
}

.repair_price .repair_price_deadline {
    margin-top: 27px;
    padding: 12px 12px 12px 12px;
}

.repair_price .repair_price_deadline ul li:last-of-type {
    font-size: 8px;
}

.repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link {
    position: relative;
    display: block;
    width: 100%;
    min-height: 26px;
    padding: 0px 32px;
    margin: 0;
    color: #212121;
    font-size: 12px;
    font-weight: 300;
    line-height: 27px;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link:hover,
.repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link:focus,
.repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link:active {
    color: #212121;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
}

.repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link::after {
    content: "";
    position: absolute;
    right: 14px;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5.14 11' fill='none'%3E%3Cpath d='M0.5 0.5L4.5 5.5L0.5 10.5' stroke='%23212121' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 5px 10px;
    transform: rotate(90deg);
    transform-origin: center center;
    transition: transform 0.25s ease;
}

.repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link:not(.collapsed)::after {
    transform: rotate(-90deg);
}

.repair_price .repair_price_description .repair-card-toggle .collapse-repair,
.repair_price .repair_price_description .repair-card-toggle .collapsing {
    text-align: left;
}

.repair_price .repair_price_description .repair-card-toggle__content {
    padding: 4px 14px 14px 14px;
}

.repair_price .repair_price_description .repair-card-toggle__content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.repair_price .repair_price_description .repair-card-toggle__content ul li {
    position: relative;
    padding: 0px 0 2px 17px;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: #212121;
}

.repair_price .repair_price_description .repair-card-toggle__content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 13px;
    height: 13px;
    background: url("images/list.svg") no-repeat center / contain;
}

.repair_price .repair_price_description .repair-card-toggle__content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: #212121;
}

/* Мебель без даних: на мобайлі прибираємо з потоку, від 992px — opacity: 0 (зберігає висоту рядка) */
.repair_price .repair_price_furniture--empty {
    display: none;
}

@media screen and (min-width: 992px) {
    .repair_price .repair_price_furniture--empty {
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

/* 992px+ (до 1200) — Figma node 9451:29267 (3 cards in a row) */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
    .price-repair-commertional-block .row > [class*="col-"] {
        display: flex;
    }

    .repair_price {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 567px;
        border-radius: 10px;
        box-shadow: 0 0 15px 6px rgba(0, 0, 0, 0.05);
    }

    .repair_price > .container {
        display: flex;
        flex: 1;
        flex-direction: column;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .repair_price .repair_price_img img {
        max-height: 141px;
        border-radius: 15px 15px 0 0;
    }

    .repair_price .repair_price_title {
        margin: 9px 0 0 0;
    }

    .repair_price .repair_price_title span {
        font-size: 22px;
        font-weight: 400;
        line-height: 28px;
    }

    .repair_price .repair_price_description {
        margin: 0;
    }

    .repair_price .repair_price_description .repair-card-toggle {
        margin: 2px 0 0 0;
    }

    .repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link {
        min-height: 26px;
        padding: 2px 32px;
        font-size: 12px;
        font-weight: 400;
        line-height: 22px;
    }

    .repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link::after {
        right: 12px;
        top: calc(50% - 4px);
        width: 8px;
        height: 8px;
        background-size: 3px 8px;
    }

    .repair_price .repair_price_list {
        margin: 12px 0 0 0;
        padding: 10px 15px;
        border-radius: 10px;
    }

    .repair_price .repair_price_list ul li,
    .repair_price .repair_price_list ul li:first-of-type {
        font-size: 14px;
        line-height: 20px;
    }

    .repair_price .repair_price_list ul li {
        font-weight: 300;
        padding: 0;
    }

    .repair_price .repair_price_list ul li:first-of-type {
        font-weight: 500;
        padding: 0;
        margin: 0;
    }

    .repair_price .repair_price_list ul li:nth-child(2) {
        margin-top: 7px;
    }

    .repair_price .repair_price_list ul li:nth-child(3) {
        margin-top: 5px;
        padding: 0;
    }

    .repair_price .repair_price_list li span:nth-child(2) {
        font-weight: 400;
        padding: 0 0 0 0;
    }

    .repair_price .repair_price_furniture {
        margin-top: 10px;
        padding: 10px 15px;
        border-radius: 10px;
        min-height: 40px;
        box-sizing: border-box;
    }

    .repair_price .repair_price_furniture--empty {
        min-height: 40px;
    }

    .repair_price .repair_price_furniture ul li {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        padding: 0;
    }

    .repair_price .repair_price_furniture li span:nth-child(2) {
        font-weight: 400;
        padding: 0;
    }

    .repair_price .repair_price_footer {
        margin-top: 21px;
        padding: 0;
    }

    .repair_price .repair_price_footer .main_price {
        font-size: 22px;
        font-weight: 400;
        line-height: 27px;
    }

    .repair_price .repair_price_footer .footer-text {
        margin: 5px 0 0 0;
        font-size: 10px;
        font-weight: 300;
        line-height: 14px;
    }

    .repair_price .repair_price_footer .footer-text span {
        font-weight: 500;
    }

    .repair_price .repair_price_deadline {
        margin-top: 13px;
        padding: 10px 15px;
        border-radius: 10px;
    }

    .repair_price .repair_price_deadline ul > li:first-of-type {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        padding: 0;
    }

    .repair_price .repair_price_deadline .repair_price_deadline_time {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

    .repair_price .repair_price_deadline ul li:last-of-type {
        font-size: 8px;
        font-weight: 300;
        line-height: 12px;
        padding: 0;
        margin-top: 0;
    }

    .repair_price .repair_price_btn {
        margin-top: auto;
    }

    .repair_price .repair_price_btn a {
        padding: 9px 20px 6px;
        border-radius: 37px;
    }

    .repair_price .repair_price_btn a span {
        font-size: 16px;
        font-weight: 300;
        line-height: 18px;
    }

    .repair_price .repair_price_btn a .right-arrow {
        display: none;
    }
}

@media screen and (min-width: 1200px) {
    .price-repair-commertional-block {
        margin-top: -34px;
    }

    .repair_price .repair_price_title {
        margin: 24px 0px 0px 0px;
    }

    .repair_price .repair_price_title span {
        font-size: 24px;
    }

    .repair_price .repair_price_description {
        margin: 0;
    }

    .repair_price_description .repair-card-toggle {
        margin: 2px 0 0 0;
    }


    .repair_price .repair_price_description .repair-card-toggle {
        margin: 7px 0 0 0;
    }

    .repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link {
        min-height: 27px;
        padding: 0px 32px;
        font-size: 13px;
    }

    .repair_price .repair_price_list {
        margin: 14px 0px 0px 0px;
        padding: 12px 12px 12px 12px;
    }

    .repair_price .repair_price_list ul li, .repair_price .repair_price_list ul li:first-of-type, .repair_price .repair_price_furniture ul li {
        font-size: 15px;
    }

    .repair_price .repair_price_list ul li:first-of-type {
        padding: 0px 0px 3px 0px;
    }
    .repair_price .repair_price_furniture {
        padding: 7px 10px;
        margin-top: 10px;
    }

    .repair_price .repair_price_footer {
        padding: 15px 0px 20px 0px;
        margin-top: 0;
    }

    .repair_price .repair_price_footer .footer-text {
        font-size: 10px;
        margin-top: -6px;
    }

    .repair_price .repair_price_deadline {
        margin: 0px 0px 0px 0px;
        padding: 9px 12px 9px 12px;
    }

    .repair_price .repair_price_deadline ul>li, .repair_price .repair_price_deadline .repair_price_deadline_time {
        font-size: 15px;
    }

    .repair_price .repair_price_deadline ul li:last-of-type {
        font-size: 8px;
    }
}

@media screen and (min-width: 1600px) {
    .repair_price .repair_price_title span {
        font-size: 35px;
        font-weight: 400;
        line-height: 34px;
    }

    .repair_price .repair_price_title {
        margin: 32px 0px 0px 0px;
    }

    .repair_price .repair_price_description {
        margin: 11px 0px 0px 0px;
    }

    .repair_price .repair_price_description .repair-card-toggle .repair-card-toggle__trigger.btn-link {
        min-height: 32px;
        padding: 3px 32px;
        font-size: 16px;
    }

    .repair_price .repair_price_list {
        margin: 20px 0px 0px 0px;
    }

    .repair_price .repair_price_list ul li {
        padding: 11px 0 0 0;
    }

    .repair_price .repair_price_list ul li, .repair_price .repair_price_list ul li:first-of-type, .repair_price .repair_price_furniture ul li {
        font-size: 22px;
    }

    .repair_price .repair_price_furniture {
        padding: 16px 12px 16px 21px;
        margin-top: 17px;
    }

    .repair_price .repair_price_footer {
        padding: 36px 0px 15px 0px;
    }

    .repair_price .repair_price_footer .footer-text {
        font-size: 18px;
        margin: -7px 0px 0px 0px;
    }

    .repair_price .repair_price_footer .main_price {
        font-size: 39px;
    }

    .price-repair-commertional-block {
        margin-top: -20px;
    }

    .repair_price .repair_price_deadline ul>li, .repair_price .repair_price_deadline .repair_price_deadline_time {
        font-size: 18px;
        line-height: 19px;
        font-weight: 400;
    }

    .repair_price .repair_price_deadline ul li:last-of-type {
        font-size: 12px;
    }

    .repair_price .repair_price_description .repair-card-toggle__content p {
        margin: 0 0 5px 0;
        font-size: 18px;
        font-weight: 300;
        line-height: 25px;
        color: #212121;
    }
    
    .repair_price .repair_price_description .repair-card-toggle__content ul li {
        position: relative;
        padding: 0px 0 7px 17px;
        font-size: 17px;
        font-weight: 300;
        line-height: 20px;
        color: #212121;
    }

    .repair_price .repair_price_deadline {
        margin: 12px 0 0 0;
        padding: 20px 20px 20px 20px;
    }
}
