/*
 * PortugalOnline.com Package Document
 * Clean document stylesheet.
 *
 * Upload destination:
 * /wp-content/themes/portugal/css/print/package_document.css
 *
 * Purpose:
 * - Separators belong between major document sections only.
 * - Headings inside content, notes, policies, hotels and feature boxes are titles only.
 * - Keeps the embedded Portugal Online Travel logo layout.
 */

@page {
    size: Letter portrait;
    margin: 0.58in 0.55in 0.62in;

    @top-left {
        content: "PortugalOnline.com";
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #555;
    }

    @top-right {
        content: "Package document";
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #555;
    }

    @bottom-left {
        content: "https://portugalonline.com";
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #666;
        border-top: 0.5pt solid #b7c0cc;
        padding-top: 0.08in;
    }

    @bottom-right {
        content: "Page " counter(page);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #666;
        border-top: 0.5pt solid #b7c0cc;
        padding-top: 0.08in;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #eef1f5;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.az-package-document {
    min-height: 100vh;
}

a {
    color: #3d4fd0;
}

.az-doc-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 900px;
    margin: 24px auto 0;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(34, 49, 75, 0.08);
}

.az-doc-brand,
.az-doc-brand.az-doc-brand-portugal {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    min-width: 0;
}

.az-doc-logo,
.az-doc-logo.az-doc-logo-portugal {
    display: block !important;
    width: 178px !important;
    max-width: 178px !important;
    height: auto !important;
    margin: 0 !important;
}

.az-doc-brand-copy {
    min-width: 0;
}

.az-doc-kicker {
    margin: 0;
    color: #1f3150;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.az-doc-subtitle {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: 13px;
}

.az-doc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.az-doc-actions button,
.az-doc-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #536f9b;
    border-radius: 4px;
    background: #6f89b1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.az-doc-actions a {
    background: #fff;
    color: #536f9b;
}

.az-doc-page {
    max-width: 900px;
    margin: 20px auto 36px;
    padding: 34px 42px 40px;
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(34, 49, 75, 0.08);
}

.az-doc-cover {
    padding-bottom: 26px;
    border-bottom: 1px solid #d8dee8;
}

.az-doc-label {
    margin: 0 0 8px;
    color: #6f7fc8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.az-doc-cover h1 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #000;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.az-doc-lead {
    margin-top: 18px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.55;
}

.az-doc-reference-note,
.az-doc-hotel-disclaimer {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-left: 4px solid #6f89b1;
    background: #f3f7fc;
    color: #34465d;
    font-size: 13px;
    line-height: 1.45;
}

.az-doc-reference-note p,
.az-doc-hotel-disclaimer p {
    margin: 0 0 8px;
}

.az-doc-reference-note p:last-child,
.az-doc-hotel-disclaimer p:last-child,
.az-doc-lead p:last-child,
.az-doc-content p:last-child {
    margin-bottom: 0;
}

/* Major document section separators.
   The line sits ABOVE the section, not under the title. */
.az-doc-page > .az-doc-section {
    clear: both;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #d8dee8;
}

.az-doc-page > .az-doc-cover + .az-doc-section {
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
}

/* Major section titles: no underline, no pseudo separators. */
.az-doc-page > .az-doc-section > h2 {
    clear: both;
    display: block;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.18;
    text-decoration: none;
}

.az-doc-page > .az-doc-section > h2::before,
.az-doc-page > .az-doc-section > h2::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    background: transparent !important;
}

/* Content headings: titles only, never separators.
   This is the key cleanup for Important Notes, itinerary subheads and policies. */
.az-doc-section .az-doc-content h1,
.az-doc-section .az-doc-content h2,
.az-doc-section .az-doc-content h3,
.az-doc-section .az-doc-content h4,
.az-doc-feature-note h2,
.az-doc-feature-note h3,
.az-doc-feature-note h4,
.az-doc-feature-list h2,
.az-doc-feature-list h3,
.az-doc-feature-list h4,
.az-doc-feature-side h2,
.az-doc-feature-side h3,
.az-doc-feature-side h4,
.az-doc-feature-side-section h2,
.az-doc-feature-side-section h3,
.az-doc-feature-side-section h4,
.az-doc-policies .az-doc-policy-alert-card h2,
.az-doc-policies .az-doc-policy-alert-card h3,
.az-doc-policies .az-doc-policy-alert-card h4 {
    clear: none !important;
    display: block !important;
    float: none !important;
    margin: 18px 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
    color: #4f65b6 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.az-doc-section .az-doc-content h1:first-child,
.az-doc-section .az-doc-content h2:first-child,
.az-doc-section .az-doc-content h3:first-child,
.az-doc-section .az-doc-content h4:first-child,
.az-doc-feature-note h2:first-child,
.az-doc-feature-note h3:first-child,
.az-doc-feature-note h4:first-child,
.az-doc-feature-list h2:first-child,
.az-doc-feature-list h3:first-child,
.az-doc-feature-list h4:first-child,
.az-doc-feature-side h2:first-child,
.az-doc-feature-side h3:first-child,
.az-doc-feature-side h4:first-child,
.az-doc-feature-side-section h2:first-child,
.az-doc-feature-side-section h3:first-child,
.az-doc-feature-side-section h4:first-child,
.az-doc-policies .az-doc-policy-alert-card h2:first-child,
.az-doc-policies .az-doc-policy-alert-card h3:first-child,
.az-doc-policies .az-doc-policy-alert-card h4:first-child {
    margin-top: 0 !important;
}

.az-doc-section .az-doc-content h1::before,
.az-doc-section .az-doc-content h1::after,
.az-doc-section .az-doc-content h2::before,
.az-doc-section .az-doc-content h2::after,
.az-doc-section .az-doc-content h3::before,
.az-doc-section .az-doc-content h3::after,
.az-doc-section .az-doc-content h4::before,
.az-doc-section .az-doc-content h4::after,
.az-doc-feature-note h2::before,
.az-doc-feature-note h2::after,
.az-doc-feature-note h3::before,
.az-doc-feature-note h3::after,
.az-doc-feature-note h4::before,
.az-doc-feature-note h4::after,
.az-doc-feature-list h2::before,
.az-doc-feature-list h2::after,
.az-doc-feature-list h3::before,
.az-doc-feature-list h3::after,
.az-doc-feature-list h4::before,
.az-doc-feature-list h4::after,
.az-doc-feature-side h2::before,
.az-doc-feature-side h2::after,
.az-doc-feature-side h3::before,
.az-doc-feature-side h3::after,
.az-doc-feature-side h4::before,
.az-doc-feature-side h4::after,
.az-doc-policies .az-doc-policy-alert-card h2::before,
.az-doc-policies .az-doc-policy-alert-card h2::after,
.az-doc-policies .az-doc-policy-alert-card h3::before,
.az-doc-policies .az-doc-policy-alert-card h3::after,
.az-doc-policies .az-doc-policy-alert-card h4::before,
.az-doc-policies .az-doc-policy-alert-card h4::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    background: transparent !important;
}

