/* TODO: Added "new" chip for new products */
/* TODO: Added price crossout view for products which have price drops */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
}

main,
header,
footer,
section,
aside,
nav {
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

:root {
  --black: #000;
  --ink: #1a1b1f;
  --white: #fff;
  --soft-gray: #efefef;
  --muted-text: #6b6b6b;
  --brand-red: #9c2d33;
  --brand-red-light: #d87379;
  --brand-green: #5e9f60;
  --success-green: #04b700;
  --header-side-width: 200px;
  --site-min-width: 1100px;
}

html {
  overflow-x: auto;
}

body {
  min-width: var(--site-min-width);
  color: var(--ink);
  background: var(--soft-gray);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.site-header {
  color: var(--white);
  background: var(--black);
}

.header-top-bar {
  display: grid;
  grid-template-columns: var(--header-side-width) minmax(320px, 1fr) var(--header-side-width);
  align-items: center;
  gap: 32px;
  padding: 18px 4% 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-self: start;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-name {
  font-family: "Varela Round", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.drink-search-form {
  display: flex;
  gap: 0;
  justify-self: center;
  width: min(100%, 500px);
  max-width: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
}

.drink-search-form:focus-within {
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

.drink-search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0 16px;
  outline: none;
}

.drink-search-input::placeholder {
  color: rgba(255, 255, 255, .68);
}

.drink-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  height: 42px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .34);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  padding: 0;
  font-weight: 600;
  transition: background-color .18s ease;
}

.drink-search-button:hover {
  background: rgba(255, 255, 255, .12);
}

.search-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
  width: max-content;
  min-width: var(--header-side-width);
  justify-content: flex-end;
  margin-left: 0;
}

.header-icon-link,
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
}

.header-icon-link img,
.menu-toggle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-icon-link img {
  width: 30px;
  height: 30px;
}

.header-icon-link {
  width: auto;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.header-profile-label {
  white-space: nowrap;
}

.header-profile-image-container {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: var(--white);
}

.header-icon-link .header-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-profile-menu {
  position: relative;
  display: inline-flex;
}

.header-profile-trigger {
  position: relative;
  z-index: 61;
}

.header-profile-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.header-profile-menu:hover .header-profile-caret,
.header-profile-menu:focus-within .header-profile-caret,
.header-profile-menu.is-open .header-profile-caret {
  transform: translateY(1px) rotate(225deg);
}

.header-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: grid;
  width: 278px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}

.header-profile-dropdown::before {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 100%;
  width: 100%;
  height: 14px;
}

.header-profile-dropdown::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: calc(100% - 5px);
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  border-left: 1px solid rgba(0, 0, 0, .08);
  background: var(--white);
  transform: rotate(45deg);
}

.header-profile-menu:hover .header-profile-dropdown,
.header-profile-menu:focus-within .header-profile-dropdown,
.header-profile-menu.is-open .header-profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-profile-dropdown-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  appearance: none;
  background: transparent;
  color: var(--black);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.header-profile-dropdown-item:hover,
.header-profile-dropdown-item:focus {
  background: #f3f3f3;
  outline: none;
}

.header-profile-dropdown-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8f8f8;
}

.header-profile-dropdown-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.header-profile-dropdown-icon-wide img {
  width: 24px;
  height: 16px;
}

.menu-toggle {
  display: none;
}

.category-navigation {
  display: flex;
  justify-content: center;
  gap: 34px;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  border-top: 0;
  padding: 14px 48px 22px;
  overflow: visible;
}

.category-navigation a {
  flex: 0 0 auto;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 20px;
  text-transform: uppercase;
}

.content-page {
  min-height: 620px;
  background: var(--soft-gray);
  padding: 48px 4%;
}

.content-shell {
  width: min(100%, 920px);
  margin: 0 auto;
}

.content-shell-wide {
  width: min(100%, 1040px);
}

.content-intro {
  margin-bottom: 22px;
}

.content-kicker {
  margin: 0 0 8px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-intro h1 {
  margin: 0;
  color: var(--black);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
}

.content-intro > p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.6;
}

.content-card-list {
  display: grid;
  gap: 14px;
}

.content-card {
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 6px;
  background: var(--white);
  padding: 22px;
}

