.thpl-widget {
    width: 100%;
}

.thpl-hide-approx-currency .thac-approx-price {
    display: none !important;
}

.thpl-service-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
}

.thpl-service-label {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.thpl-service-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.thpl-service-button {
    appearance: none;
    padding: 10px 20px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.thpl-service-button:hover {
    transform: translateY(-1px);
}

.thpl-service-button.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.thpl-service-price {
    display: block;
}

.thpl-takeaway-price {
    display: none;
}

.thpl-mode-takeaway .thpl-restaurant-price {
    display: none;
}

.thpl-mode-takeaway .thpl-takeaway-price {
    display: block;
}

.thpl-mode-takeaway[data-unavailable-behavior="hide"] .thpl-card[data-takeaway="no"] {
    display: none;
}

.thpl-takeaway-unavailable,
.thpl-single-takeaway-unavailable {
    color: #777;
    font-size: .78em;
    font-weight: 600;
}

.thpl-takeaway-empty {
    margin: 0;
    padding: 28px;
    border: 1px dashed rgba(0, 0, 0, .2);
    border-radius: 12px;
    color: #666;
    text-align: center;
}

.thpl-single-takeaway {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    margin: -4px 0 14px;
}

.thpl-single-takeaway-label {
    font-weight: 700;
}

.thpl-single-takeaway-price {
    font-weight: 700;
}

.thpl-variation-price-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.thpl-variation-price-row {
    display: flex;
    align-items: baseline;
    width: 100%;
    min-width: 0;
    gap: 6px;
}

.thpl-variation-label,
.thpl-variation-amount {
    flex: 0 0 auto;
}

.thpl-variation-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.thpl-variation-dots {
    flex: 1 1 auto;
    min-width: 12px;
    border-bottom: 1px dotted currentColor;
    opacity: .4;
}

.thpl-variation-price-unavailable .thpl-variation-amount {
    color: #777;
    font-size: .78em;
    font-weight: 600;
}

.thpl-single-variable-prices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}

.thpl-single-service-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
}

.thpl-single-service-label {
    margin: 0 0 9px;
    font-weight: 750;
}

.thpl-grid {
    --thpl-columns: 2;
    display: grid;
    grid-template-columns: repeat(var(--thpl-columns), minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
}

.thpl-card {
    --thpl-card-hover-y: 0px;
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 20px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.thpl-card:hover {
    transform: translateY(calc(var(--thpl-card-hover-y) * -1));
}

.thpl-image {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    max-width: 100%;
    height: auto;
    align-self: flex-start;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f3f3;
}

.thpl-image a,
.thpl-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.thpl-image img {
    object-fit: cover;
}

.thpl-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    row-gap: 0;
    text-align: left;
}

.thpl-title-link {
    color: inherit;
    text-decoration: none;
}

.thpl-title {
    margin: 0 0 8px;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    transition: color .2s ease;
}

.thpl-price {
    margin: 0 0 8px;
    color: #e39a00;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.thpl-price del {
    opacity: .55;
}

.thpl-price ins {
    text-decoration: none;
}

.thpl-title-price-row {
    --thpl-leader-start-gap: 8px;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
    gap: 8px;
    margin: 0 0 8px;
    text-align: left;
}

.thpl-title-leader {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.thpl-title-price-row .thpl-title-link,
.thpl-title-price-row .thpl-title {
    display: inline;
}

.thpl-title-price-row .thpl-title,
.thpl-title-price-row .thpl-price {
    margin: 0 !important;
}

.thpl-title-leader .thpl-title::after {
    content: "................................................................................................................................";
    display: inline-block;
    width: 0;
    overflow: visible;
    color: #b8b8b8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    transform: translateX(var(--thpl-leader-start-gap));
    vertical-align: baseline;
    white-space: nowrap;
}

.thpl-title-price-row .thpl-price {
    flex: 0 0 auto;
    white-space: nowrap;
}

.thpl-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.thpl-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.thpl-allergen-label {
    color: #111;
    font-style: italic;
    font-weight: 600;
}

.thpl-allergen-terms {
    color: #ef3d2f;
    font-style: italic;
}

.thpl-no-results {
    margin: 0;
    padding: 28px;
    border: 1px dashed rgba(0, 0, 0, .2);
    border-radius: 12px;
    color: #666;
    text-align: center;
}

.thpl-pagination {
    margin-top: 30px;
}

.thpl-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thpl-pagination a,
.thpl-pagination span {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    text-decoration: none;
}

.thpl-pagination .current {
    border-color: #111;
    background: #111;
    color: #fff;
}

@media (max-width: 767px) {
    .thpl-card {
        gap: 14px;
        padding: 14px;
    }

    .thpl-image {
        flex-basis: 110px;
        width: 110px;
    }

    .thpl-title {
        font-size: 18px;
    }

    .thpl-service-button {
        flex: 1 1 130px;
    }

    .thpl-single-variable-prices {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thpl-card,
    .thpl-title,
    .thpl-service-button {
        transition-duration: .01ms !important;
    }
}
