/* Load font */ @font-face { font-family: 'Segoe'; font-style: normal; font-weight: normal; src: local('Segoe Light'), local('Segoe Light'), url(get_template_path(); ?>/fonts/segoeuil.ttf) format('truetype'); } @font-face { font-family: 'Segoe'; font-style: normal; font-weight: bold; src: local('Segoe Semibold'), local('Segoe-Semibold'), url(get_template_path(); ?>/fonts/seguisb.ttf) format('truetype'); } @font-face { font-family: 'Segoe'; font-style: italic; font-weight: normal; src: local('Segoe LightItalic'), local('Segoe-LightItalic'), url(get_template_path(); ?>/fonts/seguili.ttf) format('truetype'); } @font-face { font-family: 'Segoe'; font-style: italic; font-weight: bold; src: local('Segoe Semibold Italic'), local('Segoe-SemiboldItalic'), url(get_template_path(); ?>/fonts/seguisbi.ttf) format('truetype'); } /* Main Body */ @page { margin-top: 1cm; margin-bottom: 1cm; margin-left: 1cm; margin-right: 1cm; } body { background: #fff; color: #000; margin: 0cm; font-family: 'Segoe'; line-height: 1; font-weight: normal; font-size: 10pt; overflow-wrap: anywhere; } h1, h2, h3, h4 { font-size: 12pt; font-weight: normal; margin: 0; } ol, ul { list-style: none; margin: 0; padding: 0; } li, ul { margin-bottom: 0.75em; } p { margin: 0; padding: 0; } p + p { margin-top: 1.25em; } a { border-bottom: 1px solid; text-decoration: none; } span.checkbox { display: inline-block; width: 3mm; height: 3mm; border: 1px solid black; background-color: white; } /* Basic Table Styling */ table { border-collapse: collapse; border-spacing: 0; page-break-inside: always; } th, td { vertical-align: top; text-align: inherit; } table.container { width:100%; border: 0; } tr.no-borders, td.no-borders { border: 0 !important; border-top: 0 !important; border-bottom: 0 !important; padding: 0 !important; width: auto; } /* Header */ table.head { margin-bottom: 3mm; } td.header img { max-height: 3cm; width: auto; } td.header { font-size: 16pt; font-weight: normal; } .header-stretcher { height: 3.5cm; display: block; } td.header, td.shop-info { padding-bottom: 3mm; } td.shop-info { width: 40%; } tr.underline td { border-bottom: 1px solid black; } .recipient-address { font-size: 12pt; color: #2F62AF; padding-left: 1.5cm; } .document-type-label { color: #2F62AF; text-transform: uppercase; } /* Recipient addressses & order data */ table.order-data-addresses { width: 100%; margin-bottom: 10mm; } table.order-data-addresses .address { font-size: 12pt; color: #2F62AF; } table.order-data-addresses .address:first-child { padding-left: 10mm; } td.order-data { width: 40%; } td.order-data table th { font-weight: normal; padding-right: 2mm; min-width: 2cm; } /* Order details */ table.order-details { width: 100%; } table.order-details th { overflow-wrap: normal; } table.order-details tr:last-child { padding-bottom: 5cm; /* clearing for the footer! (more precisely, the totals) */ } /* + no need to do that for packing slips */ .packing-slip table.order-details tr:last-child { padding-bottom: 0; } .order-details tr { page-break-inside: always; page-break-after: auto; } .order-details td, .order-details th { padding: 0.375em; } .order-details th { color: #000; font-weight: normal; text-align: inherit; border-bottom: 1px solid black; } .order-details .cb { width: 3.5mm; } .order-details .thumbnail, .order-details .quantity, .order-details .weight { width: 8%; } .order-details .sku, .order-details .price, .order-details .regular_price, .order-details .vat, .order-details .discount, .order-details .tax_rate, .order-details .total { width: 10%; } .order-details .vat-split { width: 12%; } .order-details .position { width: 5%; } td.thumbnail img { width: 13mm !important; height: auto !important; } /* item meta formatting for WC2.6 and older */ dl { margin: 4px 0; } dt, dd, dd p { display: inline; font-size: 7pt; } dd { margin-left: 5px; } dd:after { content: "\A"; white-space: pre; } /* item-meta formatting for WC3.0+ */ .wc-item-meta { margin: 4px 0; font-size: 7pt; } .wc-item-meta p { display: inline; } .wc-item-meta li { margin: 0; margin-left: 5px; } /* product bundles compatibility */ .order-details tr.bundled-item td.description { padding-left: 5mm; } .order-details tr.bundled-item.hidden { display: none; } /* Totals */ table.totals { width: 100%; margin-bottom: 5mm; } table.totals th, table.totals td { border: 0; padding: 6px; } table.totals th { text-align: inherit; font-weight: normal; min-width: 2cm; } table.totals td { text-align: right; } table.totals .grand-total td, table.totals .grand-total th { background-color: #2F62AF; color: white; } /* Notes */ .notes.customer-notes { padding-top: 8mm; width: 66%; } /* Footer */ .cut-off { width:100%; height:; } .foot { position: absolute; bottom: 0; left: 0; right: 0; /*height: ;*/ text-align: center; /*margin-bottom: 0; */ margin-top: 0; } table.footer { top: -5cm; text-align: initial; /*There's a bug that misplaces borders if used. To fix this, use:*/ /*border-collapse: separate;*/ } table.footer td.footer-column-1, table.footer td.footer-column-2, table.footer td.footer-column-3 { width: 33%; } table.footer td.bluebox { background-color: #2F62AF; } .bluebox { text-transform: uppercase; color: white; font-weight: normal; padding: 2mm; vertical-align: top; } .shipping-method-label, .payment-method-label { display: inline-block; min-width: 40mm; padding-right: 2mm; } span.shipping-method, span.payment-method, /* for legacy templates */ .shipping-method-name, .payment-method-name { display: inline-block; } /* page numbers */ .pagenum:before { content: counter(page); } .pagenum,.pagecount { font-family: sans-serif; } /* RTL specific */ .rtl { direction: rtl !important; } .rtl div.totals { float: left !important; } .rtl div.notes { float: right !important; }