.content-card h2 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.content-card p {
  margin: 0;
  color: var(--muted-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.content-card p + p {
  margin-top: 10px;
}

.content-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.content-card a {
  color: var(--brand-red);
  font-weight: 700;
}

.content-legal-document {
  color: var(--muted-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.content-legal-document h2 {
  margin-top: 22px;
}

.content-legal-document h2:first-child {
  margin-top: 0;
}

.content-legal-document h4,
.content-legal-document h5 {
  margin: 18px 0 8px;
  color: var(--black);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.content-legal-document p {
  color: var(--muted-text);
}

.content-legal-document ul {
  margin-bottom: 0;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.content-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--black);
  border-radius: 5px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.content-action-primary {
  background: var(--black);
  color: var(--white);
}

.content-action-secondary {
  background: var(--white);
  color: var(--black);
}

.content-action:hover {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: var(--white);
}

.content-inquiry-card {
  border-color: rgba(156, 45, 51, .2);
}

.content-inquiry-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.content-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-inquiry-form input,
.content-inquiry-form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  text-transform: none;
}

.content-inquiry-form input {
  height: 48px;
}

.content-inquiry-form textarea {
  min-height: 150px;
  resize: vertical;
}

.content-inquiry-form input:focus,
.content-inquiry-form textarea:focus {
  border-color: rgba(156, 45, 51, .55);
  box-shadow: 0 0 0 3px rgba(156, 45, 51, .1);
}

.content-form-submit {
  width: auto;
  justify-self: start;
  cursor: pointer;
}

.content-form-alert {
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #f8f8f8;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.content-form-alert p {
  margin: 0;
}

.content-form-alert p + p {
  margin-top: 6px;
}

.content-form-alert-error {
  border-color: rgba(156, 45, 51, .36);
  background: rgba(156, 45, 51, .08);
  color: var(--brand-red);
}

.content-form-alert-success {
  border-color: rgba(94, 159, 96, .38);
  background: rgba(94, 159, 96, .1);
  color: #3e7740;
}

.contact-layout {
  display: grid;
  gap: 16px;
}

.contact-detail-card,
.contact-map-card {
  display: grid;
  gap: 14px;
}

.contact-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-method {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: #fbfbfb;
  color: var(--ink);
  padding: 10px 12px;
}

.content-card .contact-method {
  color: var(--ink);
}

.contact-method:hover {
  border-color: rgba(156, 45, 51, .38);
  background: rgba(156, 45, 51, .04);
}

.contact-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
}

.contact-method-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-method span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-method strong {
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-map-frame {
  position: relative;
}

.contact-map-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .76) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .76) 1px, transparent 1px),
    linear-gradient(135deg, #dfe9dd, #eef1ea 38%, #d9e5ed);
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--black);
}

.contact-static-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.contact-directions-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.content-card .contact-directions-button {
  color: var(--white);
}

.contact-map-placeholder::before,
.contact-map-placeholder::after {
  content: "";
  position: absolute;
  inset: auto -20px 28%;
  height: 26px;
  background: rgba(255, 255, 255, .72);
  transform: rotate(-13deg);
}

.contact-map-placeholder::after {
  inset: 34% -28px auto;
  height: 20px;
  background: rgba(156, 45, 51, .12);
  transform: rotate(24deg);
}

.contact-map-static::before,
.contact-map-static::after {
  display: none;
}

.contact-map-label,
.contact-map-place,
.contact-map-pin {
  position: relative;
  z-index: 1;
}

.contact-map-label {
  align-self: start;
  justify-self: start;
  margin: 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  padding: 7px 10px;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-map-pin {
  width: 38px;
  height: 38px;
  border: 8px solid var(--brand-red);
  border-radius: 50% 50% 50% 0;
  background: var(--white);
  transform: rotate(-45deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.contact-map-place {
  margin-top: 12px;
  border-radius: 5px;
  background: var(--white);
  padding: 9px 12px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-map-coordinates {
  margin: 0;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.contact-map-card address {
  margin: 0;
  color: var(--muted-text);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}

.site-footer {
  color: var(--white);
  background: var(--black);
  padding: 50px 10% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  justify-items: center;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-grid h2 {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-grid a {
  color: rgba(255, 255, 255, .65);
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-detail-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-detail-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.age-warning {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.age-warning img {
  width: 28px;
  height: 28px;
}

.age-warning p,
.copyright {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  text-align: center;
  font-size: 12px;
}

.copyright {
  margin-top: 16px;
}

.referral-dialog-open {
  overflow: hidden;
}

.referral-dialog-backdrop[hidden],
.referral-dialog[hidden] {
  display: none;
}

.referral-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .48);
}

.referral-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1001;
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  width: min(calc(100% - 40px), 780px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.referral-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dedede;
  border-radius: 50%;
  appearance: none;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.referral-dialog-close:hover {
  background: #f7f7f7;
}

.referral-dialog-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  padding: 36px 26px;
}

.referral-dialog-media img {
  width: min(100%, 300px);
  height: auto;
}

.referral-dialog-body {
  padding: 46px 42px 38px;
}

.referral-dialog-body h2 {
  margin: 0 44px 14px 0;
  color: var(--black);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.referral-dialog-body p {
  margin: 0;
  color: #6f6f6f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.referral-code-panel {
  margin-top: 26px;
}

.referral-code-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.referral-code-panel strong {
  display: inline-flex;
  max-width: 100%;
  border: 1px dashed var(--brand-red);
  border-radius: 6px;
  color: var(--black);
  padding: 12px 18px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.referral-invite-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  border: 0;
  border-radius: 5px;
  background: var(--brand-green);
  color: var(--white);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.referral-invite-action:hover {
  background: #77bf79;
}

.referral-dialog-body .referral-copy-status {
  min-height: 20px;
  margin-top: 10px;
  color: #2657C0;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .content-page {
    padding: 34px 4%;
  }

  .content-intro h1 {
    font-size: 30px;
  }

  .content-form-grid {
    grid-template-columns: 1fr;
  }

  .content-form-submit {
    width: 100%;
  }

  .contact-method-list {
    grid-template-columns: 1fr;
  }

  .referral-dialog {
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), 520px);
  }

  .referral-dialog-media {
    padding: 26px 58px 18px;
  }

  .referral-dialog-body {
    padding: 24px 24px 30px;
  }

  .referral-dialog-body h2 {
    font-size: 24px;
  }

  .referral-code-panel strong {
    font-size: 22px;
  }
}
