﻿/* TEMPLATE 1 */
.container-template-1 {
    width: 100%;
    margin: auto;
    overflow: hidden auto;
    padding: var(--px-24);
    background: white;
}

.container-template-1 table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(var(--px-12) + 2px);
}

.container-template-1 .header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    font-size: var(--px-32);
}

.container-template-1 .header img {
    width: var(--px-80);
    height: var(--px-80);
    border-radius: var(--px-80);
    position: absolute;
    left: 0;
}


p {
    margin: 0;
}

.container-template-1 th,
.container-template-1 td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
    vertical-align: baseline;
}

.container-template-1 .form-row-1 th,
.container-template-1 .form-row-1 td {
    text-align: center;
}

.container-template-1 td.p-0 {
    padding: 0;
}

.container-template-1 table.table-borderless td[colspan="1"] {
    border-width: 0 0 1px 0;
}

.container-template-1 table.table-borderless td[colspan="2"] {
    border-width: 0 0 1px 1px;
    vertical-align: middle;
}

.container-template-1 table.table-borderless .form-row-2:last-of-type td {
    border-bottom: 0;
}

.container-template-1 .d-row {
    display: flex;
    align-items: center;
}

.container-template-1 .d-row span,
.container-template-1 .d-row .flex-1 {
    flex: 1;
    gap: 24px;
    white-space: nowrap;
}

.container-template-1 .d-row p {
    flex: 3;
    margin: 4px;
}

.container-template-1 .text-line {
    line-height: 2.4;
    font-size: var(--px-16);
}

.container-template-1 .d-col {
    margin-top: 24px;
    display: flex;
    gap: 1px !important;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container-template-1 .d-col p {
    margin: 0 !important;
}


.container-template-1 div.divider {
    width: 100%;
    margin: 30px 0;
    border-top: 2px dotted #000;
}

.container-template-1 .font-light {
    font-size: var(--px-24);
}

.container-template-1 table .fix-w {
    width: 156px;
}

.container-template-1 .container-template-1 h2 {
    margin: 6px 0;
    font: normal normal 700 var(--s-38);
}


/* TEMPLATE RECEIPT */
#printArea {
    display: flex;
    flex-direction: column;
    background: white;
}

.render-receipt {
    margin: auto;
    width: 500px;
    padding: 20px;
    font-size: 10px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.render-receipt * {
    font-family: Arial, sans-serif;
}

.render-receipt .header {
    text-align: center;
    margin-bottom: 20px;
}

.render-receipt .header h1 {
    margin: 0;
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.render-receipt h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.render-receipt .details {
    display: flex;
    margin-top: 20px;
    padding-bottom: 10px;
    justify-content: space-between;
    border-bottom: 1px dashed #a7a7a7;
}

.render-receipt .details p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    margin: 0 10px;
}

.render-receipt p {
    margin-block-start: .6em;
    margin-block-end: .6em;
}

.render-receipt .booking-info,
.summary {
    margin-top: 20px;
}

.render-receipt table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.render-receipt table,
.render-receipt th,
.render-receipt td {
    border: 1px solid #ddd;
}

.render-receipt th,
.render-receipt td {
    padding: 8px;
    text-align: left;
}

.render-receipt .summary p {
    display: flex;
    justify-content: space-between;
    width: 50%;
    margin-left: auto;
}

.render-receipt .print-button {
    display: block;
    width: 150px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.render-receipt .print-button:hover {
    background-color: #0056b3;
}



/* Table styling */
#render-receipt table {
    width: 100%;
    border-collapse: collapse;
}

#render-receipt th,
#render-receipt td {
    border: unset;
    border-bottom: 1px solid #a7a7a7;
    padding: 8px;
    text-align: left;
    font-size: 12px;
}

#render-receipt th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Adjust column width */
#render-receipt .guest-name {
    width: 30%;
}

#render-receipt .room-code {
    width: 15%;
    text-align: center;
}

#render-receipt .dates {
    width: 20%;
    text-align: center;
}

#render-receipt .nights {
    width: 10%;
    text-align: center;
}

#render-receipt .grid-photos {
    display: grid;
    gap: 4px;
    align-items: center;
    grid-template-columns: 1fr 1fr
}

/* Page break handling */
#render-receipt tr {
    page-break-inside: avoid;
}


/* TEMPLATE 2 */


