.ppw,
.ppw-widget {
    --ppw-accent: #4A3938;
    --ppw-bg: #FFFFFF;
    --ppw-soft: #F7F4F2;
    --ppw-line: #E4DEDB;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--ppw-bg);
    border: 0 solid var(--ppw-line);
    border-radius: 0;
    color: #2f2827;
    font-family: inherit;
}

.ppw *,
.ppw *::before,
.ppw *::after,
.ppw-widget,
.ppw-widget *,
.ppw-widget *::before,
.ppw-widget *::after {
    box-sizing: border-box;
}

.ppw-widget {
    min-width: 0;
}

.ppw-widget [hidden],
.ppw-widget .ppw-is-hidden {
    display: none !important;
}

.ppw-head {
    margin-bottom: 24px;
}

.ppw-heading {
    margin: 0 0 10px;
    color: var(--ppw-accent);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: 0;
}

.ppw-subtitle {
    max-width: 760px;
    margin: 0;
    color: #5f5553;
    font-size: 16px;
    line-height: 1.55;
}

.ppw-search {
    display: block;
    margin: 0 0 18px;
}

.ppw-search-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--ppw-line);
    border-radius: 0;
    background: var(--ppw-soft);
    color: #2f2827;
    font: inherit;
    outline: none;
}

.ppw-search-input:focus {
    border-color: var(--ppw-accent);
    background: #fff;
}

.ppw-search-highlight {
    background: rgba(74,57,56,.12);
    color: inherit;
    padding: 0 .12em;
    border-radius: 0;
}

