.grocery-bill-embed { line-height: normal; box-sizing: border-box; width: calc(100% - 2em); max-width: 425px; margin: 3em auto; display: flex; flex-direction: column; font-family: "Courier Prime", monospace; font-size: 15px; border: 1px solid #ddd; padding: 2.25em 0.75em; padding-left: 0em; background-color: #fff; box-shadow: -0.6em -0.6em 0em 0 rgba(0, 0, 0, 0.075); } .grocery-bill-embed p { font-family: "Courier Prime", monospace !important; margin: 0; font-size: 1em; } .grocery-bill-embed .grocery-bill-header { display: flex; flex-direction: column; gap: 0.4em; align-items: center; padding-bottom: 2em; margin: 0 2em; border-bottom: 1px solid #444; } .grocery-bill-embed .shopper-name { text-align: center; font-size: 1.5em; font-weight: bold; } .grocery-bill-embed .shopper-description { text-align: center; font-size: 1em; font-style: italic; } .grocery-bill-embed .grocery-bill-body { display: flex; flex-direction: column; padding: 2.25em 1.5em; } .grocery-bill-embed .grocery-bill-body > .item-container { position: relative; display: grid; grid-template-columns: 2.5em min-content 1fr min-content; align-items: center; gap: 0 0.75em; white-space: nowrap; } .grocery-bill-embed .icon { height: 2.5em; width: 2.5em; background-size: contain; color: transparent; } .grocery-bill-embed .icon.enlarge { background-size: 150%; background-position: 50% 50%; } .grocery-bill-embed .cost { text-align: right; font-weight: bold; } .grocery-bill-embed .name { white-space: nowrap; } .grocery-bill-embed .dot { flex-grow: 1; border-bottom: 1px dotted #444; color: transparent; height: 0; } .grocery-bill-embed .grocery-bill-total { display: flex; gap: 0.5em; padding: 1em; align-items: center; justify-content: center; background-color: #444; font-size: 1em; color: white; margin: 0 1.5em 0; border-top: 1px solid #ddd; } .grocery-bill-embed .grocery-bill-total > span { border-bottom: 1px dashed #fff; } .grocery-bill-embed .sub-item-container { grid-column: 1/-1; font-size: 0.875em; white-space: nowrap; display: flex; flex-direction: column; margin-bottom: -1em; } .grocery-bill-embed .sub-item { display: flex; flex-direction: row; font-size: 1em; line-height: normal; } .grocery-bill-embed .sub-item > span { display: none; } .grocery-bill-embed .sub-item::before { /* display: block; */ content: ""; width: 1.5em; height: 1em; border: 1px dotted #444; border-right: none; border-top: none; margin: -0.5em 0.3em 0 4em; } @media only screen and (max-width: 400px) { .grocery-bill-embed { font-size: 12px; } }