/*  __    _  _  _     */
/* /__|  / \|_)|_||   */
/* \_||__\_/|_)| ||__ */
/* VARIABLES: containers, margins, colors */
:root {
  --max-width: 1440px;
  --padding-page-x: max(100px, calc(calc(100vw - var(--max-width)) / 2));
  
  --default-font-size: 16px;
  --default-line-height: 20px;
  --color-dark-blue: #0E1D33;
  --color-sky-blue: #2274A5;
  --color-white: #FFFFFF;
  --color-cream: #F2EDE4;
  --color-light-blue: rgba(34, 116, 165, 0.05);
  --color-pink: #9B6A6C;

  --transition-speed: .5s;
}

@media (min-width: 900px) {
  --default-font-size: 16px;
  --default-line-height: auto;
}

/* RESET */
* {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: calc(0.875 * var(--default-font-size));
  line-height: var(--default-line-height);
  font-weight: 300; /* light */
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
  color: var(--color-dark-blue);
}

a {
  text-decoration: none;
  color:  var(--color-dark-blue);
}

a.active {
  text-decoration: underline;
}

ul {
  list-style: none;
}
ul, ol {
  list-style-position: inside;
}

hr {
  border: none;
  border-top: 1px solid rgba(14, 29, 51, 0.10);
}

@media (max-width: 900px) {
  .no-mobile {
    display: none !important;
  }
}

/* FONT STYLES */
.label {
  font-size: calc(0.875 * var(--default-font-size));
  font-weight: 700; /* bold */
}
small {
  font-size: calc(0.75 * var(--default-font-size));
  font-weight: 400; /* regular */
  
}
.h1 {
  font-size: calc(3 * var(--default-font-size));
  line-height: calc(4 * var(--default-font-size));
  font-weight: 300; /* light */
}
.h2 {
  font-size: calc(3 * var(--default-font-size));
  font-weight: 500; /* medium */
}
.h3 {
  font-size: calc(2 * var(--default-font-size));
  font-weight: 500; /* medium */
}
.h4 {
  font-size: calc(1.5 * var(--default-font-size));
  font-weight: 600; /* semi-bold */
}
.h5 {
  font-size: calc(1.25 * var(--default-font-size));
  font-weight: 500; /* medium */
  text-align: center;
}

.h5b {
  text-align: left;
}
.h6 {
  font-size: calc(1.25 * var(--default-font-size));
  font-weight: 300; /* light */
}
.h7 {
  font-size: calc(1 * var(--default-font-size));
  font-weight: 500; /* medium */
}

sup, sub {
  font-size: .7em;
}		    

/* BREADCRUMBS */
.breadcrumbs {
  display: none;
}

/* DEFAULT DETAILS POPUP */
/* ON VARIOUS PAGES */
details {
  transition: max-height 2s;
  position: relative;
}
summary {
  list-style: none;
  cursor: pointer;
  transition: margin var(--transition-speed);
}

summary ~ * {
  opacity: 0;
  transition: opacity var(--transition-speed);
}

summary::after {
  content: " ";
  background-image: url("../images/chevron.229d3285b0bd.svg");
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(90deg);
  position: absolute;
  right: 12px;
  transition: transform var(--transition-speed);
}

details[open] > summary {
  margin-bottom: 10px;
}

details[open] > summary ~ * {
  opacity: 1;
}

details[open] > summary::after {
  transform: rotate(-90deg);
}  

summary::-webkit-details-marker {
  display: none;
}

/* DEFAULT VIDEO FORMAT */
iframe {
  margin: 20px 0px;
  aspect-ratio: 1280/720;
}

/* FORMS/INPUTS */
input {
  outline: none;
}

input[type=text], input[type=email], input[type=tel], input[type=number], select {
  height: 42px;
  padding: 0px 15px;
  border: 1px solid rgba(14, 29, 51, 0.40);
  background-color: var(--color-white);
}

input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=number]:focus, select:focus {
  border: 1px solid var(--color-sky-blue);
}

textarea {
  min-height: 126px;
  padding: 15px;
  border: 1px solid rgba(14, 29, 51, 0.40);
  background-color: var(--color-white);
}

button, input[type=submit] {
  cursor: pointer;
}

.error {
  color: var(--color-pink);
}
.error input {
  border-color: var(--color-pink);
}

/* BUTTONS STYLES AND TRANSITIONS */
button.primary, a.primary, input.primary {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0px 15px;
  transition: all var(--transition-speed);
}

button.white, a.white, input.white {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border: 1px solid var(--color-white);
}
button.white:hover, a.white:hover, input.white:hover,
button.white2:hover, a.white2:hover, input.white2:hover {
  background-color: var(--color-sky-blue);
  color: var(--color-white);
  border: 1px solid var(--color-sky-blue);
}

button.white2, a.white2, input.white2 {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

button.dark, a.dark, input.dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border: 1px solid var(--color-dark-blue);
}
button.dark:hover, a.dark:hover, input.dark:hover {
  background-color: var(--color-sky-blue);
  border: 1px solid var(--color-sky-blue);
}

