/* Scoped copy of styles.css for embedding inside the BigCommerce theme
   at /receipt-list. Every selector is prefixed with .rl-embed so it can
   never leak onto the surrounding theme (header, nav, footer). Source of
   truth for the standalone app is still styles.css — re-run
   scope_css.py after editing it there, don't hand-edit this file. */

@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

.rl-embed {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-cream: #f5f0ec;
  --color-blush: #e7dad3;
  --color-sage: #9aae99;
  --color-pine: #446153;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Poppins', 'Helvetica Neue', Helvetica, sans-serif;
}

.rl-embed input[type='text'] {
  -webkit-appearance: none;
}
.rl-embed {
  display: block;
  width: 100%;
  background-color: var(--color-cream);
  color: var(--color-black);
}

.rl-embed a {
  color: var(--color-black);
  font-weight: 700;
  text-decoration: none;
}
.rl-embed a:hover {
  text-decoration: underline;
}

.rl-embed label {
  word-break: break-all;
}

.rl-embed h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.72rem;
  text-align: center;
  margin-bottom: 0px;
  margin-top: 0px;
}
.rl-embed h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  margin-top: 0px;
}
.rl-embed .container h2 {
  text-align: center;
}
.rl-embed p {
  font-family: var(--font-body);
}
.rl-embed .logo {
  font-family: 'Merchant Copy Doublesize', 'Anonymous Pro', 'Courier New',
    Courier, monospace;
  font-weight: 600;
  font-size: 0.94rem;
  text-align: center;
  padding-top: 15px;
  word-break: break-word;
}
.rl-embed .info {
  font-family: var(--font-body);
  text-align: center;
}

.rl-embed .container {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rl-embed .container > div {
  width: 100%;
  max-width: 480px;
  margin: auto;
}
.rl-embed .page-container {
  margin: auto;
  margin-top: 48px;
  width: 100%;
}
.rl-embed .content-container {
  width: 100%;
  margin: auto;
}

.rl-embed .footer p {
  font-size: 0.72rem;
}

.rl-embed .logo {
  text-transform: uppercase;
}

.rl-embed .time-btn {
  border: none;
  text-align: center;
  text-decoration: none;
  padding: 12px 24px;
  background-color: var(--color-black);
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0vh 1vh;
  width: auto;
  transition: opacity 0.2s;
}
.rl-embed .time-btn:hover {
  opacity: 0.85;
}
.rl-embed .date {
  margin: 0vh;
}
.rl-embed .tracks {
  margin: 5px 0vh;
}
.rl-embed #receipt {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
}
.rl-embed #receipt a,
.rl-embed #receipt a:visited {
  color: black;
  text-decoration: none !important;
}
.rl-embed .under {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin-top: 16px;
  width: 100%;
  max-width: 340px;
}
.rl-embed .under button {
  width: 100%;
  margin-bottom: 10px;
}
.rl-embed .receiptContainer {
  position: relative;
  width: 340px;
  filter: brightness(105%);
  padding: 20px;
  text-transform: uppercase;
  overflow: hidden;
  box-sizing: border-box;
}
/* A real <img> instead of a CSS background-image: dom-to-image only
   reliably inlines actual <img> elements when exporting to PNG — its
   background-image support depends on the browser being able to
   reconstruct the `background` shorthand from these longhands, which
   isn't consistent across browsers and silently drops the texture. */
.rl-embed .receipt-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.rl-embed .receipt-content {
  position: relative;
}
.rl-embed table {
  width: 100%;
}
.rl-embed .begin {
  padding-left: 0vh;
}
.rl-embed p,
.rl-embed table,
.rl-embed .date {
  font-family: 'receipt', 'Anonymous Pro', 'Courier New', Courier, monospace;
  font-size: 1rem;
  line-height: 1.25rem;
}

