.sa-service-prices {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #DCEFFA;
    border-radius: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
/* Hello Elementori ja teiste teemade table/th vaikimisi ülaservad. */
.sa-service-prices,
.sa-service-prices .sa-service-prices__table,
.sa-service-prices .sa-service-prices__table thead,
.sa-service-prices .sa-service-prices__table thead tr,
.sa-service-prices .sa-service-prices__table thead th {
    border-top: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.sa-service-prices__table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.sa-service-prices .sa-service-prices__table th,
.sa-service-prices .sa-service-prices__table td {
    border: 0;
    text-align: left;
    vertical-align: middle;
}

.sa-service-prices__table th:nth-child(1) { width: 40%; }
.sa-service-prices__table th:nth-child(2) { width: 19%; }
.sa-service-prices__table th:nth-child(3) { width: 19%; }
.sa-service-prices__table th:nth-child(4) { width: 22%; }

.sa-service-prices .sa-service-prices__table thead th {
    background-color: #DCEFFA !important;
}

.sa-service-prices__table thead th {
    padding: 15px 28px;
    color: #526899;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sa-service-prices .sa-service-prices__table tbody th,
.sa-service-prices .sa-service-prices__table tbody td {
    padding: 17px 28px;
    border-bottom: 1px solid #e6eef4;
    background-color: #fff !important;
    color: #344768;
    font-size: 17px;
    line-height: 1.4;
}

.sa-service-prices__table tbody tr:last-child th,
.sa-service-prices__table tbody tr:last-child td {
    border-bottom: 0;
}

.sa-service-prices .sa-service-prices__table tbody .sa-service-prices__name,
.sa-service-prices .sa-service-prices__table tbody .sa-service-prices__price {
    color: #14335a !important;
    font-weight: 600;
}

.sa-service-prices__name {
    font-family: var(--e-global-typography-primary-font-family, Georgia), serif;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.2;
    text-decoration: none;
}

.sa-service-prices .sa-service-prices__action a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--e-global-color-63d61c2, #142D59) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}

.sa-service-prices__arrow {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    transition: transform .2s ease;
}

.sa-service-prices__action a:hover .sa-service-prices__arrow,
.sa-service-prices__action a:focus-visible .sa-service-prices__arrow {
    transform: translateX(4px);
}

.sa-service-prices .sa-service-prices__table a:hover,
.sa-service-prices .sa-service-prices__table a:focus-visible {
    color: #c15c92 !important;
}

.sa-service-prices a:focus-visible {
    outline: 2px solid #7565a6;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .sa-service-prices {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .sa-service-prices .sa-service-prices__table {
        display: block;
        width: 100%;
        min-width: 0;
        border: 0;
    }

    .sa-service-prices__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .sa-service-prices__table tbody {
        display: grid;
        gap: 14px;
    }

    .sa-service-prices__table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px 16px;
        padding: 20px;
        border: 1px solid #dceffa;
        border-radius: 14px;
        background: #fff;
    }

    .sa-service-prices .sa-service-prices__table tbody th,
    .sa-service-prices .sa-service-prices__table tbody td {
        display: block;
        width: auto;
        padding: 0;
        border: 0 !important;
        background: transparent !important;
    }

    .sa-service-prices__table tbody th:first-child {
        grid-column: 1 / -1;
    }

    .sa-service-prices__table tbody td:nth-child(2)::before,
    .sa-service-prices__table tbody td:nth-child(3)::before {
        display: block;
        margin-bottom: 3px;
        color: #526899;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .sa-service-prices__table tbody td:nth-child(2)::before {
        content: "Kestus";
    }

    .sa-service-prices__table tbody td:nth-child(3)::before {
        content: "Hind";
    }

    .sa-service-prices .sa-service-prices__table
    tbody td.sa-service-prices__action {
        grid-column: 1 / -1;
        padding-top: 12px;
        border-top: 1px solid #e6eef4 !important;
    }
}
