:root {
  --black: #050505;
  --soft-black: #0b0a09;
  --white: #ffffff;
  --soft-white: #f2eee9;
  --muted: #aaa39c;
  --green: #3dd783;
  --danger: #e95d62;

  --line:
    rgba(
      255,
      255,
      255,
      0.18
    );

  --line-strong:
    rgba(
      255,
      255,
      255,
      0.38
    );
}

/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;

  color-scheme: dark;
  background: var(--black);
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

body.coffee-page {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  color: var(--white);
  background: var(--black);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a,
button,
input {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color:
    transparent;
}

button {
  cursor: pointer;
}

/* =====================================================
   HEADER
===================================================== */

.main-header {
  width: 100%;
  height: 84px;

  padding:
    0
    clamp(
      28px,
      4.5vw,
      82px
    );

  position: relative;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  background: var(--black);
}

.brand-logo {
  min-width: 0;
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;

  text-decoration: none;
}

.brand-logo img {
  width: 210px;
  height: 54px;

  display: block;

  object-fit: contain;
  object-position: left center;

  filter:
    drop-shadow(
      0 2px 10px
      rgba(
        0,
        0,
        0,
        0.52
      )
    );
}

.main-menu {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap:
    clamp(
      26px,
      3vw,
      50px
    );
}

.main-menu a,
.menu-trigger {
  padding: 12px 0;

  position: relative;

  color:
    rgba(
      255,
      255,
      255,
      0.74
    );

  background: transparent;
  border: 0;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;

  text-shadow:
    0 2px 12px
    rgba(
      0,
      0,
      0,
      0.70
    );

  transition:
    color 180ms ease;
}

.main-menu a::after,
.menu-trigger::after {
  content: "";

  width: 0;
  height: 1px;

  position: absolute;
  left: 0;
  bottom: 3px;

  background: var(--white);

  transition:
    width 180ms ease;
}

.main-menu a:hover,
.menu-trigger:hover,
.main-menu a.active,
.menu-trigger.active {
  color: var(--white);
}

.main-menu a:hover::after,
.menu-trigger:hover::after,
.main-menu a.active::after,
.menu-trigger.active::after {
  width: 100%;
}

/* =====================================================
   SINGLE-SCREEN HOMEPAGE
===================================================== */

body.coffee-home-page {
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;

  background: var(--black);
}

body.coffee-home-page.menu-open {
  overflow: hidden;
}

.coffee-home-page .main-header {
  height: 88px;

  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;

  background:
    linear-gradient(
      180deg,
      rgba(
        0,
        0,
        0,
        0.66
      ),
      rgba(
        0,
        0,
        0,
        0.18
      ),
      transparent
    );
}

/* =====================================================
   SHOP COVER
===================================================== */

.coffee-hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  padding:
    108px
    clamp(
      25px,
      4vw,
      72px
    )
    28px;

  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;

  overflow: hidden;

  background-color:
    var(--black);

  background-image:
    url(
      "/images/shopbg.png"
    );

  background-repeat:
    no-repeat;

  background-position:
    center center;

  background-size:
    cover;
}

.coffee-hero::before {
  content: "";

  position: absolute;
  z-index: -2;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(
        0,
        0,
        0,
        0.02
      )
      0%,

      rgba(
        0,
        0,
        0,
        0.02
      )
      43%,

      rgba(
        0,
        0,
        0,
        0.13
      )
      63%,

      rgba(
        0,
        0,
        0,
        0.40
      )
      100%
    );
}

.coffee-hero::after {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(
        0,
        0,
        0,
        0.14
      )
      0%,

      transparent
      28%,

      transparent
      72%,

      rgba(
        0,
        0,
        0,
        0.30
      )
      100%
    );
}