.rl-embed table {
  border: none;
}
.rl-embed .total-counts {
  border-top: 1px dashed;
}
.rl-embed .total-counts-end {
  border-bottom: 1px dashed;
}
.rl-embed thead {
  border-top: 1px dashed;
  border-bottom: 1px dashed;
}
.rl-embed td {
  padding: 2px 10px;
  vertical-align: top;
}
.rl-embed .name {
  width: 225px;
  overflow: auto;
}
.rl-embed .length {
  text-align: right;
  padding-left: 10px;
  padding-right: 0px;
}
.rl-embed .thanks {
  text-align: center;
  padding: 15px 0px;
}
.rl-embed .main-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 2vh;
}
.rl-embed .receipt-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rl-embed .customize {
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
  align-self: center;
}
.rl-embed .customize > p,
.rl-embed #track-edit p {
  font-family: var(--font-body);
  line-height: 1.2;
}
.rl-embed #track-edit {
  margin-top: 30px;
}
.rl-embed #track-edit div {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 5px;
  border-radius: 10px;
  align-items: center;
}
.rl-embed #track-edit p {
  margin: 0px;
}
.rl-embed #track-edit div:hover {
  background-color: var(--color-blush);
  cursor: pointer;
}
.rl-embed .customize-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  padding-bottom: 1.5vh;
}
.rl-embed .explanation-header {
  padding-top: 2.5vh;
}
.rl-embed #options-header,
.rl-embed #date-header {
  margin-top: 20px;
}

.rl-embed .header-section {
  margin-top: 20px;
  width: 100%;
  max-width: 480px;
}

.rl-embed .about {
  width: 70%;
  text-align: center;
  padding: 5vh 0;
}

.rl-embed .about p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
}

.rl-embed .about h2 {
  font-size: 20px;
}

@media only screen and (max-width: 1280px) {
  .rl-embed .receipt-wrapper {
    margin-bottom: 30px;
  }
  .rl-embed .time-btn {
    margin: 1vh auto;
  }
  .rl-embed .about {
    width: 90%;
  }
}

@media (max-width: 900px) {
  .rl-embed .header-section {
    width: 100%;
    padding: 0 32px;
  }
}

/* Two columns once there's room to see the receipt update live
   next to the form; single column (default, above) below this. */
@media (min-width: 900px) {
  .rl-embed .container > .main-body {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    max-width: 860px;
  }
  .rl-embed .receipt-wrapper {
    width: auto;
  }
  .rl-embed .customize {
    margin-top: 0;
    align-self: flex-start;
  }
}

@media (max-width: 330px) {
  .rl-embed .header-section {
    padding: 0 15px;
  }
}

/* Checklist receipt */
.rl-embed .text-input {
  padding: 10px 12px;
  border: 2px solid var(--color-black);
  font-size: 15px;
  border-radius: 10px;
  color: var(--color-black);
  outline: none;
  width: 100%;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.rl-embed #addItemForm {
  margin-bottom: 10px;
}
.rl-embed .add-item-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.rl-embed .add-item-form .text-input {
  flex: 1;
  margin-bottom: 0;
  box-sizing: border-box;
}
.rl-embed .add-item-form .time-btn {
  margin: 0;
  padding: 0 3vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl-embed .item-done .name,
.rl-embed .item-done .length {
  text-decoration: line-through;
  opacity: 0.55;
}
.rl-embed .edit-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}
.rl-embed .edit-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.rl-embed .strike {
  text-decoration: line-through;
  opacity: 0.55;
}
.rl-embed #empty-state {
  display: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 20px;
  padding: 4vh 2vw;
  background-color: var(--color-white);
  border: 1px solid var(--color-blush);
  border-radius: 10px;
  max-width: 340px;
}

@media print {
  /* visibility: hidden keeps hidden elements' layout space, which was
     leaving a full second blank page behind the receipt. display: none
     actually removes them from layout. Can't blanket-hide "body *" and
     re-show the receipt the way the old visibility rule did, though —
     display: none on an ancestor would take the receipt down with it
     with no way to un-hide from a descendant rule — so this hides the
     specific sibling sections around the receipt instead. */
  .rl-embed .header-section,
.rl-embed .customize,
.rl-embed #empty-state,
.rl-embed .under,
.rl-embed .footer {
    display: none !important;
  }
  .rl-embed #receiptContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    background-color: #fff;
  }
  .rl-embed #receiptContainer p,
.rl-embed #receiptContainer table,
.rl-embed #receiptContainer .date {
    font-size: 1rem;
    line-height: 1.25rem;
  }
  .rl-embed #receiptContainer .logo {
    font-size: 1.5rem;
  }
}