.az-doc-section .az-doc-content h1 strong,
.az-doc-section .az-doc-content h2 strong,
.az-doc-section .az-doc-content h3 strong,
.az-doc-section .az-doc-content h4 strong,
.az-doc-feature-note h2 strong,
.az-doc-feature-note h3 strong,
.az-doc-feature-note h4 strong,
.az-doc-feature-list h2 strong,
.az-doc-feature-list h3 strong,
.az-doc-feature-list h4 strong,
.az-doc-feature-side h2 strong,
.az-doc-feature-side h3 strong,
.az-doc-feature-side h4 strong,
.az-doc-feature-side-section h2 strong,
.az-doc-feature-side-section h3 strong,
.az-doc-feature-side-section h4 strong,
.az-doc-policies .az-doc-policy-alert-card h2 strong,
.az-doc-policies .az-doc-policy-alert-card h3 strong,
.az-doc-policies .az-doc-policy-alert-card h4 strong {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

.az-doc-content p,
.az-doc-content li {
    color: #111827;
    font-size: 15px;
    line-height: 1.58;
}

.az-doc-content p {
    margin: 0 0 14px;
}

.az-doc-content ul,
.az-doc-content ol {
    margin: 0 0 18px 22px;
    padding: 0;
}

.az-doc-content li {
    margin: 0 0 7px;
}

.az-doc-content,
.az-doc-content * {
    max-width: 100%;
}

.az-doc-content img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.az-doc-content figure,
.az-doc-content .wp-caption,
.az-doc-content .aligncenter,
.az-doc-content .alignleft,
.az-doc-content .alignright,
.az-doc-content .size-full {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.az-doc-muted {
    color: #667085;
    font-style: italic;
}

.az-doc-screen-footer {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #667085;
    font-size: 13px;
    text-align: center;
}

.az-package-document-error .az-doc-page {
    max-width: 680px;
}

/* Itinerary at a Glance cards. */
.az-doc-at-a-glance .az-doc-content {
    padding: 18px 20px;
    background: #f7f9fc;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
}

.az-doc-at-a-glance ol {
    counter-reset: az-doc-glance-counter;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.az-doc-at-a-glance ol > li {
    position: relative;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px 10px 46px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.35;
    list-style: none;
}

.az-doc-at-a-glance ol > li::before {
    counter-increment: az-doc-glance-counter;
    content: counter(az-doc-glance-counter);
    position: absolute;
    left: 12px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6f89b1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Day-by-day details. */
.az-doc-day-by-day details {
    display: block;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    background: #fff;
}

.az-doc-day-by-day summary {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: #536f9b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    cursor: default;
}

.az-doc-day-by-day summary::-webkit-details-marker,
.az-doc-day-by-day details > summary::before {
    display: none;
    content: none !important;
}

.az-doc-day-by-day .hiking-day-content,
.az-doc-day-by-day .day-content,
.az-doc-day-by-day details[open] > * {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
}

/* What's included layout. */
.az-doc-included .az-doc-content {
    padding: 0;
    border: 0;
    background: transparent;
}

.az-doc-features-layout {
    display: block;
}

.az-doc-feature-note {
    margin: 0 0 26px;
    padding: 16px 20px;
    border-left: 4px solid #6f7fc8;
    background: #f3f5fb;
}

.az-doc-feature-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.az-doc-feature-primary {
    min-width: 0;
}

.az-doc-feature-list {
    margin: 0 0 26px;
}

.az-doc-feature-side {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #d9deea;
    border-left: 4px solid #6f7fc8;
    border-radius: 4px;
    background: #f3f5fb;
}

.az-doc-feature-side-section {
    margin: 0 0 22px;
}

.az-doc-feature-side-section:last-child,
.az-doc-feature-list:last-child {
    margin-bottom: 0;
}

.az-doc-feature-note ul,
.az-doc-feature-list ul,
.az-doc-feature-side ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.az-doc-feature-note li,
.az-doc-feature-list li,
.az-doc-feature-side li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 22px;
    color: #111827;
    font-size: 14px;
    line-height: 1.48;
    list-style: none;
}

.az-doc-feature-note li::before,
.az-doc-feature-side li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #111827;
}

.az-doc-feature-included li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f6f46;
    font-weight: 700;
}

.az-doc-feature-not-included li::before {
    content: "×";
    position: absolute;
    left: 0;
    top: 0;
    color: #a13b24;
    font-weight: 700;
}

.az-doc-feature-side p,
.az-doc-feature-list p,
.az-doc-feature-note p {
    margin: 0 0 10px;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

/* Hotels. */
.az-doc-hotels .az-doc-content {
    padding: 0;
    border: 0;
    background: transparent;
}

.az-doc-hotel-disclaimer {
    margin: 0 0 18px;
}

.az-doc-hotel-group {
    margin: 0 0 24px;
}

.az-doc-hotel-group h3 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #536f9b !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.az-doc-hotel-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    background: #f8fafc;
}

.az-doc-hotel-media {
    min-width: 0;
}

.az-doc-hotel-image {
    display: block;
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    border-radius: 4px;
}

.az-doc-hotel-copy {
    min-width: 0;
}

.az-doc-hotel-copy h4 {
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #111827 !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
}

.az-doc-hotel-location {
    margin: 0 0 8px;
    color: #5b6574;
    font-size: 13px;
    font-weight: 700;
}

.az-doc-hotel-description p {
    margin: 0 0 8px;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

/* Booking & Policies. */
.az-doc-policies .az-doc-content {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.az-doc-policies p,
.az-doc-policies li {
    font-size: 14px;
}

.az-doc-policies .az-doc-policy-alert-card {
    margin: 24px 0 0;
    padding: 18px 20px;
    border-left: 4px solid #b65a37;
    border-radius: 4px;
    background: #fbf5f2;
}

.az-doc-policies .az-doc-policy-alert-card ul,
.az-doc-policies .az-doc-policy-alert-card ol {
    margin-bottom: 0;
}

.az-doc-policies .az-doc-policy-alert-card li::marker {
    color: #b65a37;
}

/* Screen responsive rules. */
@media screen and (max-width: 760px) {
    .az-doc-site-header {
        align-items: flex-start;
        flex-direction: column;
        margin: 12px;
        padding: 18px;
    }

    .az-doc-actions {
        width: 100%;
    }

    .az-doc-actions button,
    .az-doc-actions a {
        flex: 1 1 auto;
    }

    .az-doc-page {
        margin: 12px;
        padding: 24px 18px 28px;
    }

    .az-doc-cover h1 {
        font-size: 28px;
    }

    .az-doc-feature-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .az-doc-at-a-glance ol {
        grid-template-columns: 1fr;
    }

    .az-doc-hotel-card {
        grid-template-columns: 1fr;
    }
}

/* Print / Save PDF rules. */
@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html,
    body.az-package-document {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
        font-size: 10.5pt !important;
        line-height: 1.36 !important;
    }

    .az-doc-site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: none !important;
        margin: 0 0 14pt !important;
        padding: 0 0 8pt !important;
        border: 0 !important;
        border-bottom: 1pt solid #9aa8b8 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

    .az-doc-brand.az-doc-brand-portugal {
        gap: 14pt !important;
    }

    .az-doc-logo.az-doc-logo-portugal,
    .az-doc-logo {
        width: 1.45in !important;
        max-width: 1.45in !important;
    }

    .az-doc-kicker {
        font-size: 13pt !important;
        line-height: 1.15 !important;
    }

    .az-doc-subtitle {
        font-size: 8.5pt !important;
    }

    .az-doc-actions,
    .az-doc-screen-footer {
        display: none !important;
    }

    .az-doc-page {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .az-doc-cover {
        padding-bottom: 14pt !important;
        border-bottom: 0.75pt solid #cfd8e5 !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .az-doc-cover h1 {
        font-size: 24pt !important;
        line-height: 1.14 !important;
    }

    .az-doc-label {
        font-size: 9pt !important;
    }

    .az-doc-lead {
        font-size: 10.5pt !important;
        line-height: 1.35 !important;
    }

    .az-doc-reference-note,
    .az-doc-hotel-disclaimer {
        margin-top: 10pt !important;
        padding: 7pt 9pt !important;
        border-left-width: 3pt !important;
        font-size: 8.5pt !important;
        line-height: 1.32 !important;
    }

    .az-doc-page > .az-doc-section {
        margin-top: 16pt !important;
        padding-top: 12pt !important;
        border-top: 0.75pt solid #cfd8e5 !important;
        overflow: visible !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .az-doc-page > .az-doc-cover + .az-doc-section {
        margin-top: 14pt !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    .az-doc-page > .az-doc-section > h2 {
        margin: 0 0 8pt !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #000 !important;
        font-size: 15.5pt !important;
        font-weight: 800 !important;
        line-height: 1.18 !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .az-doc-section .az-doc-content h1,
    .az-doc-section .az-doc-content h2,
    .az-doc-section .az-doc-content h3,
    .az-doc-section .az-doc-content h4,
    .az-doc-feature-note h2,
    .az-doc-feature-note h3,
    .az-doc-feature-note h4,
    .az-doc-feature-list h2,
    .az-doc-feature-list h3,
    .az-doc-feature-list h4,
    .az-doc-feature-side h2,
    .az-doc-feature-side h3,
    .az-doc-feature-side h4,
    .az-doc-feature-side-section h2,
    .az-doc-feature-side-section h3,
    .az-doc-feature-side-section h4,
    .az-doc-policies .az-doc-policy-alert-card h2,
    .az-doc-policies .az-doc-policy-alert-card h3,
    .az-doc-policies .az-doc-policy-alert-card h4 {
        margin: 9pt 0 4pt !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #4f65b6 !important;
        font-size: 10.5pt !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .az-doc-section .az-doc-content h1:first-child,
    .az-doc-section .az-doc-content h2:first-child,
    .az-doc-section .az-doc-content h3:first-child,
    .az-doc-section .az-doc-content h4:first-child,
    .az-doc-feature-note h2:first-child,
    .az-doc-feature-note h3:first-child,
    .az-doc-feature-note h4:first-child,
    .az-doc-feature-list h2:first-child,
    .az-doc-feature-list h3:first-child,
    .az-doc-feature-list h4:first-child,
    .az-doc-feature-side h2:first-child,
    .az-doc-feature-side h3:first-child,
    .az-doc-feature-side h4:first-child,
    .az-doc-feature-side-section h2:first-child,
    .az-doc-feature-side-section h3:first-child,
    .az-doc-feature-side-section h4:first-child,
    .az-doc-policies .az-doc-policy-alert-card h2:first-child,
    .az-doc-policies .az-doc-policy-alert-card h3:first-child,
    .az-doc-policies .az-doc-policy-alert-card h4:first-child {
        margin-top: 0 !important;
    }

    .az-doc-content p,
    .az-doc-content li {
        font-size: 9.5pt !important;
        line-height: 1.36 !important;
        orphans: 3;
        widows: 3;
    }

    .az-doc-content p {
        margin-bottom: 7pt !important;
    }

    .az-doc-content ul,
    .az-doc-content ol {
        margin-bottom: 9pt !important;
    }

    .az-doc-content img,
    .az-doc-content figure,
    .az-doc-content .wp-caption,
    .az-doc-content table {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    a[href]::after {
        content: none !important;
    }

    .az-doc-at-a-glance .az-doc-content {
        padding: 8pt 9pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

    .az-doc-at-a-glance ol {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5pt 7pt !important;
        margin: 7pt 0 0 !important;
    }

    .az-doc-at-a-glance ol > li {
        min-height: 26pt !important;
        padding: 6pt 7pt 6pt 28pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        background: #fff !important;
        font-size: 8.5pt !important;
        line-height: 1.25 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-at-a-glance ol > li::before {
        left: 7pt !important;
        top: 6pt !important;
        width: 16pt !important;
        height: 16pt !important;
        font-size: 8pt !important;
    }

    .az-doc-day-by-day details {
        margin-bottom: 7pt !important;
        padding: 7pt 8pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-day-by-day summary {
        margin-bottom: 4pt !important;
        font-size: 10.5pt !important;
        line-height: 1.25 !important;
    }

    .az-doc-feature-note {
        margin-bottom: 12pt !important;
        padding: 8pt 9pt !important;
        border-left-width: 3pt !important;
        background: #f3f5fb !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-feature-columns {
        grid-template-columns: minmax(0, 1fr) 2.15in !important;
        gap: 15pt !important;
    }

    .az-doc-feature-list {
        margin-bottom: 11pt !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .az-doc-feature-side {
        padding: 8pt 9pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-left: 3pt solid #6f7fc8 !important;
        border-radius: 0 !important;
        background: #f7f8fc !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-feature-note li,
    .az-doc-feature-list li,
    .az-doc-feature-side li,
    .az-doc-feature-side p,
    .az-doc-feature-list p,
    .az-doc-feature-note p {
        margin-bottom: 4pt !important;
        font-size: 8.5pt !important;
        line-height: 1.28 !important;
    }

    .az-doc-hotel-disclaimer {
        margin-bottom: 8pt !important;
    }

    .az-doc-hotel-group {
        margin-bottom: 11pt !important;
    }

    .az-doc-hotel-group h3 {
        margin-bottom: 6pt !important;
        font-size: 11pt !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .az-doc-hotel-card {
        grid-template-columns: 1.25in minmax(0, 1fr) !important;
        gap: 8pt !important;
        margin-bottom: 7pt !important;
        padding: 7pt 8pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        background: #fff !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-hotel-image {
        max-width: 1.25in !important;
        border-radius: 0 !important;
    }

    .az-doc-hotel-copy h4 {
        margin-bottom: 2pt !important;
        font-size: 10.5pt !important;
        line-height: 1.2 !important;
    }

    .az-doc-hotel-location,
    .az-doc-hotel-description p {
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
    }

    .az-doc-policies .az-doc-content {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .az-doc-policies p,
    .az-doc-policies li {
        font-size: 9pt !important;
        line-height: 1.35 !important;
    }

    .az-doc-policies .az-doc-policy-alert-card {
        margin-top: 12pt !important;
        padding: 8pt 10pt !important;
        border-left: 3pt solid #b65a37 !important;
        border-radius: 0 !important;
        background: #fbf5f2 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }
}


/* PORTUGALONLINE DOCUMENT — EMBEDDED BLUE BOX NOTE
   The PHP now extracts .hiking-packing-box snippets and renders them as
   .az-doc-feature-side so the document uses the right-side blue column.
 */

/* ================================================================
   PORTUGALONLINE DOCUMENT — FEATURES NOTE AND SIDE BOX FINAL
   Added 2026-09-11.
   Print/document view only.
   - Please note card remains full width above the columns.
   - Included / Not included stays in the left column.
   - Supporting blue box stays in the right column on desktop/document view.
   - Blue box uses bullets, not green checks, and has no dark left rail.
   ================================================================ */

.az-doc-included .az-doc-feature-note {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 26px !important;
    padding: 16px 20px !important;
    background: #fbf5f2 !important;
    border: 0 !important;
    border-left: 4px solid #b65a37 !important;
    border-radius: 0 !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
}

.az-doc-included .az-doc-feature-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 34%) !important;
    gap: 30px !important;
    align-items: start !important;
    width: 100% !important;
}

.az-doc-included .az-doc-feature-primary {
    min-width: 0 !important;
}

.az-doc-included .az-doc-feature-side {
    display: block !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #f3f7fd !important;
    border: 1px solid #d6e2f1 !important;
    border-left: 1px solid #d6e2f1 !important;
    border-radius: 6px !important;
    color: #34465d !important;
    box-sizing: border-box !important;
}

/* Safety fallback if a raw .hiking-packing-box wrapper ever reaches the
   document view instead of being converted by PHP. */
.az-doc-included .hiking-packing-box {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #f3f7fd !important;
    border: 1px solid #d6e2f1 !important;
    border-left: 1px solid #d6e2f1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

.az-doc-included .az-doc-feature-side h2,
.az-doc-included .az-doc-feature-side h3,
.az-doc-included .az-doc-feature-side h4,
.az-doc-included .hiking-packing-box h2,
.az-doc-included .hiking-packing-box h3,
.az-doc-included .hiking-packing-box h4 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #4f65d8 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.az-doc-included .az-doc-feature-side h2:not(:first-child),
.az-doc-included .az-doc-feature-side h3:not(:first-child),
.az-doc-included .az-doc-feature-side h4:not(:first-child),
.az-doc-included .hiking-packing-box h2:not(:first-child),
.az-doc-included .hiking-packing-box h3:not(:first-child),
.az-doc-included .hiking-packing-box h4:not(:first-child) {
    margin-top: 20px !important;
}

/* Blue support box bullets: override any inherited green-check list rules. */
.az-doc-included .az-doc-feature-side ul,
.az-doc-included .az-doc-feature-side ol,
.az-doc-included .hiking-packing-box ul,
.az-doc-included .hiking-packing-box ol {
    margin: 6px 0 16px !important;
    padding-left: 20px !important;
    list-style-position: outside !important;
}

.az-doc-included .az-doc-feature-side ul,
.az-doc-included .hiking-packing-box ul {
    list-style-type: disc !important;
}

.az-doc-included .az-doc-feature-side ol,
.az-doc-included .hiking-packing-box ol {
    list-style-type: decimal !important;
}

.az-doc-included .az-doc-feature-side li,
.az-doc-included .hiking-packing-box li {
    position: static !important;
    margin: 0 0 6px !important;
    padding-left: 0 !important;
    color: #34465d !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    list-style: inherit !important;
}

.az-doc-included .az-doc-feature-side li::before,
.az-doc-included .hiking-packing-box li::before {
    display: none !important;
    content: none !important;
}

.az-doc-included .az-doc-feature-side p,
.az-doc-included .hiking-packing-box p {
    margin: 0 0 10px !important;
    color: #34465d !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* Keep two columns in normal desktop document view. Collapse only on truly
   narrow phone screens, not on the desktop printable document page. */
@media screen and (max-width: 560px) {
    .az-doc-included .az-doc-feature-columns {
        display: block !important;
    }

    .az-doc-included .az-doc-feature-side,
    .az-doc-included .hiking-packing-box {
        margin-top: 20px !important;
    }
}

@media print {
    .az-doc-included .az-doc-feature-note {
        margin: 0 0 12pt !important;
        padding: 8pt 9pt !important;
        border: 0 !important;
        border-left: 3pt solid #b65a37 !important;
        background: #fbf5f2 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-included .az-doc-feature-columns {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 2.35in !important;
        gap: 14pt !important;
        align-items: start !important;
    }

    .az-doc-included .az-doc-feature-side,
    .az-doc-included .hiking-packing-box {
        margin: 0 !important;
        padding: 8pt 9pt !important;
        background: #f3f7fd !important;
        border: 0.75pt solid #d6e2f1 !important;
        border-left: 0.75pt solid #d6e2f1 !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-included .az-doc-feature-side h2,
    .az-doc-included .az-doc-feature-side h3,
    .az-doc-included .az-doc-feature-side h4,
    .az-doc-included .hiking-packing-box h2,
    .az-doc-included .hiking-packing-box h3,
    .az-doc-included .hiking-packing-box h4 {
        margin: 0 0 4pt !important;
        font-size: 10pt !important;
        line-height: 1.22 !important;
    }

    .az-doc-included .az-doc-feature-side h2:not(:first-child),
    .az-doc-included .az-doc-feature-side h3:not(:first-child),
    .az-doc-included .az-doc-feature-side h4:not(:first-child),
    .az-doc-included .hiking-packing-box h2:not(:first-child),
    .az-doc-included .hiking-packing-box h3:not(:first-child),
    .az-doc-included .hiking-packing-box h4:not(:first-child) {
        margin-top: 8pt !important;
    }

    .az-doc-included .az-doc-feature-side ul,
    .az-doc-included .az-doc-feature-side ol,
    .az-doc-included .hiking-packing-box ul,
    .az-doc-included .hiking-packing-box ol {
        margin: 3pt 0 7pt !important;
        padding-left: 12pt !important;
    }

    .az-doc-included .az-doc-feature-side li,
    .az-doc-included .hiking-packing-box li,
    .az-doc-included .az-doc-feature-side p,
    .az-doc-included .hiking-packing-box p {
        font-size: 8.5pt !important;
        line-height: 1.28 !important;
    }
}

/* ================================================================
   PORTUGALONLINE DOCUMENT — FORCE FEATURES TWO COLUMN LAYOUT
   Added 2026-09-11.
   Final document-view correction.
   The PHP already outputs:
   .az-doc-feature-columns
      .az-doc-feature-primary
      aside.az-doc-feature-side
   Force that structure to remain two columns so the blue support box
   sits to the right of Included / Not included, not underneath.
   ================================================================ */

.az-doc-included .az-doc-feature-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
}

.az-doc-included .az-doc-feature-primary {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

.az-doc-included aside.az-doc-feature-side,
.az-doc-included .az-doc-feature-side {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    position: static !important;
    float: none !important;
    clear: none !important;
    display: block !important;
    width: 300px !important;
    min-width: 0 !important;
    max-width: 300px !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #f3f7fd !important;
    border: 1px solid #d6e2f1 !important;
    border-left: 1px solid #d6e2f1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

/* The Please note card remains full width above the two columns. */
.az-doc-included .az-doc-feature-note {
    display: block !important;
    width: 100% !important;
    margin: 0 0 26px !important;
    padding: 16px 20px !important;
    background: #fbf5f2 !important;
    border: 0 !important;
    border-left: 4px solid #b65a37 !important;
    border-radius: 0 !important;
}

/* Blue box uses bullets, never inherited green checks. */
.az-doc-included .az-doc-feature-side ul,
.az-doc-included .az-doc-feature-side ol {
    margin: 6px 0 16px !important;
    padding-left: 20px !important;
    list-style-position: outside !important;
}

.az-doc-included .az-doc-feature-side ul {
    list-style-type: disc !important;
}

.az-doc-included .az-doc-feature-side ol {
    list-style-type: decimal !important;
}

.az-doc-included .az-doc-feature-side li {
    position: static !important;
    margin: 0 0 6px !important;
    padding-left: 0 !important;
    color: #34465d !important;
    list-style: inherit !important;
}

.az-doc-included .az-doc-feature-side li::before {
    display: none !important;
    content: none !important;
}

/* Override earlier responsive rules that collapsed this document layout. */
@media screen and (max-width: 900px) {
    .az-doc-included .az-doc-feature-columns {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 28px !important;
    }

    .az-doc-included aside.az-doc-feature-side,
    .az-doc-included .az-doc-feature-side {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 300px !important;
        max-width: 300px !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 680px) {
    .az-doc-included .az-doc-feature-columns {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 240px !important;
        gap: 18px !important;
    }

    .az-doc-included aside.az-doc-feature-side,
    .az-doc-included .az-doc-feature-side {
        width: 240px !important;
        max-width: 240px !important;
        padding: 14px 14px !important;
    }
}

@media print {
    .az-doc-included .az-doc-feature-columns {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 2.25in !important;
        gap: 14pt !important;
        align-items: start !important;
        width: 100% !important;
    }

    .az-doc-included .az-doc-feature-primary {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .az-doc-included aside.az-doc-feature-side,
    .az-doc-included .az-doc-feature-side {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 2.25in !important;
        max-width: 2.25in !important;
        margin: 0 !important;
        padding: 8pt 9pt !important;
        background: #f3f7fd !important;
        border: 0.75pt solid #d6e2f1 !important;
        border-left: 0.75pt solid #d6e2f1 !important;
        border-radius: 0 !important;
    }

    .az-doc-included .az-doc-feature-note {
        margin: 0 0 12pt !important;
        padding: 8pt 9pt !important;
        border: 0 !important;
        border-left: 3pt solid #b65a37 !important;
        background: #fbf5f2 !important;
    }

    .az-doc-included .az-doc-feature-side ul,
    .az-doc-included .az-doc-feature-side ol {
        margin: 3pt 0 7pt !important;
        padding-left: 12pt !important;
        list-style-position: outside !important;
    }

    .az-doc-included .az-doc-feature-side ul {
        list-style-type: disc !important;
    }

    .az-doc-included .az-doc-feature-side li::before {
        display: none !important;
        content: none !important;
    }
}


/* ================================================================
   PORTUGAL PRINT R001 — GLOBUS / AVALON SUPPLIER CONTENT
   Added 2026-09-18.
   Keeps ordinary PortugalOnline package-document styling unchanged.
   ================================================================ */

/* Supplier-generated Included content uses its own list markup rather than the
   legacy Magic Fields heading parser. Keep it simple and document-friendly. */
.az-package-document-supplier .po-globus-included,
.az-package-document-supplier .po-avalon-included {
    margin: 0;
}

.az-package-document-supplier .po-globus-included-list,
.az-package-document-supplier .po-avalon-included__list {
    margin: 8px 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
}

.az-package-document-supplier .po-globus-included-list li,
.az-package-document-supplier .po-avalon-included__list li {
    position: relative;
    margin: 0 0 8px !important;
    padding: 0 0 0 24px !important;
    list-style: none !important;
}

.az-package-document-supplier .po-globus-included-list li::before,
.az-package-document-supplier .po-avalon-included__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f7b55;
    font-weight: 800;
}

.az-package-document-supplier .po-globus-meals,
.az-package-document-supplier .po-avalon-included__intro {
    margin: 0 0 14px !important;
    color: #4b5563;
}

/* Supplier day-by-day markup already arrives as details/summary. */
.az-package-document-supplier .po-globus-itinerary details {
    display: block;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    background: #fff;
}

.az-package-document-supplier .po-globus-itinerary summary {
    display: block;
    margin: 0 0 8px;
    color: #536f9b;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    cursor: default;
}

.az-package-document-supplier .po-globus-itinerary summary::-webkit-details-marker,
.az-package-document-supplier .po-globus-itinerary details > summary::before {
    display: none;
    content: none !important;
}

.az-package-document-supplier .po-globus-itinerary details[open] > * {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
}

.az-package-document-supplier .po-avalon-day-route {
    margin: 0 0 8px !important;
    color: #243c66;
    font-weight: 800;
}

.az-package-document-supplier .po-avalon-day-subtitle {
    margin: 0 0 10px !important;
    color: #5575d5;
    font-weight: 800;
}

.az-package-document-supplier .po-avalon-day-choice {
    margin: 12px 0 !important;
    padding: 12px 14px;
    border: 1px solid #dce3f2;
    border-left: 4px solid #5575d5;
    border-radius: 5px;
    background: #f8faff;
}

.az-package-document-supplier .po-avalon-day-choice__label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #5575d5;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.az-package-document-supplier .po-avalon-day-overnight,
.az-package-document-supplier .po-avalon-day-meals {
    margin-top: 10px !important;
    color: #4b5563;
}

/* Globus transportation block. */
.az-doc-transportation .az-doc-content {
    padding: 16px 18px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    background: #f8fafc;
}

/* Supplier hotel cards: neutralize the live carousel/float assumptions. */
.az-doc-supplier-hotels .po-globus-hotel-intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid #6f89b1;
    background: #f3f7fc;
}

.az-doc-supplier-hotels .package-hotels,
.az-doc-supplier-hotels .po-globus-hotels,
.az-doc-supplier-hotels .owl-carousel {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.az-doc-supplier-hotels .po-globus-hotel {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    padding: 16px 18px !important;
    border: 1px solid #dfe6f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    float: none !important;
    overflow: hidden !important;
}

.az-doc-supplier-hotels .po-globus-hotel-title {
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
}

.az-doc-supplier-hotels .po-globus-hotel-title .city-location {
    color: #536f9b;
}

.az-doc-supplier-hotels .po-globus-hotel-body {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.az-doc-supplier-hotels .po-globus-hotel-thumb {
    display: block !important;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    margin: 0 !important;
    float: none !important;
}

.az-doc-supplier-hotels .po-globus-hotel-thumb img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

.az-doc-supplier-hotels .po-globus-hotel-copy {
    min-width: 0;
}

.az-doc-supplier-hotels .po-globus-hotel-class,
.az-doc-supplier-hotels .po-globus-hotel-description p {
    margin: 0 0 8px !important;
}

/* Avalon ship/stateroom content. */
.az-doc-ship .po-avalon-ship {
    margin: 0;
}

.az-doc-ship .po-avalon-ship__intro > h3 {
    margin: 0 0 10px !important;
    color: #243c66 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.az-doc-ship .po-avalon-ship__description p {
    margin: 0 0 12px !important;
}

.az-doc-ship .po-avalon-ship__facts {
    margin: 18px 0 !important;
    padding: 11px 13px;
    border-left: 4px solid #5575d5;
    background: #eef3ff;
}

.az-doc-ship .po-avalon-stateroom-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 18px 0 !important;
}

.az-doc-ship .po-avalon-stateroom {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d8ddea !important;
    border-radius: 6px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.az-doc-ship .po-avalon-stateroom__image {
    display: block !important;
    width: 100% !important;
    height: 170px !important;
    overflow: hidden !important;
    border-bottom: 1px solid #e1e6ef;
    background: #fff;
}

.az-doc-ship .po-avalon-stateroom__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

.az-doc-ship .po-avalon-stateroom__body {
    padding: 12px 14px 14px !important;
}

.az-doc-ship .po-avalon-stateroom__body h4 {
    margin: 0 0 5px !important;
    color: #111827 !important;
    font-size: 16px !important;
}

.az-doc-ship .po-avalon-stateroom__body p {
    margin: 3px 0 !important;
}

.az-doc-ship .po-avalon-stateroom__layout,
.az-doc-ship .po-avalon-deck-plan {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
}

.az-doc-ship .po-avalon-ship-details {
    margin: 12px 0 0;
    padding: 0 14px;
    border: 1px solid #d8ddea;
    border-radius: 5px;
    background: #fff;
}

.az-doc-ship .po-avalon-ship-details summary {
    padding: 11px 0;
    color: #2f3748;
    font-weight: 800;
}

.az-doc-ship .po-avalon-ship-note {
    margin: 14px 0 0 !important;
    color: #697386;
}

/* Booking-condition snippets on the normal package page carry an embedded
   <style> block. The PHP now removes that block completely; these document
   rules reproduce the useful presentation for both Globus and Avalon. */
.az-doc-policies .pol-globus-booking-conditions,
.az-doc-policies .pol-avalon-booking-conditions {
    max-width: none;
    margin: 0;
    color: #333;
    line-height: 1.55;
}

.az-doc-policies .pol-globus-booking-conditions h2,
.az-doc-policies .pol-avalon-booking-conditions h2 {
    margin: 24px 0 9px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #12679b !important;
    font-size: 19px !important;
    line-height: 1.3 !important;
}

.az-doc-policies .pol-globus-booking-conditions p,
.az-doc-policies .pol-avalon-booking-conditions p {
    margin: 0 0 14px !important;
}

.az-doc-policies .pol-globus-rate-note,
.az-doc-policies .pol-avalon-rate-note {
    margin: 20px 0 24px;
    padding: 14px 16px;
    border: 1px solid #b9d7ea;
    border-left: 4px solid #12679b;
    border-radius: 5px;
    background: #f4f9fc;
}

.az-doc-policies .pol-globus-rate-note > strong,
.az-doc-policies .pol-avalon-rate-note > strong {
    display: block;
    margin-bottom: 5px;
    color: #12679b;
    font-size: 17px;
    line-height: 1.35;
}

.az-doc-policies .pol-globus-cancellation-wrap,
.az-doc-policies .pol-avalon-cancellation-wrap {
    margin: 18px 0;
    overflow-x: auto;
    border: 1px solid #d6e1e8;
    border-radius: 6px;
}

.az-doc-policies .pol-globus-cancellation-table,
.az-doc-policies .pol-avalon-cancellation-table {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #fff;
}

.az-doc-policies .pol-globus-cancellation-table th,
.az-doc-policies .pol-globus-cancellation-table td,
.az-doc-policies .pol-avalon-cancellation-table th,
.az-doc-policies .pol-avalon-cancellation-table td {
    padding: 11px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #dfe7ec !important;
    vertical-align: top !important;
    text-align: left !important;
}

.az-doc-policies .pol-globus-cancellation-table thead th,
.az-doc-policies .pol-avalon-cancellation-table thead th {
    background: #12679b !important;
    color: #fff !important;
    font-weight: 800 !important;
}

.az-doc-policies .pol-globus-cancellation-table tbody tr:nth-child(even),
.az-doc-policies .pol-avalon-cancellation-table tbody tr:nth-child(even) {
    background: #f6f9fb;
}

.az-doc-policies .pol-globus-cancellation-table tbody td:last-child,
.az-doc-policies .pol-avalon-cancellation-table tbody td:last-child {
    font-weight: 700;
    color: #1f3e52;
}

@media screen and (max-width: 760px) {
    .az-doc-supplier-hotels .po-globus-hotel-body,
    .az-doc-ship .po-avalon-stateroom-grid {
        grid-template-columns: 1fr !important;
    }

    .az-doc-supplier-hotels .po-globus-hotel-thumb {
        width: 100% !important;
        max-width: 260px !important;
    }
}

@media print {
    .az-package-document-supplier .po-globus-itinerary details {
        margin: 0 0 8pt !important;
        padding: 8pt 9pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .az-package-document-supplier .po-globus-itinerary summary {
        margin: 0 0 4pt !important;
        color: #4f65b6 !important;
        font-size: 10.5pt !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .az-package-document-supplier .po-globus-included-list li,
    .az-package-document-supplier .po-avalon-included__list li,
    .az-doc-transportation p,
    .az-doc-transportation li {
        font-size: 9pt !important;
        line-height: 1.34 !important;
    }

    .az-doc-transportation .az-doc-content {
        padding: 8pt 9pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
    }

    .az-doc-supplier-hotels .po-globus-hotel-intro {
        margin: 0 0 9pt !important;
        padding: 7pt 8pt !important;
        border-left-width: 3pt !important;
        font-size: 8.5pt !important;
    }

    .az-doc-supplier-hotels .po-globus-hotel {
        margin: 0 0 8pt !important;
        padding: 7pt 8pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-supplier-hotels .po-globus-hotel-title {
        margin-bottom: 5pt !important;
        font-size: 10.5pt !important;
    }

    .az-doc-supplier-hotels .po-globus-hotel-body {
        grid-template-columns: 1.25in minmax(0, 1fr) !important;
        gap: 8pt !important;
    }

    .az-doc-supplier-hotels .po-globus-hotel-thumb {
        width: 1.25in !important;
        max-width: 1.25in !important;
    }

    .az-doc-supplier-hotels .po-globus-hotel-class,
    .az-doc-supplier-hotels .po-globus-hotel-description p {
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
    }

    .az-doc-ship .po-avalon-ship__intro > h3 {
        font-size: 11.5pt !important;
    }

    .az-doc-ship .po-avalon-ship__description p,
    .az-doc-ship .po-avalon-stateroom__body p,
    .az-doc-ship .po-avalon-ship-details li,
    .az-doc-ship .po-avalon-ship-note {
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
    }

    .az-doc-ship .po-avalon-ship__facts {
        margin: 9pt 0 !important;
        padding: 6pt 8pt !important;
        border-left-width: 3pt !important;
        font-size: 8.5pt !important;
    }

    .az-doc-ship .po-avalon-stateroom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8pt !important;
        margin: 10pt 0 !important;
    }

    .az-doc-ship .po-avalon-stateroom {
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-ship .po-avalon-stateroom__image {
        height: 1.2in !important;
    }

    .az-doc-ship .po-avalon-stateroom__body {
        padding: 6pt 7pt 7pt !important;
    }

    .az-doc-ship .po-avalon-stateroom__body h4 {
        font-size: 10pt !important;
    }

    .az-doc-ship .po-avalon-ship-details {
        margin-top: 7pt !important;
        padding: 0 7pt !important;
        border: 0.75pt solid #d3dbe6 !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-policies .pol-globus-booking-conditions h2,
    .az-doc-policies .pol-avalon-booking-conditions h2 {
        margin: 10pt 0 4pt !important;
        font-size: 10.5pt !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .az-doc-policies .pol-globus-booking-conditions p,
    .az-doc-policies .pol-globus-booking-conditions li,
    .az-doc-policies .pol-avalon-booking-conditions p,
    .az-doc-policies .pol-avalon-booking-conditions li {
        font-size: 8.75pt !important;
        line-height: 1.32 !important;
    }

    .az-doc-policies .pol-globus-rate-note,
    .az-doc-policies .pol-avalon-rate-note {
        margin: 9pt 0 11pt !important;
        padding: 7pt 8pt !important;
        border: 0.75pt solid #b9d7ea !important;
        border-left: 3pt solid #12679b !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-policies .pol-globus-rate-note > strong,
    .az-doc-policies .pol-avalon-rate-note > strong {
        font-size: 10pt !important;
    }

    .az-doc-policies .pol-globus-cancellation-wrap,
    .az-doc-policies .pol-avalon-cancellation-wrap {
        margin: 8pt 0 !important;
        overflow: visible !important;
        border: 0.75pt solid #d6e1e8 !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .az-doc-policies .pol-globus-cancellation-table th,
    .az-doc-policies .pol-globus-cancellation-table td,
    .az-doc-policies .pol-avalon-cancellation-table th,
    .az-doc-policies .pol-avalon-cancellation-table td {
        padding: 5pt 6pt !important;
        font-size: 8pt !important;
        line-height: 1.25 !important;
    }
}