button.transparent, a.transparent, input.transparent {
  background-color: transparent;
  color: var(--color-dark-blue);
  border: 1px solid var(--color-sky-blue);
}
button.transparent:hover, a.transparent:hover, input.transparent:hover {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border: 1px solid var(--color-dark-blue);
}
button.transparent:hover img {
  filter: brightness(255);
}

/* LINK STYLES AND TRANSITIONS */
a.secondary {
  display: block;
  margin: 20px 0px;
  color: var(--color-sky-blue);
  font-weight: 600; /* semi-bold */
  font-size: 1.125 * var(--default-font-size);
  width: max-content;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-image: linear-gradient(var(--color-sky-blue), var(--color-sky-blue));
  background-position-y: 100%;
  transition:  background-size var(--transition-speed);
  padding-bottom: 3px;
  cursor: pointer;
  font-size: var(--default-font-size);
}
a.secondary:after {
  content: " ";
  background-image: url("../images/rightarrow.121c14fab0af.svg");
  width: 20px;
  height: 1em;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  vertical-align: sub;
  margin-left: 14px;
  transition: margin-left var(--transition-speed);
}

a.secondary:hover {
  color: var(--color-sky-blue);
  background-size: calc(100% - 40px) 2px;
}
a.secondary:hover:after {
  margin-left: 20px;
}

a.secondary.inline {
  display: inline;
}

/* SOCIAL ICONS */
.social ul {
  display: flex;
  gap: 25px;
}
.social ul img {
  height: 21px;
}

/* GENERAL HEADER */
body > header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 400; /* regular */
  position: sticky;
  top: 0px;
  background-color: var(--color-white);
  z-index: 2;
}
body > header h1 img {
  width: 149px;
  height: auto;
}
body > header div {
  display: flex;
  gap: 20px;
  align-items: center;
}
body > header nav {
  position: relative;
  display: flex;
  justify-content: center;
}
body > header div img {
  width: 24px;
  height: 24px;
}
@keyframes cart {
  0% {
    filter: invert(0);
  }

  50% {
    filter: invert(1);
  }
  100% {
    filter: invert(0);
  }
}
body > header #cart {
  position: relative;
  display: inline-block;
  height: 24px;
}

body > header #cart.pending {
  animation: 2s cart;
  animation-fill-mode: backwards; 
}

body > header #cart.pending::before {
  content: " ";
  position: absolute;
  background-color: var(--color-sky-blue);
  width: 8px;
  height: 8px;
  border-radius: 4px;
  right: -2px;
  top: 2px;
  z-index: 2;
}
body > header nav a {
  color: var(--color-white);
}
body > header nav ul a img {
  filter: invert(1) brightness(3);
}

body > header button {
  border: none;
  text-transform: uppercase;
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 5px 15px;
  font-weight: 400; /* regular */
  transition: background var(--transition-speed);
}
body > header ul {
  position: absolute;
  background-color: var(--color-dark-blue);
  top: 0;
  text-align: center;
  max-height: 0px;
  padding: 0px 10px 0px 10px;
  overflow: hidden;
  transition: all var(--transition-speed);
}
body > header ul.visible {
  max-height: 200px;
  padding: 10px 10px 5px 10px;
  display: initial;
}

body > header li {
  padding: 2px;
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  cursor: pointer;
}

body > header li:first-child {
  padding: 5px 0px 2px 0px;
  background-color: var(--color-white);
  color: var(--color-dark-blue);
}

/* PRE-FOOTER / NEWSLETTER FORM */
aside.nl {
  margin-top: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 85%, rgba(14,29,51,1) 85%, rgba(14,29,51,1) 100%);
}

aside.nl h2 {
  margin-bottom: 10px;
}