.hero-payment-layout {
  width: min(
    1720px,
    100%
  );

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* =====================================================
   TRANSPARENT GLASS PAYMENT CARD
===================================================== */

.payment-card {
  width: min(
    440px,
    100%
  );

  padding:
    clamp(
      20px,
      2vw,
      28px
    );

  position: relative;
  overflow: hidden;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(
        255,
        255,
        255,
        0.16
      ),
      rgba(
        255,
        255,
        255,
        0.045
      )
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.36
    );

  box-shadow:
    0 28px 70px
    rgba(
      0,
      0,
      0,
      0.26
    ),

    inset
    0
    1px
    0
    rgba(
      255,
      255,
      255,
      0.22
    );

  -webkit-backdrop-filter:
    blur(22px)
    saturate(1.25);

  backdrop-filter:
    blur(22px)
    saturate(1.25);
}

.payment-card::before {
  content: "";

  width: 65%;
  height: 145px;

  position: absolute;
  top: -95px;
  left: -50px;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(
        255,
        255,
        255,
        0.23
      ),
      transparent
      70%
    );

  transform:
    rotate(-18deg);
}

.payment-card::after {
  content: "";

  position: absolute;
  pointer-events: none;
  inset: 0;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.06
    );
}

.payment-card-heading {
  margin-bottom: 15px;

  position: relative;
  z-index: 2;
}

.payment-eyebrow {
  display: block;

  color:
    rgba(
      255,
      255,
      255,
      0.66
    );

  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.payment-card-heading h1 {
  margin:
    8px
    0
    6px;

  color: var(--white);

  font-size:
    clamp(
      29px,
      2.7vw,
      39px
    );

  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.payment-card-heading p {
  margin: 0;

  color:
    rgba(
      255,
      255,
      255,
      0.75
    );

  font-size: 12px;
  line-height: 1.5;
}

/* =====================================================
   PAYMENT SUMMARY
===================================================== */

.payment-summary {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 0;

  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.23
    );

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.23
    );
}

.payment-summary span {
  color:
    rgba(
      255,
      255,
      255,
      0.70
    );

  font-size: 11px;
}

.payment-summary strong {
  color: var(--white);

  font-size:
    clamp(
      24px,
      2.4vw,
      33px
    );

  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* =====================================================
   QR CODE
===================================================== */

.qr-wrapper {
  width: 100%;

  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
}

.qr-frame {
  width: min(
    210px,
    62vw
  );

  max-width: 100%;
  aspect-ratio: 1 / 1;

  padding: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    rgba(
      255,
      255,
      255,
      0.97
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.85
    );

  box-shadow:
    0 20px 46px
    rgba(
      0,
      0,
      0,
      0.24
    );

  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.benefitpay-qr {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;
}

/* =====================================================
   PAYMENT BUTTON
===================================================== */

.payment-form {
  width: 100%;
  margin-top: 16px;

  position: relative;
  z-index: 2;
}

.pay-button,
.return-button {
  width: 100%;
  min-height: 52px;

  padding:
    0
    19px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  color: var(--white);

  background:
    rgba(
      0,
      0,
      0,
      0.17
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.72
    );

  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.075em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pay-button span,
.return-button span {
  min-width: 0;

  overflow-wrap: anywhere;
}

.pay-button svg,
.return-button svg,
.pay-button i,
.return-button i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 180ms ease;
}

/* =====================================================
   PAYMENT METHOD ICONS
===================================================== */

.payment-icons {
  width: 100%;
  margin-top: 12px;

  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(
      6,
      minmax(
        0,
        1fr
      )
    );

  gap: 5px;
}

.payment-icon {
  width: 100%;
  min-width: 0;
  height: 32px;

  padding: 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    rgba(
      255,
      255,
      255,
      0.96
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.75
    );

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.payment-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;
}

/* =====================================================
   CHOOSE COFFEE BUTTON
===================================================== */

.choose-coffee-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding:
    0
    12px;

  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color:
    rgba(
      255,
      255,
      255,
      0.86
    );

  background:
    rgba(
      255,
      255,
      255,
      0.07
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.23
    );

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.choose-coffee-button svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================
   COFFEE MENU MODAL
===================================================== */

.coffee-menu-modal[hidden] {
  display: none !important;
}

.coffee-menu-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 22px;
}

.coffee-menu-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(
      0,
      0,
      0,
      0.32
    );

  -webkit-backdrop-filter:
    blur(8px)
    saturate(1.15);

  backdrop-filter:
    blur(8px)
    saturate(1.15);
}