.container-template-2 {
    width: 100%;
    margin: auto;
    overflow: hidden auto;
    padding: var(--px-24);
    background: white;
    /* max-width: var(--px-1200); */
}

.container-template-2 .title {
    text-align: center;
    font-size: var(--px-24);
    font-weight: bold;
    margin-bottom: var(--px-20);
}

.container-template-2 .header {
    flex-direction: column;
    text-align: center;
    margin-bottom: var(--px-16);
    position: relative;
    font-size: var(--px-32);
}

.container-template-2 .header img {
    width: var(--px-80);
    height: var(--px-80);
    border-radius: var(--px-80);
    border: 1px solid var(--bs-gray-300);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--px-12);
}

.container-template-2 table {
    width: 100%;
    border-collapse: collapse;
}

.container-template-2 th,
.container-template-2 td {
    border: 1px solid #000;
    padding: 6px;
    text-align: left;
    font-size: calc(var(--px-12) + 2px);
}

.container-template-2 td {
    overflow: hidden;
}

.container-template-2 .bold {
    font-weight: bold;
}

.container-template-2 .break-line {
    display: block;
    font-weight: bold;
    white-space: nowrap;
}

.container-template-2 .light {
    font-weight: normal;
    font-size: var(--px-12);
}

.container-template-2 .txt-center {
    width: 20%;
    font-size: calc(var(--px-12) + 2px);
    text-align: center;
}

.scale-pdf .txt-center {
    font-size: var(--px-8) !important;
}

.scale-pdf td {
    font-size: var(--px-8) !important;
}

.scale-pdf .title {
    font-size: var(--px-12) !important;
}

.scale-pdf .light {
    font-size: var(--px-8) !important;
}

.scale-pdf .header img {
    width: var(--px-40);
    height: var(--px-40);
}

.container-template-2 .info-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-8);
}

.container-template-2 .info-ticket .col--1 {
    gap: var(--px-4);
    display: flex;
    align-items: center;
}

.container-template-2 ol,
.container-template-2 ul {
    padding-left: 1rem;
}

.container-template-2 ol,
td.bolder-unset {
    border: unset;
}

.container-template-2 td[colspan="2"] {
    vertical-align: baseline;
}

.container-template-2 td[colspan="4"] {
    padding: 4px var(--px-12);
}

table img.signature-show {
    height: var(--px-40);
}

table img.signature-show.large {
    height: var(--px-100);
    margin: auto;
    width: 100%;
}

table signature-for-guest-text.registration-card-trans {
    color: red;
    min-height: var(--px-60);
    display: flex;
    align-items: center;
    justify-content: center;
    font: normal normal 600 var(--s-18);
}

/* Set the fixed widths for each column */
.container-template-2 tr td {
    max-width: var(--px-100);
    word-wrap: break-word;
}

.container-template-2 tr td:nth-child(1) {
    width: 20%;
}

.container-template-2 tr td:nth-child(2) {
    width: 30%;
}

.container-template-2 tr td:nth-child(3) {
    width: 20%;
}

.container-template-2 tr td:nth-child(4) {
    width: 30%;
}

.custom-td-border td:not(:first-child) {
    border-left: 1px solid black;
}

.custom-td-border td:not(:last-child) {
    border-right: 1px solid black;
}

/* SIGNATURE MODAL */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--custom-backdrop);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    --custom-primary: #7fad49;
    --custom-primary-dark: #67913f;
    --custom-border: #d7d7d7;
    --custom-text-main: #333;
    --custom-backdrop: rgba(0, 0, 0, 0.35);
    --custom-radius-lg: 8px;
    --custom-radius-xl: 10px;
    --custom-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.18);
    --custom-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.custom-modal-backdrop.custom-show {
    display: flex;
}

/* Modal */
.custom-modal {
    width: 100%;
    max-width: var(--px-620);
    background: #fff;
    border-radius: var(--custom-radius-xl);
    box-shadow: var(--custom-shadow-lg);
    border: 1px solid #cfd1d4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: var(--px-620);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--custom-border);
}

.custom-modal-title {
    font-size: var(--px-20);
    font-weight: 700;
}

.custom-modal-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #777;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-modal-close:hover {
    background: #f1f1f1;
    color: #444;
}

/* Tabs */
.custom-modal-tabs {
    display: flex;
    padding: 16px;
    gap: 12px;
    padding-bottom: 0;
}