aside.nl > div {
  width: 230px;
  background-color: var(--color-cream);
  border-radius: 5px;
  padding: 25px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
aside.nl > div form {
  display: flex;
  flex-direction: column;
}

aside.nl > div form button {
  margin-top: 20px;
}

/* FOOTER */
footer {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 30px 16px;
}
footer .social ul {
  margin-top: 30px;
}
footer .social ul img {
  filter: invert(1) brightness(3);
}

footer .links ul {
  columns: 2;
  margin: 20px 0px 60px 0px;
}
footer .links li {
  margin-bottom: 20px;
}

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

footer .gettheapp img {
  margin-top: 5px;
}

footer small:last-child {
  display: block;
  padding-top: 20px;
}

/* CAROUSEL DEFAULT */
/* ON VARIOUS PAGES */
.carousel nav button.next img {
  transform: rotate(180deg);
}

.carousel ul {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  align-items: stretch;
  scrollbar-color: transparent transparent;  
}
.carousel li {
  scroll-snap-align: start;
}
.carousel nav {
  margin: 20px 0px;
  display: flex;
  justify-content: center;
  gap: 30px;
}
.carousel nav button.next img {
  transform: rotate(180deg);
}

/* CUSTOM ORDER SECTION */
/* ON VARIOUS PAGE */
.customorder {
  margin: 40px 16px 50px 16px;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 3px;
  background:
    linear-gradient(to right, white, white),
    linear-gradient(259deg, #497280 0%, #F2EDE4 29%, #497280 100%);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.customorder h2 {
  margin-top: 20px; 
}

.customorder img {
  max-width: 50%;
  margin: 20px 0px;
}

.customorder .primary {
  font-size: calc(1.125 * var(--default-font-size));
  font-weight: 600; /* semi-bold */
}

section h2 {
  margin: 40px 0px 10px 0px;
}

/* SOCIAL SHARING MODAL */
/* CURRENTLY ONLY ON PRODUCT PAGE */
.socialmodal {
  z-index: 5;
  position: absolute;
  width: 350px;
  max-width: calc(100vw - 32px);
  left: 16px;
  box-sizing: border-box;
  border: none;
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0px 0px 3px 3px var(--color-light-blue);
  padding: 20px;
}

.socialmodal .soc-share {
  height: 30px;
  width: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: flex-end;
  border: 1px solid var(--color-sky-blue);
  border-radius: 50%;
  margin-right: 10px;
}
.socialmodal p {
  margin: 1.5em 0 .5em 0;
}

.socialmodal .soc-clipboard input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 30px;
}

.socialmodal .soc-clipboard button {
  position: absolute;
  border: none;
  background-color: transparent;
  right: 24px;
  margin-top: 14px;
}
.socialmodal .soc-clipboard button img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.socialmodal .close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

/* CART NAVIGATION */
/* ON CART, CHECKOUT, STRIPE, AND COMPLETE */
nav.cart-nav {
  padding: 16px;
}
nav.cart-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}
nav.cart-nav li {
  opacity: .5;
}
nav.cart-nav li.active {
  opacity: 1;
}

nav.cart-nav li:after {
  content: " ";
  background-image: url("../images/chevron.229d3285b0bd.svg");
  width: 9px;
  height: 9px;
  margin: 0px 6px 0px 4px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(180deg);
}


/* GDPR consent banner */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(100vw, 500px);
  z-index: 5;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border: solid 1px #eee;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 10px calc(10px + var(--padding-page-x));
}

.gdpr-message {
  padding: 15px 0;
}

.gdpr-control {
  display: contents;
}

.gdpr-control .label, .gdpr-control a {
  height: 2.5rem;
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #eee;
  padding: 10px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 50%;
  cursor: pointer;
  align-items: center;
}

.hidden {
  display: none;
}

.cookies main {
  margin: 15px;
}

.cookies th, .cookies td {
  border: 1px solid black;
  padding: 10px;
  font-weight: normal;
}

.cookies main ul {
  list-style: disc inside;
}

.cookies a {
  overflow-wrap: anywhere;
}


@media (max-width: 700px){
  .cookies table thead {
    display: none;
  }

  .cookies table tr{
    display: block;
    margin-bottom: 40px;
  }

  .cookies table td {
    display: block;
  }
}

/******************************/
/* DESKTOP                    */
/******************************/
@media (min-width: 900px) {
  body {
    font-size: var(--default-font-size);
  }

  .h5 {
    font-size: calc(2 * var(--default-font-size));
    font-weight: 500; /* medium */
  }
  .primary.h5 {
    font-size: var(--default-font-size);
  }

  .no-desktop {
    display: none !important;
  }

  body > header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  
  body > header, main {
    padding-left: var(--padding-page-x);
    padding-right: var(--padding-page-x);
  }
  body > header img {
    width: 297px;
  }
  
  /* BREADCRUMBS */
  .breadcrumbs {
    display: block;
    padding: 16px var(--padding-page-x);
  }
  .breadcrumbs a {
    opacity: .5;
    transition: opacity .5s;
  }
  .breadcrumbs a:hover {
    opacity: 1;
  }
  .breadcrumbs span {
    opacity: .5;
    padding: 0px 8px;
  }

  aside.nl {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(14,29,51,1) 50%, rgba(14,29,51,1) 100%);
  }
  
  aside.nl > div {
    width: unset;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    margin-left: calc(var(--padding-page-x) + 85px);
    margin-right: calc(var(--padding-page-x) + 85px);
    padding: 40px;
  }
  aside.nl > div form {
    display: initial;
  }
  aside.nl > div form button {
    margin-top: 0;
  }
  
  body > footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-left: calc(var(--padding-page-x) + 85px);
    padding-right: calc(var(--padding-page-x) + 85px);
  }
  body > footer .links ul {
    margin-top: 0;
  }
  
  body > footer small:last-child {
    border-top: 1px solid var(--color-white);
    flex: 0 0 100%;
  }
    
  .customorder {
    margin: 50px auto 50px auto;
    max-width: 50%;
  }
}