/* =====================================================
   GLASS COFFEE MENU PANEL
===================================================== */

.coffee-menu-panel {
  width: min(
    980px,
    100%
  );

  max-height:
    calc(
      100dvh - 44px
    );

  padding:
    clamp(
      22px,
      3vw,
      36px
    );

  position: relative;
  z-index: 2;

  overflow-y: auto;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(
        255,
        255,
        255,
        0.18
      ),
      rgba(
        255,
        255,
        255,
        0.055
      )
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.36
    );

  box-shadow:
    0 35px 90px
    rgba(
      0,
      0,
      0,
      0.38
    ),

    inset
    0
    1px
    0
    rgba(
      255,
      255,
      255,
      0.22
    );

  -webkit-backdrop-filter:
    blur(28px)
    saturate(1.30);

  backdrop-filter:
    blur(28px)
    saturate(1.30);
}

.coffee-menu-panel::before {
  content: "";

  width: 360px;
  height: 200px;

  position: absolute;
  top: -120px;
  left: -90px;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(
        255,
        255,
        255,
        0.18
      ),
      transparent
      70%
    );
}

/* =====================================================
   MENU HEADER
===================================================== */

.coffee-menu-panel-header {
  margin-bottom: 25px;

  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.menu-panel-eyebrow {
  display: block;

  color:
    rgba(
      255,
      255,
      255,
      0.67
    );

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.coffee-menu-panel-header h2 {
  margin:
    8px
    0
    8px;

  color: var(--white);

  font-size:
    clamp(
      34px,
      4vw,
      54px
    );

  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.coffee-menu-panel-header p {
  margin: 0;

  color:
    rgba(
      255,
      255,
      255,
      0.71
    );

  font-size: 12px;
  line-height: 1.5;
}

.menu-close-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  color: var(--white);

  background:
    rgba(
      255,
      255,
      255,
      0.09
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.27
    );

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.menu-close-button svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* =====================================================
   COFFEE OPTIONS
===================================================== */

.coffee-options-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 11px;
}

.coffee-option {
  width: 100%;
  min-height: 160px;

  padding: 18px;

  position: relative;

  display: grid;

  grid-template-columns:
    48px
    minmax(
      0,
      1fr
    );

  align-items: start;

  gap:
    14px
    15px;

  color: var(--white);

  background:
    rgba(
      255,
      255,
      255,
      0.06
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.21
    );

  text-align: left;

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

/* =====================================================
   COFFEE CUP ICON
===================================================== */

.coffee-cup-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  color:
    rgba(
      255,
      255,
      255,
      0.90
    );

  background:
    rgba(
      255,
      255,
      255,
      0.10
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.20
    );

  border-radius: 50%;

  box-shadow:
    inset
    0
    1px
    0
    rgba(
      255,
      255,
      255,
      0.12
    );
}

.coffee-cup-icon svg {
  width: 26px;
  height: 26px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================
   COFFEE OPTION TEXT
===================================================== */

.coffee-option-content {
  min-width: 0;
}

.coffee-option-content strong {
  display: block;

  color: var(--white);

  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.coffee-option-content small {
  display: block;
  margin-top: 7px;

  color:
    rgba(
      255,
      255,
      255,
      0.66
    );

  font-size: 10px;
  line-height: 1.5;
}

.coffee-option-price {
  grid-column: 2;
  align-self: end;

  color:
    rgba(
      255,
      255,
      255,
      0.91
    );

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* =====================================================
   SELECTED COFFEE
===================================================== */

.coffee-option.is-active {
  background:
    rgba(
      255,
      255,
      255,
      0.17
    );

  border-color:
    rgba(
      255,
      255,
      255,
      0.70
    );

  box-shadow:
    inset
    0
    0
    0
    1px
    rgba(
      255,
      255,
      255,
      0.11
    );
}

.coffee-option.is-active::after {
  content: "Selected";

  position: absolute;
  top: 13px;
  right: 13px;

  color:
    rgba(
      255,
      255,
      255,
      0.84
    );

  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* =====================================================
   RESULT PAGE
===================================================== */

.result-screen {
  width: 100%;

  min-height:
    calc(
      100vh - 84px
    );

  min-height:
    calc(
      100dvh - 84px
    );

  display: grid;

  grid-template-columns:
    minmax(
      0,
      55%
    )
    minmax(
      360px,
      45%
    );

  overflow: hidden;

  background: var(--black);
}

.result-machine-side {
  width: 100%;
  min-height: 620px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      ellipse at 48% 46%,
      rgba(
        105,
        15,
        19,
        0.20
      )
      0%,

      rgba(
        40,
        8,
        10,
        0.10
      )
      29%,

      transparent
      62%
    ),
    var(--black);
}

.result-machine-image {
  width: 88%;
  height: 91%;

  max-width: 100%;
  max-height: 100%;

  position: relative;
  z-index: 3;

  display: block;

  object-fit: contain;
  object-position: center;

  filter:
    brightness(0.93)
    contrast(1.08)
    saturate(1.03)
    drop-shadow(
      0 34px 40px
      rgba(
        0,
        0,
        0,
        0.68
      )
    );
}

.result-side {
  width: 100%;
  min-width: 0;
  min-height: 620px;

  padding:
    clamp(
      30px,
      4.5vh,
      58px
    )
    clamp(
      26px,
      3vw,
      54px
    );

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(
        165,
        31,
        37,
        0.055
      ),
      transparent
      45%
    ),
    var(--black);
}

.result-content {
  width: min(
    480px,
    100%
  );

  max-width: 100%;
  min-width: 0;
}

.result-status-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 26px;

  display: grid;
  place-items: center;

  border:
    1px solid
    currentColor;

  border-radius: 50%;

  font-size: 26px;
}

.successful-result
.result-status-icon {
  color: var(--green);
}

.failed-result
.result-status-icon {
  color: var(--danger);
}

.result-content h1 {
  max-width: 100%;
  margin: 0;

  font-size:
    clamp(
      40px,
      4.5vw,
      70px
    );

  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;

  overflow-wrap: anywhere;
}

.result-message {
  margin:
    22px
    0
    28px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}

.receipt-details {
  width: 100%;
  margin-bottom: 22px;

  border-top:
    1px solid
    var(--line);
}

.receipt-details > div {
  width: 100%;
  min-height: 51px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  border-bottom:
    1px solid
    var(--line);
}

.receipt-details span {
  flex: 0 0 auto;

  color: var(--muted);

  font-size: 11px;
}

.receipt-details strong {
  min-width: 0;

  color: var(--white);

  font-size: 12px;
  text-align: right;

  overflow-wrap: anywhere;
}

.receipt-reference {
  max-width: 265px;

  overflow-wrap: anywhere;
  word-break: break-word;

  font-family:
    Consolas,
    monospace;
}

.coffee-ready {
  margin-bottom: 20px;
  padding: 14px 0;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--green);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

/* =====================================================
   DESKTOP HOVER
===================================================== */

@media (hover: hover) {

  .qr-frame:hover {
    transform:
      translateY(-3px);

    box-shadow:
      0 28px 65px
      rgba(
        0,
        0,
        0,
        0.32
      );
  }

  .pay-button:hover,
  .return-button:hover {
    color: var(--black);
    background: var(--white);
    border-color: var(--white);

    transform:
      translateY(-2px);

    box-shadow:
      0 15px 35px
      rgba(
        0,
        0,
        0,
        0.30
      );
  }

  .pay-button:hover svg,
  .return-button:hover svg,
  .pay-button:hover i,
  .return-button:hover i {
    transform:
      translateX(5px);
  }

  .payment-icon:hover {
    transform:
      translateY(-2px);

    opacity: 0.92;
  }

  .choose-coffee-button:hover {
    background:
      rgba(
        255,
        255,
        255,
        0.13
      );

    border-color:
      rgba(
        255,
        255,
        255,
        0.39
      );

    transform:
      translateY(-1px);
  }

  .menu-close-button:hover {
    background:
      rgba(
        255,
        255,
        255,
        0.17
      );

    border-color:
      rgba(
        255,
        255,
        255,
        0.44
      );

    transform:
      rotate(4deg);
  }

  .coffee-option:hover {
    transform:
      translateY(-2px);

    background:
      rgba(
        255,
        255,
        255,
        0.12
      );

    border-color:
      rgba(
        255,
        255,
        255,
        0.42
      );
  }

  .coffee-option.is-active:hover {
    background:
      rgba(
        255,
        255,
        255,
        0.19
      );

    border-color:
      rgba(
        255,
        255,
        255,
        0.78
      );
  }

}

/* =====================================================
   MEDIUM DESKTOP
===================================================== */

@media (max-width: 1100px) {

  .coffee-hero {
    background-position:
      43%
      center;
  }

  .payment-card {
    width: min(
      410px,
      100%
    );
  }

  .coffee-options-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }

}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 850px) {

  .main-header {
    height: 76px;

    padding:
      0
      22px;
  }

  .brand-logo img {
    width: 160px;
    height: 43px;
  }

  .coffee-home-page
  .main-header {
    height: 76px;
  }

  .coffee-hero {
    padding:
      98px
      20px
      25px;

    background-position:
      39%
      center;
  }

  .payment-card {
    width: min(
      390px,
      100%
    );

    padding: 22px;
  }

  .payment-card-heading h1 {
    font-size: 31px;
  }

  .payment-summary strong {
    font-size: 27px;
  }

  .qr-frame {
    width: 205px;
  }

  .payment-icons {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }

  .payment-icon {
    height: 35px;
  }

  .result-screen {
    grid-template-columns:
      1fr;
  }

  .result-machine-side {
    min-height: 500px;
  }

  .result-side {
    min-height: auto;

    padding:
      55px
      30px
      70px;
  }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

  body.coffee-home-page {
    overflow-y: auto;
  }

  body.coffee-home-page.menu-open {
    overflow: hidden;
  }

  .main-header,
  .coffee-home-page
  .main-header {
    height: 68px;

    padding:
      0
      15px;
  }

  .brand-logo img {
    width: 122px;
    height: 35px;
  }

  .main-menu {
    gap: 17px;
  }

  .main-menu a,
  .menu-trigger {
    padding: 10px 0;

    font-size: 10px;
  }

  .coffee-hero {
    min-height: 100vh;
    min-height: 100dvh;

    padding:
      285px
      12px
      25px;

    align-items: flex-end;

    background-position:
      31%
      center;
  }

  .coffee-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(
          0,
          0,
          0,
          0.08
        )
        0%,

        transparent
        30%,

        rgba(
          0,
          0,
          0,
          0.22
        )
        53%,

        rgba(
          0,
          0,
          0,
          0.64
        )
        100%
      );
  }

  .coffee-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(
          0,
          0,
          0,
          0.14
        ),

        transparent
        36%,

        rgba(
          0,
          0,
          0,
          0.36
        )
        100%
      );
  }

  .payment-card {
    width: 100%;

    padding:
      20px
      16px;

    background:
      linear-gradient(
        145deg,
        rgba(
          255,
          255,
          255,
          0.18
        ),
        rgba(
          255,
          255,
          255,
          0.065
        )
      );

    -webkit-backdrop-filter:
      blur(19px)
      saturate(1.20);

    backdrop-filter:
      blur(19px)
      saturate(1.20);
  }

  .payment-card-heading h1 {
    font-size: 28px;
  }

  .payment-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .payment-summary strong {
    font-size: 28px;
  }

  .qr-frame {
    width: min(
      200px,
      64vw
    );
  }

  .payment-icons {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );

    gap: 7px;
  }

  .payment-icon {
    height: 36px;
  }

  .coffee-menu-modal {
    padding: 12px;
  }

  .coffee-menu-panel {
    max-height:
      calc(
        100dvh - 24px
      );

    padding:
      21px
      15px;
  }

  .coffee-menu-panel-header {
    margin-bottom: 20px;
  }

  .coffee-menu-panel-header h2 {
    font-size: 34px;
  }

  .coffee-options-grid {
    grid-template-columns:
      1fr;
  }

  .coffee-option {
    min-height: 118px;

    grid-template-columns:
      44px
      minmax(
        0,
        1fr
      );

    padding:
      16px;
  }

  .coffee-cup-icon {
    width: 44px;
    height: 44px;
  }

  .coffee-cup-icon svg {
    width: 24px;
    height: 24px;
  }

  .result-machine-side {
    min-height: 420px;
  }

  .result-machine-image {
    width: 94%;
    height: 94%;
  }

  .result-side {
    padding:
      42px
      20px
      calc(
        55px +
        env(
          safe-area-inset-bottom
        )
      );
  }

  .receipt-details > div {
    min-height: auto;
    padding: 14px 0;

    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .receipt-details strong {
    width: 100%;

    text-align: left;
  }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

  .main-header,
  .coffee-home-page
  .main-header {
    height: 64px;

    padding:
      0
      12px;
  }

  .brand-logo img {
    width: 108px;
    height: 31px;
  }

  .main-menu {
    gap: 13px;
  }

  .main-menu a,
  .menu-trigger {
    font-size: 9px;
  }

  .coffee-hero {
    padding:
      250px
      10px
      18px;

    background-position:
      29%
      center;
  }

  .payment-card {
    padding:
      18px
      13px;
  }

  .payment-card-heading h1 {
    font-size: 26px;
  }

  .payment-card-heading p {
    font-size: 11px;
  }

  .payment-summary strong {
    font-size: 26px;
  }

  .qr-frame {
    width: min(
      185px,
      62vw
    );
  }

  .pay-button,
  .return-button {
    min-height: 50px;

    padding:
      0
      15px;

    font-size: 9px;
  }

  .payment-icon {
    height: 34px;
  }

  .choose-coffee-button {
    min-height: 40px;

    font-size: 8px;
  }

  .coffee-menu-panel-header h2 {
    font-size: 31px;
  }

  .coffee-menu-panel-header p {
    font-size: 11px;
  }

  .menu-close-button {
    width: 38px;
    height: 38px;
  }

  .coffee-option {
    min-height: 112px;

    padding:
      15px
      13px;
  }

  .coffee-option-content strong {
    font-size: 17px;
  }

  .coffee-option.is-active::after {
    right: 10px;
    top: 10px;
  }

}

