@import "service-detail-template.css?v=20260721-service-template";

.data-recovery-hero-image img {
    object-position: 63% center;
}

.partner-logo-image {
    border: 1px solid var(--section-border);
    background: #fff;
}

body.dark-theme .partner-logo-image {
    background: #fff;
}

.partner-logo-combo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 34px);
    padding: clamp(34px, 5vw, 70px);
}

.partner-logo-combo img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo-combo .partner-clinique-logo {
    max-width: 45%;
}

.partner-logo-combo .partner-sfait-logo {
    max-width: 40%;
}

.partner-logo-combo span {
    color: var(--brand-silver);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1;
}

.pricing-table-intro p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pricing-table-wrap {
    overflow: hidden;
    border: 1px solid var(--section-border);
    border-radius: var(--ui-radius-card);
    background: var(--background-box);
}

.recovery-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.recovery-pricing-table th,
.recovery-pricing-table td {
    padding: 22px 24px;
    border-bottom: 1px solid var(--section-border);
}

.recovery-pricing-table thead th {
    position: relative;
    background: var(--brand-sapphire);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.priority-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.priority-help {
    position: relative;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: help;
}

.priority-tooltip {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 30;
    width: 280px;
    padding: 16px 18px;
    border: 1px solid var(--section-border);
    border-radius: var(--ui-radius-button);
    background: var(--background-box);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
    transform: translateX(-50%) translateY(-4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ui-transition), transform var(--ui-transition), visibility var(--ui-transition);
}

.priority-tooltip strong {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-blue-circuit);
    font-size: 0.9rem;
}

.recovery-pricing-table thead th:last-child .priority-tooltip {
    right: 0;
    left: auto;
    transform: translateY(-4px);
}

.priority-help:hover .priority-tooltip,
.priority-help:focus .priority-tooltip,
.priority-help:focus-visible .priority-tooltip {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.recovery-pricing-table thead th:last-child .priority-help:hover .priority-tooltip,
.recovery-pricing-table thead th:last-child .priority-help:focus .priority-tooltip,
.recovery-pricing-table thead th:last-child .priority-help:focus-visible .priority-tooltip {
    transform: translateY(0);
}

.recovery-pricing-table thead th:first-child,
.recovery-pricing-table tbody th {
    text-align: left;
}

.recovery-pricing-table tbody th {
    width: 37%;
    color: var(--hero-title);
    font-size: 1rem;
    font-weight: 700;
}

.support-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-help {
    flex: 0 0 auto;
    background: rgba(39, 153, 255, 0.14);
    color: var(--brand-blue-circuit);
}

.support-help .support-tooltip {
    top: auto;
    bottom: calc(100% + 13px);
    left: 0;
    width: 330px;
    transform: translateY(4px);
}

.support-help:hover .support-tooltip,
.support-help:focus .support-tooltip,
.support-help:focus-visible .support-tooltip {
    transform: translateY(0);
}

.recovery-pricing-table tbody td {
    color: var(--color-text);
    font-weight: 700;
    text-align: center;
}

.recovery-pricing-table tbody tr:last-child th,
.recovery-pricing-table tbody tr:last-child td {
    border-bottom: 0;
}

.recovery-pricing-table .price-on-request {
    color: var(--brand-blue-circuit);
}

.pricing-table-cta {
    display: flex;
    width: fit-content;
    margin: 28px auto 0;
}

@media (max-width: 576px) {
    .partner-logo-combo {
        flex-direction: column;
    }

    .partner-logo-combo .partner-clinique-logo {
        max-width: 78%;
    }

    .partner-logo-combo .partner-sfait-logo {
        max-width: 51%;
    }

    .pricing-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .recovery-pricing-table,
    .recovery-pricing-table tbody,
    .recovery-pricing-table tr,
    .recovery-pricing-table th,
    .recovery-pricing-table td {
        display: block;
        width: 100%;
    }

    .recovery-pricing-table thead {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .recovery-pricing-table thead tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 12px;
        overflow: visible;
        border: 1px solid var(--section-border);
        border-radius: var(--ui-radius-button);
        background: var(--background-box);
    }

    .recovery-pricing-table thead th {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 10px 3px;
        border-bottom: 0;
        background: transparent;
        color: var(--hero-title);
        font-size: 0.76rem;
    }

    .recovery-pricing-table thead th:first-child {
        display: none;
    }

    .priority-heading {
        gap: 4px;
    }

    .priority-help {
        width: 25px;
        height: 25px;
        background: rgba(39, 153, 255, 0.14);
        color: var(--brand-blue-circuit);
    }

    .recovery-pricing-table thead th:nth-child(2) .priority-tooltip {
        left: 0;
        transform: translateY(-4px);
    }

    .recovery-pricing-table thead th:nth-child(2) .priority-help:hover .priority-tooltip,
    .recovery-pricing-table thead th:nth-child(2) .priority-help:focus .priority-tooltip,
    .recovery-pricing-table thead th:nth-child(2) .priority-help:focus-visible .priority-tooltip {
        transform: translateY(0);
    }

    .priority-tooltip {
        width: min(280px, calc(100vw - 48px));
    }

    .recovery-pricing-table tbody tr {
        margin-bottom: 16px;
        overflow: hidden;
        border: 1px solid var(--section-border);
        border-radius: var(--ui-radius-card);
        background: var(--background-box);
    }

    .recovery-pricing-table tbody th {
        width: 100%;
        padding: 18px;
        border-bottom: 1px solid var(--section-border);
        font-size: 1.05rem;
    }

    .support-heading {
        width: 100%;
        justify-content: space-between;
    }

    .support-help .support-tooltip {
        right: 0;
        left: auto;
        width: min(310px, calc(100vw - 64px));
    }

    .recovery-pricing-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        padding: 13px 18px;
        text-align: right;
    }

    .recovery-pricing-table tbody td::before {
        content: attr(data-label);
        color: var(--color-text-secondary);
        font-weight: 600;
        text-align: left;
    }

    .recovery-pricing-table tbody tr:last-child th,
    .recovery-pricing-table tbody tr:last-child td {
        border-bottom: 1px solid var(--section-border);
    }

    .recovery-pricing-table tbody tr td:last-child {
        border-bottom: 0;
    }

    .pricing-table-cta {
        width: 100%;
    }
}