.custom-tab {
    flex: 1;
    border: none;
    background: unset;
    padding: 8px 0;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 2px;
    margin-bottom: -1px;
    border: 1px solid var(--bs-gray-300);
    color: #555;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-tab.custom-active {
    background: var(--bs-main-50);
    color: #222;
    border: 1px solid var(--bs-main-300);
    font-weight: 600;
    border-radius: 8px;
    color: var(--bs-main);
}

.custom-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.custom-signature-panel {
    border: 1px solid var(--bs-gray-200);
    border-radius: 8px;
    background: #fafafa;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-signature-canvas-wrapper {
    border-bottom: 1px solid var(--bs-gray-300);
    /* border-radius: 8px; */
    background: #fff;
    overflow: hidden;
    position: relative;
}

.custom-signature-canvas {
    width: 100%;
    height: var(--px-320);
    display: block;
    cursor: crosshair;
}

.custom-signature-placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #b3b3b3;
    pointer-events: none;
    user-select: none;
}

.custom-signature-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.custom-color-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-color-dot {
    min-width: 24px;
    min-height: 24px;
    max-height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: 2px solid transparent;
    border: 4px solid white;
}

.custom-color-dot::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

.custom-color-dot[data-color="black"] {
    background: #000;
}

.custom-color-dot[data-color="blue"] {
    background: #2d80ff;
}

.custom-color-dot[data-color="red"] {
    background: red;
}

.custom-color-dot.custom-selected {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--bs-gray-500);
    border: 4px solid white;
}

