body {
  font-family: 'Inter', Arial, sans-serif;
  color: #3F5523;
}

.kiosk {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  height: 100dvh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px;
  border: 2px solid #3F5523;
}

/* header */
header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 30px;
  background-color: rgba(63, 85, 35, 0.06);
  border: 1px solid rgba(63, 85, 35, 0.5);
  border-radius: 7px;
}

header .logo {
  height: 50px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #3F5523;
  cursor: pointer;
}

/* screens */
.screen {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 24px;
}

.screen.active {
  display: flex;
}

/* main content box */
.content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-height: 0;
  overflow-y: auto;
  padding: 60px 90px 60px 54px;
  background-color: rgba(63, 85, 35, 0.1);
  border: 1px solid rgba(63, 85, 35, 0.5);
  border-radius: 8px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.08);
}

.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.text h1 {
  margin: 24px 0 14px;
  font-size: 44px;
  font-weight: 700;
  color: #3F5523;
}

.desc {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.4;
}

.extra {
  margin-bottom: 20px;
}

.status {
  margin-top: auto;
  width: 538px;
  max-width: 100%;
  padding: 32px 27px;
  border: 1px solid rgba(63, 85, 35, 0.5);
  border-radius: 5px;
  background-color: #e3e7de;
  font-size: 16px;
  font-weight: 700;
}

.status .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #3F5523;
  font-size: 0;
  vertical-align: middle;
}

/* photo on the right */
.picture {
  position: relative;
  width: 394px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 8px;
}

.picture::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 9px;
  width: 100%;
  height: 100%;
  background-color: #3F5523;
  opacity: 0.1;
  border-radius: 9px;
}

.picture img {
  position: relative;
  display: block;
  width: 100%;
  border: 4px solid #3F5523;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* bottom action bar */
.actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
  height: 92px;
  padding: 0 38px;
  background-color: rgba(63, 173, 237, 0.09);
  border-radius: 7px;
}

.actions button {
  height: 55px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-back {
  width: 233px;
  background-color: white;
  color: #3F5523;
  border: 1px solid #3F5523;
}

.btn-main {
  width: 267px;
  background-color: #3F5523;
  color: white;
  border: none;
}

.btn-back:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-main:disabled {
  background-color: #d9e4e4;
  color: #3F5523;
  cursor: not-allowed;
}

/* options (2.0 and 6.0) */
.option {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-bottom: 10px;
  padding: 12px 16px;
  background-color: white;
  border: 1px solid rgba(63, 85, 35, 0.5);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #3F5523;
  text-align: left;
  cursor: pointer;
}

.option small {
  float: right;
  font-weight: 400;
}

.option.selected {
  background-color: #3F5523;
  color: white;
}

.option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cashout {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin-top: 6px;
}

.cashout input {
  margin: 0;
  text-transform: uppercase;
}

.btn-small-green {
  padding: 0 16px;
  background-color: #3F5523;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* QR code (2.1) */
.link-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

#qrCanvas {
  width: 110px;
  height: 110px;
  image-rendering: pixelated;
  border: 6px solid white;
}

.small-label {
  margin: 0 0 4px;
  font-size: 14px;
}

.link-code {
  font-family: Consolas, monospace;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #3FADED;
}

/* info text */
.info {
  margin: 0 0 6px;
  font-size: 17px;
}

.big {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 6px;
}

.total {
  font-size: 16px;
  font-weight: 700;
}

.test-box {
  max-width: 420px;
  padding: 10px 12px;
  border: 1px dashed rgba(63, 85, 35, 0.5);
  border-radius: 8px;
}

.test-box select {
  margin: 0;
}

/* side menu */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 50;
}

/* tablets and phones */
@media (max-width: 900px) {
  .kiosk {
    padding: 8px;
    gap: 8px;
    border-width: 0;
  }

  header {
    height: 52px;
    padding: 0 14px;
  }

  header .logo {
    height: 34px;
  }

  .screen {
    gap: 8px;
  }

  .content {
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 16px;
  }

  .picture {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .picture::before {
    display: none;
  }

  .picture img {
    height: 120px;
    object-fit: cover;
    border-width: 3px;
  }

  .text h1 {
    margin: 0 0 6px;
    font-size: 24px;
  }

  .desc {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .extra {
    margin-bottom: 10px;
  }

  .option {
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 15px;
  }

  .status {
    margin-top: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
  }

  .actions {
    height: auto;
    padding: 8px;
    gap: 8px;
  }

  .actions button {
    flex: 1;
    width: auto;
    height: 46px;
  }

  #qrCanvas {
    width: 80px;
    height: 80px;
  }

  .link-code {
    font-size: 28px;
  }

  .big {
    font-size: 26px;
  }

  .info {
    font-size: 15px;
  }
}
