:root {
  /* For horizontal dividers, define the color and widths */
  --horizontal-divider-color: #888888;
  --header-horizontal-divider-width: 0;
  --footer-horizontal-divider-width: 0;

  /* For centered header logo */
  --header-logo-justify-content: center;
  --desktop-header-logo-justify-content: start;
  /* For uppercase button text */
  --body-button-text-transform: none;

  /* For rounded buttons */
  --body-action-btn-radius: 0;

  --header-logo-height: 1.3rem;
  --body-action-btn-width: 100%;
  --body-txt-color: black;
  --footer-bg-color: var(--default-bg-color);

  /* white label defaults */
  --default-bg-color: #cccccc;
  --header-footer-max-width: 90rem;
  --text-content-max-width: 64rem;
  --base-font-family: sans-serif;
  --header-bg-color: var(--default-bg-color);
  --header-panel-padding: 0.8rem 1rem;
  --body-visit-msg-font-family: var(--base-font-family);
  --body-visit-msg-font-size: 1.8rem;
  --body-visit-msg-font-weight: normal;
  --body-brand-invite-font-family: var(--base-font-family);
  --body-brand-invite-font-size: 1.2rem;
  --body-action-btn-font-size: 1rem;
  --action-btn-color: var(--default-bg-color);
  --body-action-btn-letter-spacing: normal;
  --body-action-btn-font-weight: normal;
  --body-action-btn-border-color: 1px solid var(--default-bg-color);
  --body-panel-buttons-section-padding: 3rem 1.5rem;
  --footer-txt-size: 1rem;
  --footer-container-help-gap: 1rem;

  --desktop-header-logo-height: 1.8rem;
  --desktop-body-visit-msg-font-size: 2.4rem;
  --desktop-body-brand-invite-font-size: 1.4rem;
  --desktop-body-min-height: 25rem;

  --color-legal-content-background: #ffffff;
  --desktop-font-legal-content-h1-font-size: 2rem;
  --desktop-font-legal-content-h3-font-size: 1.125rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  height: 100%;
  font-size: 100%;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  line-height: 1.6;
  background-color: var(--body-bg-color);
  color: var(--body-txt-color);
  font-family: var(--base-font-family);
  position: relative;
}

a {
  text-decoration: none;
}

sup {
  font-size: 0.4em;
}

.header {
  background: var(--header-bg-color);
  padding: var(--header-panel-padding);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .container {
  display: flex;
  justify-content: var(--header-logo-justify-content);
  line-height: 1;
}

.brand-logo {
  height: var(--header-logo-height);
}

.body-content {
  display: flex;
  flex-direction: column;
  min-width: 20rem;
}

.image-section {
  overflow: hidden;
  max-height: 60vh;
}

.main-product-image {
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.buttons-section {
  padding: var(--body-panel-buttons-section-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  text-align: center;
  position: relative;
  height: 100%;
}

.panel-visit-message {
  color: var(--body-visit-msg-color);
  font-family: var(--body-visit-msg-font-family);
  font-size: var(--body-visit-msg-font-size);
  font-weight: var(--body-visit-msg-font-weight);
  line-height: 1.2;
}

.panel-brand-invite {
  color: var(--body-panel-brand-invite-color);
  font-family: var(--body-brand-invite-font-family);
  font-size: var(--body-brand-invite-font-size);
  font-weight: var(--body-brand-invite-font-weight);
  line-height: 1.1;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 20rem;
  justify-items: center;
  padding: 0.5rem 0;
}

.action-btn {
  display: block;
  min-width: 12rem;
  width: var(--body-action-btn-width);
  padding: 1rem;
  border: var(--body-action-btn-border-color);
  border-radius: var(--body-action-btn-radius);
  background-color: var(--action-btn-color);
  color: var(--action-btn-txt-color);
  font-size: var(--body-action-btn-font-size);
  font-weight: var(--body-action-btn-font-weight);
  letter-spacing: var(--body-action-btn-letter-spacing);
  text-align: center;
}

a.action-btn {
  color: var(--action-btn-txt-color);
  text-transform: var(--body-button-text-transform);
}

/* Footer Section */
.footer {
  padding: 3rem 1rem;
  background: var(--footer-bg-color);
  color: var(--footer-txt-color);
  text-align: center;
  font-family: var(--base-font-family);
  font-size: var(--footer-txt-size);
  z-index: 10;
}

.footer a {
  color: var(--footer-txt-color);
}

.footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--footer-container-help-gap);
}

/* Override third party styles */
#ot-sdk-btn.ot-sdk-show-settings {
  background: transparent !important;
  font-size: var(--footer-txt-size) !important;
  margin: 0;
  cursor: pointer !important;
  color: var(--footer-txt-color) !important;
  padding: 0 !important;
}

.footer .separator {
  display: inline-block;
  margin: 0 0.5rem;
}

@media (min-width: 768px) {
  body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    min-height: 75vh;
  }

  .header .container {
    justify-content: var(--desktop-header-logo-justify-content);
  }

  .container {
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    max-width: var(--header-footer-max-width);
  }

  .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 4rem;
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: var(--desktop-header-logo-height);
  }

  .main-body {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--body-bg-color);
    width: 100%;
    /* height: calc(100vh - 10rem); */
  }

  .body-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: var(--desktop-body-min-height);
  }

  .image-section {
    display: grid;
    place-items: center;
    height: 100%;
    max-height: 100%;
    min-height: var(--desktop-body-min-height);
  }

  .panel-visit-message {
    font-size: var(--desktop-body-visit-msg-font-size);
  }

  .panel-brand-invite {
    font-size: var(--desktop-body-brand-invite-font-size);
    line-height: 1.4;
  }

  .main-product-image {
    height: 100%;
    min-height: var(--desktop-body-min-height);
  }

  .buttons-section {
    padding: 3rem;
  }

  /* Separator between header and footer */
  .buttons-section::before,
  .buttons-section::after {
    content: "";
    height: 0;
    width: 90%;
    border: 0 solid var(--horizontal-divider-color);
    position: absolute;
    left: 50%;
    transform: translate(-50%);
  }
  .buttons-section::before {
    top: 0;
    border-top-width: var(--header-horizontal-divider-width);
  }
  .buttons-section::after {
    bottom: 0;
    border-top-width: var(--footer-horizontal-divider-width);
  }

  .footer {
    display: flex;
    height: 6rem;
    padding: 0 1rem;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer .container:has(> :only-child) {
    justify-content: center;
  }
}

@media (min-height: 700px) {
  .image-section {
    max-height: calc(100vh - 10rem);
  }
}