.custom-link-button {
    border: none;
    background: none;
    color: #0071c5;
    text-decoration: underline;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

/* Type signature panel */
.custom-typed-panel {
    border: 1px solid var(--custom-border);
    border-radius: 4px;
    padding: 10px;
    background: #fafafa;
    display: none;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.custom-typed-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid var(--custom-border);
    font-size: 13px;
}

.custom-typed-preview {
    border-radius: 3px;
    border: 1px dashed #c7c7c7;
    padding: 12px 10px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 28px;
    font-family: "Lucida Handwriting", "Segoe Script", "Bradley Hand", cursive;
}

.custom-style-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.custom-style-select {
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid var(--custom-border);
    font-size: 11px;
    min-width: 130px;
}

/* Modal footer */
.custom-modal-footer {
    padding: 10px 18px 16px;
    border-top: 1px solid var(--custom-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.custom-btn {
    border-radius: 6px;
    font-size: 14px;
    padding: 6px 16px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.4;
    min-width: 80px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.custom-btn-primary {
    background: var(--custom-primary);
    border-color: var(--custom-primary);
    color: #fff;
    font-weight: 500;
}

.custom-btn-primary:hover {
    background: var(--custom-primary-dark);
    border-color: var(--custom-primary-dark);
    box-shadow: 0 0 0 2px rgba(127, 173, 73, 0.25);
}

.custom-btn-secondary {
    background: 0;
    border-color: unset;
    color: #333;
    border: 0;
}

.custom-btn-secondary:hover {
    background: #e5e7eb;
}

.custom-hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
    .custom-document {
        padding: 20px 16px 24px;
    }

    .custom-modal {
        margin: 0 10px;
    }
}

/* TEMPLATE 3 - MARIS HOTEL REGISTRATION FORM */
.maris-registration-form {
    padding: var(--px-20);
    color: var(--black);
    max-width: var(--px-800);
    margin: 0 auto;
}

.maris-registration-form table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--px-12) 0;
}

.maris-registration-form .booking-table__row {
    color: red;
}

.maris-registration-form td,
.maris-registration-form th {
    padding: var(--px-6);
    border: 1px solid var(--black);
    font-size: var(--px-12);
}

.maris-registration-form .no-border {
    border: none;
}

.maris-registration-form .text-center {
    text-align: center;
}

.maris-registration-form .text-right {
    text-align: right;
}

.maris-registration-form .bold {
    font-weight: bold;
}

.maris-registration-form .t {
    color: #9B2613;
}

.maris-registration-form .header-section {
    text-align: center;
    margin-bottom: var(--px-20);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.maris-registration-form .logo-container {
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--px-16);
}

.maris-registration-form .logo-container img {
    height: var(--px-80);
    width: auto;
}

.maris-registration-form .title-container {
    display: inline-block;
    vertical-align: middle;
}

.maris-registration-form h1 {
    margin: var(--px-6) 0;
    font: normal normal 700 var(--s-24);
    color: #9B2613;
}

.maris-registration-form h2 {
    margin: 0;
    font: normal normal 500 var(--s-16);
    color: #9B2613;
}

.maris-registration-form .subtitle {
    font: normal normal 400 var(--s-12);
    color: var(--black-64);
}

.maris-registration-form .info-row {
    display: flex;
    justify-content: space-between;
    margin: var(--px-8) 0;
    font: normal normal 400 var(--s-12);
}

.maris-registration-form .policy-text {
    font: normal normal 400 var(--s-13);
    line-height: 1.5;
    margin: var(--px-4) 0;
}

.maris-registration-form .checkbox-group-register {
    display: flex;
    flex-direction: column;
    margin-right: var(--px-16);
}

.maris-registration-form .checkbox-group-register input {
    height: 12px;
    width: 12px;
    visibility: visible;
}

.maris-registration-form .signature-area {
    min-height: var(--px-60);
    border-bottom: 1px solid var(--black);
    margin-top: var(--px-12);
}

.maris-registration-form .signature-area img {
    max-height: var(--px-80);
    max-width: var(--px-200);
    margin: 0 auto;
}

.maris-registration-form .signature-area p {
    color: var(--red);
    cursor: pointer;
}

.maris-registration-form thead tr {
    background-color: var(--bg-num-availble);
}

.maris-registration-form .room-type-table {
    margin: var(--px-16) 0;
}

.maris-registration-form .confirmation-label {
    font: normal normal 600 var(--s-14);
    margin-bottom: var(--px-6);
}

.maris-registration-form .policy-section {
    margin: var(--px-16) 0;
    font-size: var(--px-12);
    line-height: 1.5;
}

.maris-registration-form .document-section {
    margin: var(--px-16) 0;
    font-size: var(--px-12);
}

.maris-registration-form .checkbox-container {
    margin: var(--px-16) 0;
    padding: var(--px-12);
    border: 1px solid var(--black);
}

.maris-registration-form .checkbox-container-title {
    font: normal normal 600 var(--s-14);
    margin-bottom: var(--px-8);
}

.maris-registration-form .checkbox-row {
    display: flex;
    justify-content: space-between;
    font: normal normal 400 var(--s-12);
}

.maris-registration-form .checkbox-group-register label {
    font-style: italic;
    color: #8B6914;
}

.maris-registration-form .notes-section {
    margin: var(--px-16) 0;
}

.maris-registration-form .notes-title {
    font: normal normal 600 var(--s-14);
    margin-bottom: var(--px-6);
}

.maris-registration-form .notes-content {
    border: 1px solid var(--black);
    min-height: var(--px-40);
    padding: var(--px-8);
    font-size: var(--px-12);
}

.maris-registration-form .agreement-section {
    margin: var(--px-16) 0;
    font-size: var(--px-12);
}

.maris-registration-form .signature-table {
    border: none;
}

.maris-registration-form .signature-table td {
    width: 50%;
    border: none;
    vertical-align: top;
}

.maris-registration-form .signature-label {
    font: normal normal 600 var(--s-14);
    text-align: center;
}

.maris-registration-form .signature-info {
    text-align: center;
    margin-top: var(--px-6);
    font: normal normal 400 var(--s-12);
}

.maris-registration-form .signature-info .bold {
    font: normal normal 600 var(--s-12);
}

.maris-registration-form .header-spacer {
    background: transparent;
}

.maris-registration-form .header-spacer span {
    color: var(--white);
}

/* Responsive adjustments for MARIS template */
@media print {
    .maris-registration-form {
        max-width: 100%;
        padding: var(--px-12);
    }

    .maris-registration-form .header-section {
        page-break-inside: avoid;
    }

    .maris-registration-form table {
        page-break-inside: auto;
    }

    .maris-registration-form tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}

/* SIGNATURE ANIMATION & HIGHLIGHT */
.signature-show {
    transition: opacity 0.5s ease-in-out, box-shadow 0.3s ease-out, border 0.3s ease-out;
}

.signature-show.saved-signature {
    animation: signaturePulse 0.6s ease-in-out;
}

@keyframes signaturePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Signature name and date animation */
i.signature-name,
i.signature-name-checkin,
i.signature-name-checkout,
p.signature-date {
    transition: opacity 0.6s ease-in-out;
}

/* Hide signature elements when printing to avoid duplicate display issues */
@media print {
    .signature-show {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        transition: none !important;
        animation: none !important;
    }
}

/* TEMPLATE 4 - CONFIRMATION LETTER */
.confirmation-letter-container {
    padding: var(--px-20);
    overflow: hidden auto;
}

.confirmation-letter-container table {
    width: 100%;
    border-collapse: collapse;
}

.confirmation-letter-outer {
    background-color: var(--white);
    padding: var(--px-20) 0;
    max-width: var(--px-800);
    font-family: Arial, Helvetica, sans-serif;
}

.confirmation-letter-inner {
    background-color: var(--white);
    width: 100%;
    color: var(--black);
    padding: var(--px-20) var(--px-32);
}

.conf-letter-header-row td {
    padding-bottom: var(--px-20);
}

.conf-letter-logo-cell {
    width: var(--px-120);
    vertical-align: top;
}

.conf-letter-logo-cell img {
    max-width: var(--px-100);
    max-height: var(--px-100);
}

.conf-letter-title-cell {
    padding-left: var(--px-20);
    vertical-align: top;
    text-align: center;
}

.conf-letter-title {
    font: normal normal 700 var(--s-28);
    color: #9B2613;
    margin-bottom: var(--px-8);
}

.conf-letter-recap-cell {
    width: var(--px-150);
    font: normal normal 400 var(--s-11);
    vertical-align: top;
    text-align: right;
}

.conf-letter-recap-label {
    margin-top: var(--px-4);
}

.conf-letter-recap-name {
    font-weight: bold;
}

.conf-letter-greeting {
    font: normal normal 400 var(--s-12);
    line-height: 1.6;
    padding: var(--px-12) 0;
}

.conf-letter-greeting p {
    margin: 0;
}

.conf-letter-greeting p:first-child {
    margin-bottom: var(--px-8);
}

.conf-letter-section-header {
    color: var(--black);
    font: normal normal 700 var(--s-12);
    padding: var(--px-6) 0;
    margin-bottom: var(--px-2);
    border-bottom: 2px solid #9B2613;
}

.conf-letter-section-table {
    width: 100%;
    font: normal normal 400 var(--s-11);
    line-height: 1.8;
}

.conf-letter-section-table td {
    padding: var(--px-4) var(--px-6);
}

.conf-letter-field-label {
    font: normal normal 500 var(--s-12);
}

.conf-letter-field-value {
    padding-left: var(--px-12);
}

.conf-letter-col-48 {
    width: 48%;
}

.conf-letter-col-spacer {
    width: 4%;
}

.conf-letter-col-30 {
    width: 30%;
}

.conf-letter-col-2 {
    width: 2%;
}

.conf-letter-col-32 {
    width: 32%;
}

.conf-letter-col-34 {
    width: 34%;
}

.conf-letter-benefits {
    padding: var(--px-12);
    font: normal italic 400 var(--s-10);
    line-height: 1.6;
}

.conf-letter-benefits-title {
    font-weight: bold;
    margin-bottom: var(--px-4);
}

.conf-letter-policy {
    padding: var(--px-8) var(--px-12);
    font: normal normal 500 var(--s-11);
}

.conf-letter-policy div {
    margin-top: var(--px-6);
}

.conf-letter-policy div:first-child {
    margin-top: 0;
}

.conf-letter-total-payment {
    font: normal normal 500 var(--s-13);
}

.conf-letter-payment-instruction {
    padding: var(--px-8) var(--px-12);
    font: normal normal 500 var(--s-11);
}

.conf-letter-closing {
    padding-top: var(--px-20);
    font: normal italic 400 var(--s-11);
    text-align: center;
    line-height: 1.6;
    padding-bottom: var(--px-16);
}

.conf-letter-closing p {
    margin: 0;
}

.conf-letter-footer-row td {
    border-top: 2px solid #9B2613;
}

.conf-letter-footer {
    font: normal normal 400 var(--s-11);
    line-height: 1.6;
    text-align: center;
}

.conf-letter-footer-hotel-name {
    font: normal normal 700 var(--s-13);
    margin: var(--px-12) 0 var(--px-4) 0;
    text-transform: uppercase;
}

.conf-letter-footer-hotel-add, .conf-letter-footer-hotel-contact {
    font: normal normal 400 var(--s-12);
    color: #9B2613;
}

@media print {
    .confirmation-letter-container {
        max-width: 100%;
        padding: var(--px-12);
    }

    .conf-letter-section-row {
        page-break-inside: avoid;
    }
}