.ppw-widget .ppw-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.ppw-widget .ppw-cat-nav .ppw-cat-button {
    appearance: none;
    border: 1px solid var(--ppw-category-border-color, #E4DEDB);
    border-radius: 0;
    background: var(--ppw-category-bg, #fff);
    color: var(--ppw-category-text-color, #4A3938);
    padding: 9px 13px;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.ppw-widget .ppw-cat-nav .ppw-cat-button:hover {
    border-color: var(--ppw-category-hover-border-color, #4A3938);
    background: var(--ppw-category-hover-bg, rgba(74,57,56,.08));
    color: var(--ppw-category-hover-text-color, #4A3938);
}

.ppw-widget .ppw-cat-nav .ppw-cat-button.ppw-is-active,
.ppw-widget .ppw-cat-nav .ppw-cat-button.is-active,
.ppw-widget .ppw-cat-nav .ppw-cat-button[aria-selected="true"],
.ppw-widget .ppw-cat-nav .ppw-cat-button[aria-current="true"] {
    border-color: var(--ppw-category-active-border-color, #4A3938);
    background: var(--ppw-category-active-bg, #4A3938);
    color: var(--ppw-category-active-text-color, #fff);
}

.ppw-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ppw-section {
    min-width: 0;
    border: 1px solid var(--ppw-line);
    background: #fff;
    overflow: hidden;
}

.ppw-section[hidden],
.ppw-row[hidden],
.ppw-subsection[hidden],
.ppw-accordion-panel[hidden] {
    display: none !important;
}

.ppw-section-title {
    appearance: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--ppw-line);
    border-radius: 0;
    background: var(--ppw-soft);
    color: var(--ppw-accent);
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.ppw-section-title i {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.ppw-section-title i::before,
.ppw-section-title i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ppw-accent);
    transform: translateY(-50%);
}

.ppw-section-title i::after {
    transform: translateY(-50%) rotate(90deg);
    transition: opacity .18s ease;
}

.ppw-section-title[aria-expanded="true"] i::after {
    opacity: 0;
}

.ppw-category-description {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid var(--ppw-line);
    color: #6f6663;
}

.ppw-items {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
}

.ppw-subsection {
    display: grid;
    grid-template-columns: 1fr;
}

.ppw-subsection-title {
    margin: 0;
    padding: 13px 18px;
    border-bottom: 1px solid var(--ppw-line);
    background: #fff;
    color: var(--ppw-accent);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.ppw-layout-accordion .ppw-section:not(.ppw-is-open) .ppw-items,
.ppw-layout-accordion .ppw-section:not(.ppw-is-open) .ppw-category-description {
    display: none;
}

.ppw-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    min-width: 0;
    gap: 18px;
    padding: 15px 18px;
    border: 0 solid var(--ppw-line);
    border-bottom-width: 1px;
    background: #fff;
    transition: background .18s ease;
}

.ppw-row:last-child {
    border-bottom-width: 0;
}

.ppw-row:hover {
    background: var(--ppw-soft);
}

.ppw-row-note {
    grid-template-columns: 1fr;
    align-items: start;
    background: #FBF9F7;
}

.ppw-row-note .ppw-title {
    color: var(--ppw-accent);
}

.ppw-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px 10px;
    min-width: 0;
}

.ppw-title {
    min-width: 0;
    color: #2f2827;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ppw-note {
    flex-basis: 100%;
    min-width: 0;
    color: #6f6663;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ppw-code {
    color: #7a706d;
    font-size: 13px;
    line-height: 1.4;
}

.ppw-price {
    justify-self: end;
    color: var(--ppw-accent);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-align: right;
}

.ppw-price small {
    display: block;
    margin-top: 3px;
    color: #7a706d;
    font-size: 12px;
    font-weight: 400;
}

.ppw-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 0;
    background: var(--ppw-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.ppw-source-label {
    display: inline-flex;
    margin-left: 8px;
    color: #6f6663;
    font-size: 12px;
    line-height: 1.3;
}

.ppw-notice,
.ppw-empty {
    margin: 20px 0 0;
    color: #6f6663;
    font-size: 14px;
    line-height: 1.5;
}

.ppw-widget .ppw-no-results {
    margin: 0;
    padding: 24px;
    border: 1px solid #E4DEDB;
    border-radius: 0;
    background: #FBF9F7;
    color: #817875;
}

.ppw-layout-compact_table .ppw-section {
    border: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ppw-layout-compact_table .ppw-section-title {
    border: 1px solid var(--ppw-line);
}

.ppw-layout-compact_table .ppw-row {
    padding-top: 10px;
    padding-bottom: 10px;
}

.ppw-layout-cards .ppw-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.ppw-layout-cards .ppw-row {
    grid-template-columns: 1fr;
    align-items: start;
    border: 1px solid var(--ppw-line);
}

.ppw-layout-cards .ppw-price {
    justify-self: start;
    text-align: left;
}

@media (max-width: 767px) {
    .ppw-heading {
        font-size: 28px;
    }

    .ppw-widget .ppw-cat-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .ppw-widget .ppw-cat-nav .ppw-cat-button {
        flex: 0 0 auto;
    }

    .ppw-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .ppw-price {
        justify-self: start;
        text-align: left;
        white-space: normal;
    }

    .ppw-layout-cards .ppw-items {
        grid-template-columns: 1fr;
    }

    .ppw-mobile-hide-notes-yes .ppw-note {
        display: none;
    }
}

/* Document conditions stay outside service rows and remain readable on mobile. */
.ppw-widget .ppw-document-intro,
.ppw-widget .ppw-document-notes { margin: 18px 0; line-height: 1.6; overflow-wrap: anywhere; }
.ppw-widget .ppw-document-notes { padding: 18px; background: var(--ppw-soft); border: 1px solid var(--ppw-line); }
.ppw-widget .ppw-document-notes table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.ppw-widget .ppw-document-notes th,
.ppw-widget .ppw-document-notes td { padding: 10px; border: 1px solid var(--ppw-line); vertical-align: top; text-align: left; white-space: normal; }
.ppw-widget .ppw-document-notes th:first-child { width: 65%; }
.ppw-widget .ppw-subsection .ppw-subsection .ppw-subsection-title { padding-left: 28px; }
@media (max-width: 767px) {
 .ppw-widget .ppw-document-notes { padding: 12px; }
 .ppw-widget .ppw-document-notes th, .ppw-widget .ppw-document-notes td { padding: 7px; }
 .ppw-widget .ppw-cat-nav { flex-wrap: wrap; overflow-x: visible; }
 .ppw-widget .ppw-cat-nav .ppw-cat-button { flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; white-space: normal; text-align: left; }
}