/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 340px) {

  .brand-logo img {
    width: 94px;
  }

  .main-menu {
    gap: 9px;
  }

  .main-menu a,
  .menu-trigger {
    font-size: 8px;
  }

  .coffee-hero {
    padding-top: 225px;
  }

  .qr-frame {
    width: min(
      170px,
      61vw
    );
  }

  .payment-icons {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }

}

/* =====================================================
   MOBILE LANDSCAPE
===================================================== */

@media
(max-height: 540px)
and
(orientation: landscape)
and
(max-width: 950px) {

  .main-header,
  .coffee-home-page
  .main-header {
    height: 58px;
  }

  .brand-logo img {
    width: 106px;
    height: 29px;
  }

  .coffee-hero {
    padding:
      72px
      22px
      20px;

    background-position:
      center
      center;
  }

  .payment-card {
    width: min(
      360px,
      100%
    );

    padding: 16px;
  }

  .payment-card-heading {
    margin-bottom: 8px;
  }

  .payment-card-heading h1 {
    margin:
      5px
      0;

    font-size: 24px;
  }

  .payment-card-heading p {
    display: none;
  }

  .payment-summary {
    margin-bottom: 8px;
    padding: 8px 0;
  }

  .payment-summary strong {
    font-size: 22px;
  }

  .qr-frame {
    width: 138px;
    padding: 6px;
  }

  .payment-form {
    margin-top: 8px;
  }

  .pay-button {
    min-height: 41px;
  }

  .payment-icons {
    margin-top: 7px;
  }

  .payment-icon {
    height: 27px;
  }

  .choose-coffee-button {
    min-height: 34px;
    margin-top: 7px;
  }

}

/* =====================================================
   ASSET STABILITY
===================================================== */

.brand-logo img,
.benefitpay-qr,
.payment-icon img,
.result-machine-image {
  -webkit-user-drag: none;
  user-select: none;
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (
  prefers-reduced-motion:
  reduce
) {

  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }

}