/* Topology Portal */

/* Small only */
@media screen and (max-width: 49.9375em) {
}

/* Medium and up */
@media screen and (min-width: 50em) {
}

/* Medium only */
@media screen and (min-width: 50em) and (max-width: 63.9375em) {
}

/* Large and up */
@media screen and (min-width: 64em) {
}

h1,
h2,
h3,
h4 {
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

:root {
  --topology-cream: #f6f6f1;
  --topology-pink: #ede3e6;
  --topology-green: #49c758;
  --topology-red: #de2525;
  --light-grey: #8a8a8a;
  /* Legacy Brand Colours */
  --rust: #cc6d2b;
  --autumn-green: #828061;
  /* Current brand colours */
  --calla-lily: #fafaf8;
  --overnight-oats: #f3ede8;
  --ceramic: #c4b9a6;
  --forrest: #3d452c;
  --dusk-blue: #93a2a6;
  --dusk-blue-transparent: #93a2a659;
  --midnight: #1a1919;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16.5px;
  color: var(--midnight);
}

html,
body {
  scroll-behavior: smooth;
}

body.login {
  background-color: var(--overnight-oats);
}

b,
strong {
  font-weight: 600;
}

a {
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, var(--dusk-blue-transparent) 65%);
  background-size: auto 114%;
  background-position: bottom;
  background-repeat: no-repeat;
  transition: all 350ms ease;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  display: inline;
  text-decoration: none;
  color: var(--midnight);
  cursor: pointer;
}

a:hover,
a.current-menu-item {
  background-size: auto 250%;
}

/* Large and up */
@media screen and (min-width: 64em) {
  #sidebar {
    width: 13%;
  }

  .grid-x main.large-10 {
    width: 87%;
    padding-bottom: 50px;
  }
}

/* Login */

.login-container {
  min-height: 100vh;
}

.login-container .cell {
  background-color: white;
  padding: 50px 20px;
  max-width: 400px;
}

.login-container .logo {
  display: block;
  margin: 0 auto 22px;
}

/* Topbar */

#topbar {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 0px 15px 0 rgb(60 64 67 / 21%);
}

.topbar-contents {
  display: flex;
  padding: 20px;
  justify-content: space-between;
}

.logo {
  width: 180px;
  height: auto;
  align-self: center;
  margin-bottom: -21px;
}

.client-topbar .logo {
  margin-bottom: -8px;
}

.account-area {
  display: flex;
  align-items: center;
}

.account-area .profile {
  border-radius: 99px;
  display: flex;
  align-items: center;
}

.account-area a {
  margin-left: 15px;
  margin-right: 8px;
}

.account-area img {
  width: 36px;
  height: auto;
  border-radius: 50%;
  margin-left: 5px;
  padding: 3.5px 0;
}

.account-area span {
  min-width: 340px;
  text-align: right;
  padding: 8px 14px;
  transition: all 500ms ease;
}

.account-area .progress-mode {
  background: var(--dusk-blue);
  color: white;
  border-radius: 20px;
  animation: pulse-opacity 1s infinite ease-in-out;
  text-align: left;
}

.account-area .progress-mode.finished {
  background: var(--topology-green);
  animation: unset;
}

.menu {
  margin-left: 50px;
  margin-right: auto;
  display: flex;
  align-items: center;
}

.menu a {
  margin-right: 35px;
  position: relative;
}

.menu a .notification-counter {
  position: absolute;
  background: var(--dusk-blue);
  border-radius: 100px;
  height: 15px;
  width: 15px;
  color: white;
  text-align: center;
  font-size: 11px;
  line-height: 15px;
  top: -6px;
}

.menu a:last-of-type {
  margin-right: 0;
}

.search {
  position: relative;
  min-width: 300px;
  margin: 0 auto;
}

.search svg {
  position: absolute;
  width: 19px;
  right: 20px;
  top: 9px;
  bottom: 0;
  opacity: 0.3;
}

.search input {
  width: 100%;
}

/* Title Bar */
.title-bar {
  padding: 25px 35px;
  background-color: var(--ceramic);
  color: var(--midnight);
}

.title-bar h1 {
  margin: 0;
  text-align: center;
}

/* Sidebar */

#sidebar {
  background-color: var(--overnight-oats);
  z-index: 1;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  position: sticky;
  padding-top: 15px;
  top: 84px;
  height: calc(100vh - 84px);
  overflow-y: scroll;
  padding-bottom: 20px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.sidebar-menu::-webkit-scrollbar {
  display: none;
}

.menu-heading {
  padding: 12px 12px 12px 25px;
  margin-top: 10px;
  background: var(--dusk-blue);
  color: white;
}

.sidebar-menu a {
  background: none;
  padding: 12px 12px 12px 25px;
  display: flex;
  align-items: center;
}

.sidebar-menu a.current,
.sidebar-menu a.current:hover {
  background: white;
  opacity: 1 !important;
}

.sidebar-menu > a .menu-expander svg {
  width: 14px;
}

.sidebar-menu a:hover {
  background: var(--ceramic);
}

.sidebar-menu a:last-of-type {
  margin-bottom: 0%;
}

.sidebar-menu.ready .categories {
  max-height: 0;
  transition: all 300ms ease;
}

.sidebar-menu .categories a {
  font-size: 15px;
  font-weight: 300;
  padding: 3px 0 3px 35px;
  transition: all 100ms ease;
  display: flex;
  align-items: center;
}

.sidebar-menu.ready .subcategories {
  max-height: 0;
  transition: all 200ms ease;
}

.overflow-hidden {
  overflow: hidden;
  opacity: 0;
}

.sidebar-menu .subcategories.open {
  margin: 4px auto 6px;
}

.sidebar-menu .subcategories a {
  font-size: 14px;
  opacity: 0.7;
  padding-left: 58px;
}

.sidebar-menu .subcategories a:hover {
  opacity: 1;
}

.sidebar-menu button.menu-expander {
  border: none;
  padding: 0;
  background: none;
  padding: 0 5px;
  display: flex;
}

.menu-expander {
  transition: transform 200ms ease;
}

.menu-expander.open {
  transform: rotate(90deg);
}

.menu-expander svg {
  width: 11px;
}

#collapse-sidebar {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  position: fixed;
  bottom: 0;
  left: -5px;
  z-index: 1;
  width: 35px;
  height: 36px;
  padding: 9px;
  padding-right: 4px;
}

#collapse-sidebar svg {
  fill: var(--forrest);
  transition: all 200ms ease;
}

#collapse-sidebar:hover svg {
  fill: var(--dusk-blue);
}

#collapse-sidebar.active svg {
  transform: rotate(180deg);
}

body.collapse-sidebar #sidebar {
  width: 30px;
}

body.collapse-sidebar #sidebar .sidebar-menu {
  opacity: 0;
}

.grid-x main.large-10,
.edit-project,
#admin-product-totals,
#sidebar {
  transition: all 200ms;
}

body.collapse-sidebar .grid-x main.large-10 {
  width: calc(100% - 30px);
}

body.collapse-sidebar .edit-project {
  max-width: unset;
  padding-left: 110px;
}

body.collapse-sidebar .grid-x {
  flex-wrap: nowrap;
}

.sidebar-menu a,
.sidebar-menu .menu-heading {
  transition: opacity 200ms ease 200ms;
}

body.collapse-sidebar .sidebar-menu a,
body.collapse-sidebar .sidebar-menu .menu-heading {
  transition: unset;
  opacity: 0;
}

body.collapse-sidebar #admin-product-totals {
  width: calc(100% - 30px);
}

/* Product tiles */
.app-body {
  min-height: calc(100vh - 167px);
  position: relative;
  transition: all 100ms ease;
}

.loading {
  opacity: 0.55;
  filter: blur(1.3px);
  pointer-events: none;
}

.product-grid {
  margin: 15px;
}

.product-tile,
.product-group-tile {
  margin: 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--overnight-oats);
  border-radius: 15px;
  overflow: hidden;
}

.product-group-tile {
  overflow: visible;
}

.product-group-images {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto auto;
  padding: 10px;
  position: relative;
}

.product-group-images a {
  background: none;
  display: block;
  position: relative;
}

.product-group-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  padding: 5px;
  aspect-ratio: 1 / 1;
}

.image-container {
  flex: 1;
  position: relative;
}

.image-container .image-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 300ms ease;
}

.image-container .icons-container {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  padding: 15px;
  transition: opacity 300ms ease;
  display: flex;
  z-index: 1;
}

.image-container .icons-container .button,
.group-title-container .button {
  background: transparent;
  border: none;
  color: white;
  font-weight: 300;
  font-size: 15px;
  padding: 0;
  outline: none;
  transition: opacity 300ms ease;
  cursor: pointer;
}

.image-container .icons-container .button:hover,
.group-title-container .button:hover {
  opacity: 0.7;
}

.group-title-container .button {
  display: block;
}

.image-container .icons-container .button svg,
.group-title-container .button svg {
  fill: white;
  height: 32px;
  width: auto;
  margin-left: 10px;
  position: relative;
  top: -1px;
  pointer-events: none;
}

.group-title-container .button svg {
  fill: var(--light-grey);
  display: block;
  height: 27px;
}

.products-mini-menu {
  position: absolute;
  right: 40px;
  width: 220px;
  top: 40px;
  background: white;
  padding: 0px;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  -webkit-box-shadow: 0px 0px 14px -1px rgba(0, 0, 0, 0.67);
  box-shadow: 0px 0px 14px -1px rgba(0, 0, 0, 0.67);
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
  overflow: hidden;
  z-index: 1;
}

.products-mini-menu li:hover {
  background-color: var(--overnight-oats);
}

.products-mini-menu li {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
}

.products-mini-menu li a {
  display: flex;
  background: none;
  align-items: center;
}

.products-mini-menu li.drop-menu-padding {
  padding: 0;
}

.products-mini-menu li.drop-menu-padding a {
  padding: 12px 16px;
  width: 100%;
}

.products-mini-menu hr {
  margin: 0;
  width: calc(100% - 30px);
  margin-left: 15px;
  border-top: none;
  border-color: #d3d3d3;
}

.products-mini-menu li svg {
  width: 20px;
  margin-right: 10px;
}

.products-mini-menu.active {
  opacity: 1;
  pointer-events: all;
}

.products-mini-menu li[data-favourite='true'] svg {
  fill: #ff0070;
}

.meta-container {
  position: absolute;
  width: 100%;
  height: auto;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  opacity: 0;
  font-size: 13px;
  transition: opacity 300ms ease;
}

.meta-container svg {
  margin-right: 6px;
  height: 16px;
  fill: white;
}

.product-group-tile .meta-container {
  opacity: 1;
  position: static;
  color: var(--light-grey);
  padding: 0 15px 15px;
}

.product-group-tile .meta-container svg {
  fill: var(--light-grey);
}

.created-on,
.created-by {
  display: flex;
  align-items: center;
  padding: 15px;
}

.product-group-tile .created-on,
.product-group-tile .created-by {
  padding: 0;
}

.image-container:hover .image-overlay,
.image-container:hover .icons-container,
.image-container:hover .meta-container,
.products-mini-menu.active ~ .image-overlay,
.products-mini-menu.active ~ .icons-container,
.products-mini-menu.active ~ .meta-container {
  opacity: 1;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100px;
}

.product-info {
  flex: 1;
  padding: 15px;
  position: relative;
}

.product-group-tile .product-info {
  border-top: 1px solid var(--overnight-oats);
  background: var(--overnight-oats);
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
}

.product-info .products-mini-menu {
  top: 16px;
  right: 51px;
  -webkit-box-shadow: 0px 0px 14px -1px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 14px -1px rgba(0, 0, 0, 0.2);
}

.brand {
  text-transform: uppercase;
  font-size: 15px;
}

.product-info h3 {
  margin-top: 0;
}

.group-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.group-title-container h3 {
  margin-bottom: 0;
}

.product-info textarea {
  width: 100%;
}

.product-info p {
  line-height: 1.4;
  font-size: 15px;
}

.product-group-tile .product-info p {
  white-space: pre-wrap;
  margin-bottom: 0;
  margin-top: 0;
}

.extra-details p {
  margin: 0;
}

.view-link {
  width: calc(100% + 30px);
  display: block;
  background: var(--calla-lily);
  margin: 15px -15px -15px -15px;
  text-align: center;
  height: 43px;
  line-height: 43px;
}

.view-link:hover {
  background: var(--dusk-blue);
  color: white;
}

.group-product-info-box {
  pointer-events: none;
  position: fixed;
  z-index: 1;
  opacity: 0;
  transition: opacity 300ms ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background: var(--overnight-oats);
  padding: 15px;
  width: 300px;
  height: auto;
}

.group-product-info-box h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.group-product-info-box p {
  margin: 0;
  font-size: 15px;
}

.group-product-info-box.show {
  opacity: 1;
}

.remove-product-from-group {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 1;
  opacity: 0;
  transition: opacity 300ms ease;
  padding: 10px;
  width: auto;
  height: auto;
  cursor: pointer;
}

.product-group-images a:hover .remove-product-from-group {
  opacity: 0.6;
}

.product-group-images a:hover .remove-product-from-group:hover {
  opacity: 1;
}

.remove-product-from-group svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: var(--dusk-blue);
  pointer-events: none;
  background: white;
  border-radius: 50%;
}

.remove-product-from-group.show {
  pointer-events: auto;
}

.create-group-prompt label {
  text-align: left;
  margin-top: 10px;
}

/* Pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination span {
  color: var(--dusk-blue);
}

.pagination a,
.pagination span {
  margin: 0 3px;
}

.pagination .page-number {
  background: none;
}

.current-page {
  font-weight: 300;
}

.total-products {
  text-align: right;
  margin-right: 30px;
}

/* Product Search */

.search input:focus + svg {
  display: none;
}

.no-results {
  display: none;
  padding-left: 40px;
  font-weight: 400;
}

/* Product filters */

.product-grid-controls {
  top: 83px !important;
}

.product-grid-controls #brand {
  padding: 8px 15px 8px 15px;
  background: white;
}

.product-grid-controls .toggle-container label {
  margin-right: 5px;
  margin-bottom: 0;
}

/* Products Lazy Loading */

.load-wrapper.placeholder-image {
  height: 200px;
}

.load-wrapper.placeholder-title {
  width: 75%;
  height: 35px;
  margin-bottom: 20px;
}

.load-wrapper.text-line {
  width: 60%;
  height: 25px;
  margin-bottom: 11px;
}

.load-wrapper.text-line-2 {
  width: 40%;
  height: 25px;
  margin-bottom: 11px;
}

.view-link.load-wrapper {
  width: calc(100% + 30px);
  height: 43px;
}

.load-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: var(--calla-lily);
  z-index: 1;
  overflow: hidden;
}

.activity {
  position: absolute;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  background: linear-gradient(
    135deg,
    rgba(211, 223, 232, 0.5) 30%,
    rgba(169, 184, 197, 0.5) 38%,
    rgba(168, 182, 193, 0.6) 41%,
    rgba(168, 182, 193, 0.6) 50%,
    rgba(168, 182, 193, 0.6) 50%,
    rgba(169, 184, 197, 0.6) 51%,
    rgba(211, 223, 232, 0.6) 57%,
    rgba(211, 223, 232, 0.6) 80%,
    rgba(211, 223, 232, 0.6) 80%
  );
  background-size: 1200% 1200%;
  animation: loading 2s ease infinite reverse;
  z-index: 45;
}

@keyframes loading {
  0% {
    background-position: 0% 92%;
  }

  100% {
    background-position: 100% 9%;
  }
}

#total-pages {
  display: none;
}

/* Add to group bar */

.add-to-group-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  width: 87%;
  right: 0;
  background: var(--forrest);
  color: white;
  padding: 20px;
  z-index: 2;
  transition: all 200ms ease;
  min-height: 129px;
}

body.collapse-sidebar .add-to-group-bar {
  width: calc(100% - 30px);
}

.group-products-scoller {
  display: flex;
  flex: 0 0 calc(100% - 100px);
  gap: 15px;
}

.add-to-group-heading {
  background: var(--dusk-blue);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  margin: 0;
}

.group-product {
}

.group-product p {
  margin: 0;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes wiggle {
  0% {
    transform: rotate(10deg) scale(1);
  }

  20% {
    transform: rotate(-10deg) scale(1.05);
  }

  40% {
    transform: rotate(20deg) scale(1.1);
  }

  60% {
    transform: rotate(-15deg) scale(1.05);
  }

  80% {
    transform: rotate(10deg) scale(1.1);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.group-product-image {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.group-product-image.wiggle {
  animation-name: wiggle;
  animation-duration: 1000ms;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
}

.group-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  aspect-ratio: 1 / 1;
}

.group-product-image .remove-product-from-group {
  padding-top: 2px;
  padding-right: 2px;
}

.group-product-image:hover .remove-product-from-group {
  opacity: 0.6;
}

.group-product-image:hover .remove-product-from-group:hover {
  opacity: 1;
}

.group-product-controls {
  flex: 0 0 100px;
}

.group-product-controls .button {
  color: var(--dusk-blue);
  background: white;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 10px;
}

.group-product-controls .button:hover {
  background: var(--dusk-blue);
  color: white;
}

#add-to-group-plus {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 1;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  flex-wrap: wrap;
}

.product-group-images #add-to-group-plus {
  height: calc(100% + 32px);
}

.image-container:hover #add-to-group-plus,
.product-group-images:hover #add-to-group-plus {
  opacity: 1;
}

#add-to-group-plus svg {
  pointer-events: none;
  fill: white;
  width: 40px;
  height: auto;
}

#add-group-to-room svg {
  fill: var(--midnight);
  width: 20px;
  padding: 5px 5px 1px 5px;
}

.add-to-group-rooms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Edit Product */

#product-image-form {
  display: none;
}

.edit-product {
  padding-top: 50px;
  padding-left: 44px;
}

.edit-product-image {
  text-align: center;
}

.edit-product-image img {
  max-height: calc(100vh - 297px);
  width: 100%;
  display: block;
  margin: 0 auto 25px;
  object-fit: contain;
}

.edit-product-image #remove-background,
.edit-product-image #restore-background {
  margin-left: 30px;
}

.product-edit-form {
  padding-left: 50px;
}

.product-edit-form label,
.product-edit-form input {
  display: block;
}

label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 5px;
  margin-left: 25.5px;
}

.product-edit-form .field-group {
  display: flex;
  width: 100%;
  max-width: 600px;
}

.product-edit-form .field-group div {
  flex: 1;
}

.product-edit-form .field-group div:first-of-type {
  margin-right: 5px;
}

.product-edit-form .field-group div:last-of-type {
  margin-left: 5px;
}

input,
textarea {
  border: none;
  background: var(--calla-lily);
  padding: 12px 25px;
  border-radius: 50px;
  outline: none;
}

textarea {
  border-radius: 14px;
  padding: 17px 25px;
}

.product-edit-form input,
.product-edit-form textarea {
  width: 100%;
  max-width: 600px;
  margin-bottom: 25px;
}

.product-edit-form .field-group input {
  width: 100%;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  font-family: 'Manrope', sans-serif;
}

::-moz-placeholder {
  /* Firefox 19+ */
  font-family: 'Manrope', sans-serif;
}

:-ms-input-placeholder {
  /* IE 10+ */
  font-family: 'Manrope', sans-serif;
}

:-moz-placeholder {
  /* Firefox 18- */
  font-family: 'Manrope', sans-serif;
}

#save {
  position: absolute;
  right: 35px;
  top: -66px;
  background: transparent;
  border: 1px solid white;
  color: white;
  font-weight: 300;
  outline: none;
  box-shadow: none;
  transition: all 200ms ease;
  padding: 10px 35px;
  border-radius: 50px;
  cursor: default;
  opacity: 0;
}

#save.enabled {
  cursor: pointer;
  opacity: 1;
}

#save.enabled:hover {
  background: white;
  color: var(--midnight);
}

/* Projects */

/* Send Emails Toggle */
.project-table-controls,
.product-grid-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--calla-lily);
  position: sticky;
  top: 76px;
  z-index: 1;
}

.toggle-container {
  display: flex;
  align-items: center;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  margin-right: 8px;
  margin-bottom: 0;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--ceramic);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--dusk-blue);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--dusk-blue);
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

table {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  border-collapse: separate;
  border-spacing: 0 15px;
  font-size: 15px;
}

table thead,
table tfoot {
  text-align: left;
}

table tr {
  transition: all 100ms ease;
}

table thead th,
table tfoot td {
  padding: 0px 18px;
  font-weight: 500;
}

table tbody td {
  background: var(--overnight-oats);
  padding: 10px 18px;
}

table tbody td:first-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  width: 30%;
}

table tbody td:last-child {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  text-align: right;
  padding-right: 20px;
}

/* Bulk AI Products table: respect colgroup widths */
.bulk-items-table {
  table-layout: fixed;
}

/* Override the global first-cell width rule for this specific table */
.bulk-items-table tbody td:first-child {
  width: auto;
}

.bulk-items-table td.col-url a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table .button,
button.button {
  border: 1px solid var(--forrest);
  background: var(--forrest);
  color: white;
  padding: 10px 17px;
  border-radius: 30px;
  display: inline-block;
  cursor: pointer;
  appearance: none;
}

select {
  padding: 8px 15px 8px 15px;
  border: none;
  border-radius: 50px;

  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: linear-gradient(45deg, transparent 50%, var(--midnight) 50%), linear-gradient(135deg, var(--midnight) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(1em + -2px),
    calc(100% - 10px) calc(1em + -2px);
  background-size:
    6px 8px,
    6px 8px;
  background-repeat: no-repeat;
  outline: none;
}

table select {
  position: relative;
  outline: none;
  min-width: 160px;
}

.project-title .button {
  padding: 0;
  border: none;
  margin-left: 10px;
  position: relative;
  top: 4px;
  opacity: 0.1;
  transition: opacity 300ms ease;
  outline: none;
  background: none;
}

.project-title:hover .button {
  opacity: 0.6;
}

.project-title .button:hover {
  opacity: 1;
}

.project-title svg {
  height: 18px;
  width: auto;
  fill: var(--midnight);
}

.update-project {
  opacity: 0;
  margin-right: 8px;
  transition: opacity 300ms ease;
  background: var(--dusk-blue) !important;
  border-color: var(--dusk-blue) !important;
  color: white;
  pointer-events: none;
  outline: none;
}

.update-project.active {
  opacity: 1;
  pointer-events: auto;
}

.update-project.active:hover {
  opacity: 0.8;
}

#projects-table form {
  display: none;
}

#projects-table tbody td {
  background: transparent;
  padding: 10px 0;
}

#projects-table tbody td:first-child {
  padding-left: 18px;
  min-width: 344px;
}

#projects-table tbody td:last-child {
  padding-right: 18px;
}

#projects-table tbody td:not(.project-title) {
  opacity: 0;
  transition: opacity 300ms ease;
}

#projects-table tbody td:first-child {
  font-weight: 400;
}

#projects-table tbody td:nth-of-type(3) {
  opacity: 0.3;
}

#projects-table tr:hover td,
#projects-table .has-changed-row td {
  opacity: 1 !important;
}

#projects-table .updated {
  background: #bdbdb5 !important;
  color: white;
}

/* Project slideout */

.body-darken,
.body-darken-2 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms cubic-bezier(0.33333, 0, 0.66667, 0.33333);
}

.body-darken.enabled {
  pointer-events: auto;
  opacity: 1;
}

#project-slideout {
  background: white;
  position: fixed;
  z-index: 11;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 850px;
  max-width: 100%;
  visibility: hidden;
  transform: translateX(850px);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  background: white;
  outline: none;
}

#project-slideout.open {
  transform: translateX(0) !important;
}

.ready-to-translate {
  transition: transform 0.35s cubic-bezier(0.33333, 0, 0.66667, 0.33333);
  visibility: visible !important;
}

.project-slideout-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-slideout-content h2 {
  margin-top: 0;
}

.slideout-client-details {
  padding: 20px 35px;
  background: var(--midnight);
  color: white;
}

.slideout-client-details .client-details-container {
  display: flex;
  gap: 20px;
  align-items: center;
  &:not(:last-of-type) {
    margin-bottom: 5px;
  }
}

.slideout-client-details a.button {
  position: absolute;
  top: 20px;
  right: 35px;
}

.slideout-client-details label {
  margin: 0;
  width: 45px;
  display: block;
}

.slideout-client-details span {
  color: white;
  background: none;
  margin-left: 0px;
  font-size: 15px;
  height: auto;
  width: 100%;
}

.slideout-client-details p {
  font-size: 15px;
}

.slideout-client-details a {
  color: white;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0.18) 65%);
  background-size: auto 114%;
  background-position: bottom;
  background-repeat: no-repeat;
}

.slideout-client-details a:hover {
  background-size: auto 250%;
}

.slideout-admin-controls {
  padding: 20px 35px;
  background: var(--overnight-oats);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.repeat-client-container {
  background: white;
  border-radius: 50px;
  padding: 3px 0px 3px 15px;
}

.slideout-admin-control {
  display: flex;
  align-items: center;
}

.slideout-control-icon {
  height: 20px;
  width: auto;
  margin-right: 10px;
}

.repeat-client-toggle {
  display: flex;
  align-items: center;
}

.repeat-client-toggle label {
  margin-left: 10px;
}

.slideout-admin-control select,
#google-drive {
  background-color: white;
  padding: 10px 20px;
  font-size: 14px;
  width: 100%;
  border-radius: 50px;
  display: block;
  position: relative;
  outline: none;
  background-position:
    calc(100% - 19px) calc(1em + -1px),
    calc(100% - 13px) calc(1em + -1px);
}

.slideout-editable-input {
  flex: 1;
  position: relative;
  font-size: 14px;
}

.slideout-editable-input button,
#send-message {
  position: absolute;
  right: 6px;
  top: 0px;
  appearance: none;
  border: none;
  background: none;
  padding: 9.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  outline: none;
  cursor: pointer;
  background: white;
  border-radius: 50px;
}

.slideout-editable-input:hover #edit-google-drive {
  opacity: 0.4;
  pointer-events: auto;
}

#edit-google-drive:hover {
  opacity: 1 !important;
}

.slideout-editable-input button svg {
  height: 15px;
  width: auto;
}

#google-drive {
  background: white;
}

.slideout-admin-control button.active {
  opacity: 1;
  pointer-events: auto;
}

#google-drive.disabled {
  cursor: default;
}

.slideout-project-notes {
  padding: 20px 35px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: scroll;
}

.message-box-container {
  margin-top: auto;
  position: sticky;
  bottom: 0;
}

.message-box-container::before {
  content: '';
  background: rgba(255, 255, 255, 0.753);
  height: calc(100% + 50px);
  width: 100%;
  position: absolute;
  bottom: -30px;
  z-index: -1;
  backdrop-filter: blur(9px) saturate(120%);
}

#message-box {
  padding: 8px 13px;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 18px;
  width: 100%;
  resize: none;
  height: 36px;
  min-height: 36px;
}

#send-message {
  right: 7px;
  bottom: 10px;
  opacity: 1;
  height: 25px;
  width: 25px;
  padding: 5px;
  top: auto;
  background: white;
  transition: all 250ms ease;
  cursor: pointer;
}

#send-message svg {
  width: 15px;
  fill: var(--dusk-blue);
  transition: all 250ms ease;
  position: relative;
  left: -1px;
}

#send-message.active {
  pointer-events: auto;
  background: var(--dusk-blue);
}

#send-message.active svg {
  fill: white;
}

.project-message {
  margin-bottom: 22px;
}

.project-message label {
  display: block;
  margin-left: 14px;
  opacity: 0.5;
}

.project-message-content {
  max-width: 70%;
  background: var(--overnight-oats);
  padding: 8px 13px;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 18px;
  white-space: pre-line;
}

.user-message .project-message-content {
  margin-left: auto;
  background: #e3f1df;
}

.user-message label {
  text-align: right;
}

/* Client Portal Settings (in slideout) */

.slideout-tabs {
  display: flex;
}

.slideout-tab-button {
  flex: 0 0 50%;
  border: none;
  appearance: none;
  background: var(--dusk-blue-transparent);
  padding: 10px;
  transition: all 250ms ease;
  cursor: pointer;
}

.slideout-tab-button:not(.active):hover {
  background: var(--dusk-blue);
  color: white;
}

.slideout-tab-button.active {
  background: var(--midnight);
  color: white;
}

.slideout-project-settings {
  padding: 20px 35px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: scroll;
  h3 {
    margin-top: 0;
    margin-bottom: 0;
  }
  &.loading {
    filter: blur(2px);
    pointer-events: none;
  }
}

.slideout-divider {
  background: var(--dusk-blue);
  flex: 0 0 1px;
  margin: 20px 0;
}

.slideout-project-settings .upload-area:has(img) svg {
  display: none;
}

.slideout-project-settings .upload-area p {
  background: white;
  padding: 5px 14px;
  border-radius: 30px;
  margin-top: -5px;
}

.slideout-project-settings .upload-area:hover img {
  z-index: -1;
}

.slideout-project-settings .upload-area img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.banner-upload-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.banner-upload-container .upload-area {
  width: unset;
  height: 200px;
  padding: 10px;
  border-radius: 10px;
  text-transform: unset;
  p {
    margin: 0;
    font-size: 14px;
  }
  svg {
    fill: var(--dusk-blue);
    margin-bottom: 10px;
  }
  &:hover,
  &.highlight {
    border-color: var(--midnight);
    svg {
      fill: var(--midnight);
    }
  }
}

.upload-area.banner-desktop {
  aspect-ratio: 2200 / 1000;
}

.upload-area.banner-mobile {
  aspect-ratio: 750 / 1000;
}

#banner-upload-desktop,
#banner-upload-mobile {
  display: none;
}

.select-featured-products-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.select-featured-products {
  position: relative;
  .featured-product-grid {
    width: 100%;
    .upload-area.select-product:nth-of-type(1) {
      border-radius: 10px 0 0 10px;
    }
    .upload-area.select-product:nth-of-type(2) {
      border-radius: 0 10px 0 0;
    }
    .upload-area.select-product:nth-of-type(3) {
      border-radius: 0 0 10px 0;
    }
  }
}

.featured-product-group-label {
  label {
    margin-top: 10px;
    display: block;
  }
  input {
    border: 1px solid var(--dusk-blue);
    width: 100%;
    display: block;
    margin-bottom: 20px;
    &:focus,
    &:active {
      border-color: var(--midnight);
      outline: none;
    }
  }
}

.upload-area.select-product {
  margin: 0;
  p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
  }
  svg {
    fill: var(--dusk-blue);
    margin-bottom: 10px;
    height: 30px;
  }
  &:hover {
    border-color: var(--midnight);
    svg {
      fill: var(--midnight);
    }
  }
}

#add-featured-product,
#add-swatch {
  margin: 20px 0;
  &:hover {
    opacity: 0.8;
  }
}

#remove-featured-products,
#remove-swatch {
  background: var(--topology-red);
  border-color: var(--topology-red);
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 14px;
  padding: 6px 9px;
  z-index: 1;
  &:hover {
    opacity: 0.8;
  }
}

.swatch-upload-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  input[type='file'] {
    display: none;
  }
  .swatch-form-area {
    label,
    input,
    textarea {
      display: block;
      width: 100%;
    }
    input {
      margin-bottom: 15px;
    }
  }
}

.swatch-upload-container {
  position: relative;
}

.swatch-upload-container .upload-area {
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 10px;
  text-transform: unset;
  margin-top: 0;
  p {
    margin: 0;
    font-size: 14px;
  }
  svg {
    fill: var(--dusk-blue);
    margin-bottom: 10px;
  }
  &:hover,
  &.highlight {
    border-color: var(--midnight);
    svg {
      fill: var(--midnight);
    }
  }
}

.upload-area.swatch-upload {
  aspect-ratio: 800 / 350;
}

#save-project-data {
  margin-top: auto;
  position: sticky;
  bottom: -20px;
  border: none;
  background: var(--midnight);
  padding: 17px;
  margin-left: -35px;
  margin-bottom: -20px;
  margin-top: 20px;
  width: calc(100% + 70px);
  color: white;
  z-index: 2;
  cursor: pointer;
}

#save-project-data.disabled {
  background: var(--dusk-blue);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

#select-featured-product-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  overflow: scroll;
  .body-darken-2 {
    z-index: 10;
  }
  &.active .body-darken-2 {
    pointer-events: auto;
    opacity: 1;
  }
}

#select-featured-product-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#products-for-modal {
  overflow-y: scroll;
  padding: 30px;
  width: calc(100vw - 850px);
  background: white;
  position: relative;
  z-index: 11;
  .pfm-container {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  .select-product-container {
    display: flex;
    gap: 15px;
    cursor: pointer;
    align-items: center;
    &:hover {
      background: var(--calla-lily);
    }
    img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 10px;
    }
    h4,
    p {
      margin: 0;
    }
    h4 {
      margin-bottom: 20px;
    }
  }
}

/* Small only */
@media screen and (max-width: 49.9375em) {
  .fixed-body {
    position: fixed;
    height: 100%;
    overflow: auto;
  }

  #topbar {
    top: -57px;
  }
}

/* Email Popup */

#send-message-popup {
  max-width: 710px !important;
}

#send-message-popup form {
  display: flex;
  flex-direction: column;
  width: 580px;
  margin: 0 auto;
}

#send-message-popup form input[type='submit'] {
  border: 1px solid var(--dusk-blue);
  background: var(--dusk-blue);
  color: white;
  cursor: pointer;
  align-self: center;
}

#send-message-popup form input[type='submit'].sending {
  background: var(--forrest);
  pointer-events: none;
}

#send-message-popup form input[type='text'],
#send-message-popup form textarea {
  margin-bottom: 15px;
}

#send-message-popup form textarea {
  height: 200px;
}

/* Edit project */

.project-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  padding: 20px;
  justify-content: center;
}

.project-meta li {
  background: var(--overnight-oats);
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  margin-right: 15px;
  white-space: nowrap;
  overflow: scroll;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.project-meta li::-webkit-scrollbar {
  display: none;
}

.project-meta li:last-of-type {
  margin-right: 0;
}

.edit-project {
  width: 100%;
  max-width: 1341px;
  margin: 0 auto;
}

.edit-project.live-expenditure {
  width: calc(100% - 176px);
  max-width: 1530px;
  margin: 0 auto 0 157px;
}

.edit-project:not(.approvals-page) .cell {
  padding: 15px;
}

/* Medium and up */
@media screen and (min-width: 50em) {
  .edit-project .project-products-table {
    padding-left: 40px;
  }
}

.add-room-container {
  position: relative;
}

#add-room {
  width: 100%;
  transition: all 100ms ease;
}

#submit-add-room,
.rooms li .button {
  position: absolute;
  right: 6px;
  top: 0px;
  appearance: none;
  border: none;
  background: none;
  padding: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  outline: none;
  cursor: pointer;
}

#submit-add-room.active,
.rooms li .button.active {
  opacity: 1;
  pointer-events: auto;
}

#submit-add-room svg,
.rooms li .button svg {
  height: 15px;
  width: auto;
}

.rooms li .button {
  padding: 14.5px 10px;
}

#delete-room {
  right: 36px;
}

#edit-room,
#delete-room {
  opacity: 0;
  pointer-events: auto;
}

#edit-room svg,
#delete-room svg {
  pointer-events: none;
}

ul.rooms,
ul.status-filters {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.rooms li,
ul.status-filters li {
  background: var(--calla-lily);
  padding: 12px 25px;
  border-radius: 50px;
  margin-bottom: 10px;
  position: relative;
  outline: none;
  transition: all 100ms ease;
  cursor: pointer;
}

ul.rooms li.active {
  background: var(--dusk-blue);
  color: white;
}

ul.rooms li:hover #edit-room,
ul.rooms li:hover #delete-room {
  opacity: 0.5;
}

ul.rooms li:hover #edit-room:hover,
ul.rooms li:hover #delete-room:hover {
  opacity: 1;
}

ul.rooms li:last-of-type {
  margin-bottom: 30px;
}

/* Project Product Table */

.product-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
}

#product-table td.product-image a {
  background: none;
}

#product-table {
  border-collapse: collapse;
}

#product-table tbody td {
  background: transparent;
  border-radius: 0;
}

#product-table tr {
  border-bottom: 1px solid var(--overnight-oats);
}

#product-table:not(.client-product-table) tbody.sortable tr {
  cursor: move;
}

#product-table thead tr:first-of-type {
  border: none;
}

#product-table tr:last-of-type {
  border: none;
}

#product-table tbody td:first-child {
  width: 100px;
}

#product-table tbody td {
  padding: 10px;
}

#product-table thead th {
  padding: 10px;
}

#product-table .product-name {
  width: 200px;
  max-width: 200px;
}

#product-table .indicator-cell {
  width: 117px;
  text-align: center;
  position: relative;
}

#product-table .indicator-large {
  width: 162px;
}

#product-table tr {
  transition: unset;
  background: white;
}

.sortable-chosen.sortable-ghost {
  opacity: 0;
}

.sortable-fallback {
  opacity: 1 !important;
}

#product-table button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 200ms ease;
}

#product-table button:hover {
  opacity: 1;
}

#product-table .indicator-cell svg {
  opacity: 0.6;
  transition: all 200ms ease;
}

#product-table .price {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.5;
}

.project-products-control-group {
  float: right;
  margin-top: -62px;
  display: flex;
  align-items: center;
}

#project-products-sorting {
  background-color: var(--overnight-oats);
  margin-right: 25px;
}

.product-name,
.product-description {
  position: relative;
}

#product-table .brand {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.5;
  text-transform: none;
}

#product-table .product-name button,
#product-table .product-description button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}

#product-table .product-name button svg,
#product-table .product-description button svg {
  height: 15px;
  width: auto;
  pointer-events: none;
}

.indicator-cell button svg {
  pointer-events: none;
}

#product-table .product-name:hover button,
#product-table .product-description:hover button,
#product-table .product-name button.active,
#product-table .product-description button.active {
  opacity: 0.5;
}

#product-table .product-name button:hover,
#product-table .product-description button:hover {
  opacity: 1;
}

#product-table .editable {
  outline-color: white;
  display: block;
}

#product-table .editable[contenteditable='true'] {
  cursor: text;
}

#product-table .project-edit-product-tagline-input {
  width: 100%;
  background: var(--overnight-oats);
  padding: 5px 8px;
}

#product-table button.project-edit-product-description {
  right: -19px;
  z-index: 1;
}

.alt-description-container,
.tagline-container {
  position: relative;
}

.tagline-container {
  margin-top: 10px;
}

.green-svg {
  fill: var(--topology-green);
  opacity: 1 !important;
}

.purchased svg {
  fill: var(--topology-green);
}

.remove-product:hover svg {
  fill: var(--topology-red);
  opacity: 1 !important;
}

.product-image {
  position: relative;
  width: 100px;
}

.product-image .product-room-quantity {
  position: absolute;
  top: 10px;
  right: 0;
  background: var(--dusk-blue);
  color: white;
  padding: 5px 5px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 300ms ease;
}

.product-image .product-room-quantity:hover {
  transform: scale(1.2);
}

.product-room-quantity span {
  pointer-events: none;
}

#admin-product-totals {
  position: fixed;
  bottom: 0;
  width: 87%;
  right: 0;
  background: var(--dusk-blue);
  color: white;
}

#admin-product-totals p {
  margin: 0;
}

.totals-container {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  max-width: 1367px;
  margin: 0 auto;
}

#product-table input,
#product-table textarea {
  padding: 6px 0px;
  width: 97%;
  background: none;
}

#product-table textarea {
  resize: none;
}

.prompt {
  padding: 35px;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 530px;
  text-align: center;
}

.prompt p {
  margin-top: 0;
}

.prompt button {
  align-self: center;
  margin-top: 20px;
}

.prompt textarea {
  margin-top: 15px;
  margin-bottom: 15px;
  resize: none;
}

.button.rust {
  background: var(--dusk-blue);
  border-color: var(--dusk-blue);
}

.button[disabled='disabled'],
.button:disabled,
.button.disabled {
  opacity: 0.7;
  pointer-events: none;
}

/* Live Expenditure */

.subheading-banner {
  background: var(--calla-lily);
  padding: 20px;
  border-radius: 45px;
  margin-top: 40px;
  font-weight: 600;
}

.button.ready-to-save {
  animation: pulse 1s infinite alternate;
}

.heading-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heading-flex-container h2 {
  flex: 1;
}

.tabs-container {
  display: flex;
}

.tabs-container .subheading-banner {
  margin: 0;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 300ms ease;
}

.tabs-container .subheading-banner:not(.active):hover {
  background: var(--forrest);
  color: white;
}

.tabs-container .subheading-banner.active {
  background: var(--dusk-blue);
  color: white;
}

.tabs-container .subheading-banner:first-of-type {
  margin-right: 15px;
}

.live-expenditure table {
  max-width: unset;
  border-spacing: 0 4px;
}

.live-expenditure:not(.client-live-expenditure) table tbody tr {
  cursor: move;
}

.live-expenditure table tbody td {
  border-top: 1px solid var(--overnight-oats);
  border-bottom: 1px solid var(--overnight-oats);
  background: white;
}

.live-expenditure tfoot td {
  padding-top: 12px;
  padding-bottom: 12px;
  border: 1px solid var(--ceramic);
}

.live-expenditure tfoot {
  background: var(--ceramic);
}

.live-expenditure tfoot td:first-of-type {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  text-align: right;
}

.live-expenditure tfoot td:last-of-type {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.live-expenditure table td:focus {
  outline: none !important;
}

.live-expenditure td:last-of-type {
  width: 160px;
}

.live-expenditure table tbody td:first-child {
  width: 178px;
  border-left: 1px solid var(--overnight-oats);
}

.live-expenditure table tbody td:last-child {
  text-align: left;
  border-right: 1px solid var(--overnight-oats);
}

.live-expenditure tfoot td:last-child {
  padding-right: 20px;
}

.live-expenditure table td input,
.live-expenditure table td textarea {
  padding: 0;
  border-radius: 0;
  background: white;
}

.live-expenditure table td input:read-only {
  background: #bbbbbb;
  color: #565656;
  cursor: not-allowed;
}

.live-expenditure table tbody td.disabled,
input.disabled,
textarea.disabled {
  background: #bbbbbb !important;
  cursor: not-allowed;
}

.live-expenditure table td input[type='number'] {
  width: calc(100% - 10px);
}

.live-expenditure table td input[type='date'] {
  width: 140px;
}

.live-expenditure table td textarea {
  height: 18.4px;
}

#e-design-expenditure .notes-container {
  margin-top: 40px;
}

/* Possible table width workaround */

#furniture-table tbody td:first-child,
#furniture-table th:first-child {
  width: 5%;
}

#furniture-table tbody td:nth-child(2),
#furniture-table th:nth-child(2) {
  width: 16%;
}

#furniture-table tbody td:nth-child(3),
#furniture-table th:nth-child(3) {
  width: 8%;
}

#furniture-table tbody td:nth-child(4),
#furniture-table th:nth-child(4) {
  width: 8%;
}

#furniture-table tbody td:nth-child(5),
#furniture-table th:nth-child(5) {
  width: 10%;
}

#furniture-table tbody td:nth-child(6),
#furniture-table th:nth-child(6) {
  width: 7%;
}

#furniture-table tbody td:nth-child(7),
#furniture-table th:nth-child(7) {
  width: 7%;
}

#furniture-table tbody td:nth-child(8),
#furniture-table th:nth-child(8) {
  width: 7%;
}

#furniture-table tbody td:nth-child(9),
#furniture-table th:nth-child(9) {
  width: 10%;
}

#furniture-table tbody td:nth-child(10),
#furniture-table th:nth-child(10) {
  width: 12%;
}

#furniture-table tbody td:nth-child(11),
#furniture-table th:nth-child(11) {
  width: 10%;
}

/* END possible table width workaround */

#add-furniture {
  position: sticky;
  left: 0;
}

.furniture-table-container {
  max-width: calc(100% + 172px);
  overflow-x: scroll;
  padding-left: 172px;
  margin-left: -172px;
}

#furniture-table {
  width: 2000px;
  white-space: nowrap;
}

#furniture-table-client th,
#labour-table-client th {
  white-space: nowrap;
}

.live-expenditure input,
.live-expenditure textarea {
  width: 100%;
}

.expenditure-controls {
  position: relative;
  margin-bottom: -30px;
  left: -157px;
  top: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  width: 151px;
  transition: opacity 200ms ease;
}

.highlight-button {
  border-radius: 50%;
  width: 15px;
  height: 15px;
  background: #ff5a5a;
  cursor: pointer;
}

.highlight-button.highlight-two {
  background: #9de219;
  margin-left: 9px;
}

.highlight-button.highlight-three {
  background: #79c1ff;
  margin-left: 9px;
}

.highlight-button.highlight-four {
  background: #ff8c09;
  margin-left: 9px;
}

.expenditure-controls button {
  width: 24px;
  margin-right: 7px;
  height: 24px;
  appearance: none;
  background: none;
  border: none;
  display: block;
  cursor: pointer;
  padding: 0;
}

.expenditure-controls button svg {
  width: 23px;
  height: 26px;
}

.live-expenditure table tbody tr:hover + .expenditure-controls,
.expenditure-controls:hover {
  opacity: 1;
}

.live-expenditure tr.highlight-one td,
.live-expenditure tr.highlight-one td input,
.live-expenditure tr.highlight-one td textarea {
  background: #ff5a5a;
  color: white !important;
}

.live-expenditure tr.highlight-two td,
.live-expenditure tr.highlight-two td input,
.live-expenditure tr.highlight-two td textarea {
  background: #9de219;
  color: var(--midnight) !important;
}

.live-expenditure tr.highlight-three td,
.live-expenditure tr.highlight-three td input,
.live-expenditure tr.highlight-three td textarea {
  background: #79c1ff;
  color: var(--midnight) !important;
}

.live-expenditure tr.highlight-four td,
.live-expenditure tr.highlight-four td input,
.live-expenditure tr.highlight-four td textarea {
  background: #ff8c09;
  color: var(--midnight) !important;
}

.highlight-three ::selection {
  background: #ff5a5a;
}

.live-expenditure tr.hide {
  opacity: 0.3;
}

.budget-sticky {
  position: sticky;
  top: 120px;
  padding: 25px;
  margin-left: 30px;
  border-radius: 30px;
  background: var(--calla-lily);
}

.budget-sticky p {
  margin-bottom: 3px;
  margin-top: 3px;
}

.budget-sticky h4 {
  margin-top: 0;
}

.budget-sticky .progress-text p {
  font-size: 15px;
  text-align: center;
  margin: 0;
}

.budget-sticky .progress-container {
  height: unset;
  padding: 0;
  max-width: 230px;
  margin: 0 auto;
}

.live-expenditure .project-products-control-group {
  position: relative;
}

.live-expenditure .project-products-control-group span {
  margin-right: 8px;
  width: 144px;
}

#project-budget {
  width: 160px;
}

#notes {
  width: 100%;
  height: 140px;
  margin: 0px auto 10px;
  background: var(--overnight-oats);
}

/* Client Expenditure Table */

.client-live-expenditure th,
.live-expenditure th {
  font-weight: bold;
  padding-bottom: 10px;
}

.subheading-banner {
  font-weight: bold;
}

#deposits-table-client th:first-of-type,
#deposits-table-client td:first-of-type,
#furniture-table-client th:first-of-type,
#furniture-table-client td:first-of-type,
#labour-table-client th:first-of-type,
#labour-table-client td:first-of-type {
  width: 104px;
  padding-right: 0 !important;
}

@media screen and (max-width: 63.99875em) {
  .budget-sticky {
    position: static;
    margin-top: 35px;
    margin-left: 0;
  }
}

@media screen and (max-width: 1200px) {
  .client-live-expenditure {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Small only */
@media screen and (max-width: 39.99875em) {
  .client-live-expenditure {
    padding-left: 0px;
    padding-right: 0px;
  }

  #labour-table-client tr,
  #deposits-table-client tr,
  #furniture-table-client tr,
  #client_paid-table-client tr {
    display: table-row;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  #labour-table-client tbody,
  #deposits-table-client tbody,
  #furniture-table-client tbody,
  #client_paid-table-client tbody {
    display: table-row-group;
  }

  #labour-table-client thead,
  #deposits-table-client thead,
  #furniture-table-client thead,
  #client_paid-table-client thead {
    display: table-header-group;
  }

  #deposits-table-client th:first-of-type,
  #deposits-table-client td:first-of-type,
  #furniture-table-client th:first-of-type,
  #furniture-table-client td:first-of-type,
  #labour-table-client th:first-of-type,
  #labour-table-client td:first-of-type,
  #client_paid-table-client th:first-of-type,
  #client_paid-table-client td:first-of-type {
    display: none;
  }

  #deposits-table-client th:last-of-type,
  #deposits-table-client td:last-of-type,
  #furniture-table-client th:last-of-type,
  #furniture-table-client td:last-of-type,
  #labour-table-client th:last-of-type,
  #labour-table-client td:last-of-type,
  #client_paid-table-client th:last-of-type,
  #client_paid-table-client td:last-of-type {
    width: 108px;
  }

  /* #furniture-table-client th:nth-of-type(3),
  #furniture-table-client td:nth-of-type(3) {
    display: none;
  }
  #furniture-table-client tfoot td:nth-of-type(2) {
    display: none;
  } */
  /* #furniture-table-client tfoot td:nth-of-type(3) {
    display: table-cell;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  } */
  #deposits-table-client td:nth-of-type(2),
  #furniture-table-client td:nth-of-type(2),
  #labour-table-client td:nth-of-type(2),
  #client_paid-table-client td:nth-of-type(2) {
    border-left: 1px solid var(--dusk-blue);
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }
}

/* Expenditure Search */

.expenditure-search-inputs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.expenditure-search-inputs div {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.expenditure-search-inputs .button {
  margin-bottom: 10px;
  height: 44px;
  margin-left: 10px;
  width: 130px;
  border: 1px solid var(--forrest);
  background: var(--forrest);
  color: white;
  cursor: pointer;
  line-height: 0;
}

table.hide {
  display: none;
}

.expenditure-search-link-row td {
  background: var(--forrest);
  text-align: center !important;
}

.expenditure-search-link-row td a {
  background: none;
}

/* Project Products */

.add-to-room-container {
  position: absolute;
  width: 100%;
  height: calc(100% - 46px);
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  font-size: 15px;
  transition: opacity 300ms ease;
}

.add-to-room-container p {
  font-weight: 500;
  margin: 0;
}

.room-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.room-button-container {
  background: var(--overnight-oats);
  padding: 5px;
  margin: 5px 10px;
  border-radius: 12px;
}

.room-button-container .room-heading {
  color: var(--midnight);
  display: block;
  text-align: center;
  padding: 3px 6px 0;
}

.room-controls-container input::-webkit-outer-spin-button,
.room-controls-container input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.room-controls-container input[type='number'] {
  -moz-appearance: textfield;
}

.room-controls-container input {
  border-radius: 4px;
  width: 23px;
  text-align: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.room-controls-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-controls-container .room-minus,
.room-controls-container .room-plus {
  appearance: none;
  border: none;
  outline: none;
  background: var(--overnight-oats);
  padding: 2px 8px;
  cursor: pointer;
  transition: opacity 300ms ease;
  border-radius: 8px;
}

.room-controls-container button:hover {
  background: #dcdcd7;
}

.image-container:hover .add-to-room-container,
.product-tile.in-project .add-to-room-container {
  opacity: 1;
}

.product-tile.in-project .image-overlay,
.product-tile.in-project .icons-container,
.product-tile.in-project .meta-container {
  opacity: 1;
}

.project-product-image {
  min-height: 432px !important;
  object-fit: contain;
}

/* Product Scan Partial */

.product-scan {
  border: 2px solid var(--ceramic);
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: 1fr 36px;
  grid-template-areas:
    'image details'
    'image buttons';
  gap: 15px;
  transition: opacity 300ms ease;
}

.product-scan:not(:last-of-type) {
  margin-bottom: 25px;
}

.product-scan.completed {
  opacity: 0.2;
  pointer-events: none;
}

.scan-image {
  grid-area: image;
}

.scan-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.scan-details {
  grid-area: details;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.scan-details .edit-area {
  padding-left: 0;
  margin-right: 15px;
  padding-top: 20px;
}

.scan-details .edit-area label {
  margin-left: 15.5px;
}

.scan-details .edit-area input {
  margin-bottom: 11px;
  padding: 9px 17px;
}

.scan-stats {
  background: var(--calla-lily);
  border-radius: 15px;
  padding: 15px;
}

.scan-stats h3 {
  margin-top: 0;
}

.stats-container {
  font-size: 14px;
}

.stats-container p {
  margin: 0;
}

.stat-bar-container {
  display: flex;
}

.stat-bar-container .stat-bar {
  flex: 1;
  margin-right: 10px;
  background: var(--topology-green);
  height: 10px;
  border-radius: 20px;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  overflow: hidden;
}

.stat-bar-container .stat-bar .stat-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  background: var(--dusk-blue);
  transform-origin: left;
  transition: transform 0.8s ease-in-out;
}

.stat-bar-container button {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  position: relative;
  display: flex;
  cursor: pointer;
}

.stat-bar-container button:hover {
  z-index: 1;
}

.stat-bar-container button.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.stat-bar-container button svg {
  height: 20px;
  width: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.stat-bar-container button svg {
  fill: var(--ceramic);
}

.stat-bar-container button:last-of-type svg {
  fill: var(--dusk-blue);
}

.stat-bar-container .info-popup {
  width: 200px;
  position: absolute;
  bottom: 28px;
  left: -140px;
  background: white;
  box-shadow: 0 0px 15px 0 rgb(60 64 67 / 21%);
  border-radius: 13px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transition: opacity 200ms ease;
}

.stat-bar-container button:first-of-type {
  margin-right: 7px;
  cursor: unset;
}

.stat-bar-container button:first-of-type:hover svg {
  fill: var(--forrest);
}

.stat-bar-container button[data-action='mark-false']:hover svg {
  fill: var(--topology-red);
}

.stat-bar-container button:hover .info-popup {
  opacity: 1;
  pointer-events: all;
}

.scan-buttons-container {
  grid-area: buttons;
  display: flex;
  justify-content: space-between;
}

.scan-buttons-container .button,
.scan-buttons-container button,
.general-button {
  background: none;
  appearance: none;
  border: none;
  border: 1px solid var(--forrest);
  background: var(--forrest);
  color: white;
  padding: 7px 17px;
  border-radius: 30px;
  display: inline-block;
  cursor: pointer;
  appearance: none;
  transition: opacity 200ms ease;
}

.scan-buttons-container .button:hover,
.scan-buttons-container button:hover,
.general-button:hover {
  opacity: 0.75;
}

.scan-buttons-container button[data-action='archive-product'] {
  margin-left: auto;
  margin-right: 15px;
  background: var(--topology-red);
  border-color: var(--topology-red);
}

.scan-buttons-container button[data-action='save-product'] {
  background: var(--topology-green);
  border-color: var(--topology-green);
}

/* Client Only Styles */

.handy-guides-container {
  background: var(--calla-lily);
  h2 {
    padding-top: 40px;
    margin-bottom: -40px;
    text-align: center;
    @media (min-width: 50em) {
      font-size: 3rem;
      padding-top: 60px;
      margin-bottom: -20px;
      margin-top: 0;
    }
  }
}

.client-intro {
  max-width: 900px;
  line-height: 1.4;
}

.phase-content .client-intro:last-of-type {
  font-weight: 600;
}

/* Client Phases */

#phase-header {
  height: 30vh;
  min-height: 500px;
  background-size: cover;
  background-position: center center;
  background-color: rgba(0, 0, 0, 0.3);
  background-blend-mode: multiply;
  .grid-container,
  .grid-x {
    height: 100%;
    .small-12:first-of-type {
      align-self: center;
    }
  }
  h1 {
    margin: 0;
    padding: 20px 25px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    color: white;
    @media (min-width: 50em) {
      font-size: 4rem;
      margin: 0;
    }
  }
}

.progress-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.progress-container {
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* background: rgba(255, 255, 255, 0.8); */
  margin-left: auto;
  margin-right: auto;
  @media (min-width: 50em) {
    max-width: 440px;
    height: 440px;
  }
}

.progress-text {
  position: absolute;
  text-align: center;
}

.progress-text h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  margin: 0;
  position: relative;
  display: inline-block;
  @media (min-width: 50em) {
    font-size: 20px;
  }
}

.underline-heading::after {
  content: '';
  width: 100%;
  height: 60px;
  background-image: url(../images/line.png);
  background-size: contain;
  position: absolute;
  bottom: -38%;
  left: 0;
  background-repeat: no-repeat;
  background-position: bottom;
}

.progress-text p {
  margin-bottom: 0;
  margin-top: 0px;
  font-size: 20px;
  font-weight: 600;
  max-width: 230px;
  @media (min-width: 50em) {
    font-size: 28px;
    max-width: 300px;
  }
}

.progress-ring {
  width: 100%;
  height: 100%;
}

.progress-ring-circle {
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-circle.circle-ready {
  transition:
    1.3s stroke-dasharray cubic-bezier(0.8, 0.5, 0.2, 1.4),
    1.3s stroke-dashoffset cubic-bezier(0.8, 0.5, 0.2, 1.4);
}

.phase-content {
  padding-top: 30px;
  padding-bottom: 30px;
  @media (min-width: 50em) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.phase-content img {
  display: block;
  margin: 25px auto 0;
  width: 100%;
  max-width: 430px;
  border-radius: 20px;
}

.underline-heading {
  position: relative;
  display: inline-block;
}

.heading-container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  h3 {
    margin-bottom: 0;
  }
}

@keyframes pulse {
  from {
    background: var(--midnight);
    color: white;
  }

  to {
    background: var(--dusk-blue);
    color: white;
  }
}

.client-button {
  border: none;
  color: var(--midnight);
  padding: 10px 21px;
  border-radius: 30px;
  display: inline-block;
  cursor: pointer;
  transition: opacity 200ms ease;
  background: none;
  text-align: center;
  display: table;
  margin: 20px auto 0;
  animation: pulse 1s infinite alternate;
}

.client-button:hover {
  opacity: 0.85;
}

.phase-content .client-intro {
  margin-top: 0;
  margin-bottom: 0;
  text-align: left !important;
}

.additional-info p,
.additional-info ul {
  color: var(--midnight);
  max-width: 84%;
  background: var(--overnight-oats);
  border-radius: 20px;
  padding: 18px;
  margin: 30px auto 0;
  position: relative;
  line-height: 1.25;
  left: 6%;
  @media (min-width: 50em) {
    margin-bottom: 30px;
    max-width: 430px;
    left: unset;
  }
}

.additional-info p:before,
.additional-info ul:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -14%;
  transform: translateY(-50%);
  background-image: url('../images/arrow2.png');
  width: 50px;
  @media (max-width: 49.9375em) {
    width: 30px;
  }
  height: 20px;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.client-product-tagline {
  background: var(--overnight-oats);
  padding: 9px 17px;
  display: block;
  width: fit-content;
  border-radius: 50px;
  margin-top: 8px;
}

.client-section {
  padding-top: 40px;
  padding-bottom: 40px;
  @media (min-width: 50em) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  @media (min-width: 64em) {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  h2 {
    font-size: 2rem;
    margin-top: 0;
    @media (min-width: 50em) {
      font-size: 2.7rem;
    }
  }
  .section-intro {
    line-height: 1.4;
    margin: -15px auto 40px;
    @media (min-width: 50em) {
      font-size: 22px;
      margin: -15px auto 60px;
    }
  }
  img {
    width: 100%;
  }
  &.flipbook-container {
    background: var(--dusk-blue);
    h2 {
      color: white;
    }
    @media (max-width: 49.9375em) {
      display: none;
    }
  }
  &.project-files-section {
    background: var(--midnight);
    color: var(--calla-lily);
  }
  &.swatches-section {
    background: var(--calla-lily);
    .cell p:not(.swatch-description) {
      font-weight: 600;
      margin-top: 6px;
      margin-bottom: 5px;
    }
    .cell .swatch-description {
      margin: 0;
      font-size: 14px;
      margin-bottom: 20px;
    }
  }
}

.featured-product-grid-container {
  display: flex;
  flex-direction: column;
}

.featured-products-section .cell p {
  margin-bottom: 20px;
  font-weight: 600;
  @media (min-width: 50em) {
    margin-bottom: 40px;
  }
}

.featured-product-grid {
  display: grid;
  gap: 2px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  width: 100%;
  height: auto;
  grid-auto-rows: 1fr;

  img,
  div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 0;
    min-width: 0;
  }

  grid-template-columns: 1fr;
  grid-template-rows: 1fr;

  &:has(img:nth-child(2):last-child),
  &:has(div:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  &:has(img:nth-child(3):last-child),
  &:has(div:nth-child(3):last-child) {
    grid-template-columns: 6fr 3fr;
    grid-template-rows: 1fr 1fr;

    img:nth-child(1),
    div:nth-child(1) {
      grid-column: 1 / 2;
      grid-row: 1 / 3;
    }
    img:nth-child(2),
    div:nth-child(2) {
      grid-column: 2 / 3;
      grid-row: 1 / 2;
    }
    img:nth-child(3),
    div:nth-child(3) {
      grid-column: 2 / 3;
      grid-row: 2 / 3;
    }
  }
}

.project-files-section {
  table {
    max-width: 800px;
    border-spacing: 0;
    .client-button {
      display: block;
      width: fit-content;
      margin: 0;
      margin-left: auto;
      animation: none;
      background: var(--calla-lily);
    }
    td,
    th {
      background: none;
      border-radius: 0 !important;
      border-bottom: 1px solid white;
      padding: 10px;
    }
    th {
      font-weight: 600;
      padding-bottom: 15px;
    }
  }
}

/* Small only */
@media screen and (max-width: 49.9375em) {
  .client-title-bar {
    font-size: 15px;
  }
}

/* Client Products */

.client-topbar .menu {
  margin-left: auto;
  margin-right: 0;
}

#product-table .toggle-approved:not(.approved),
#product-table .leave-comment {
  border: none;
  background: var(--dusk-blue);
  color: white;
  padding: 7px 15px;
  border-radius: 30px;
  display: inline-block;
  opacity: 1;
  transition: all 200ms ease;
}

#product-table .leave-comment span {
  pointer-events: none;
}

.toggle-approved.partial {
  background: linear-gradient(to right, var(--dusk-blue) 0%, var(--dusk-blue) 50%, var(--forrest) 50%, var(--forrest) 100%) !important;
}

#product-table .toggle-approved.approved {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overnight-oats);
  padding: 4px 13px;
  border-radius: 50px;
  color: var(--midnight);
}

#product-table .toggle-approved.approved svg {
  width: 17px;
  margin-right: 8px;
}

#product-table .leave-comment {
  background: var(--forrest);
  border-color: var(--forrest);
}

#product-table .toggle-approved:not(.approved):hover,
#product-table .leave-comment:hover {
  opacity: 0.85;
}

#product-table th {
  font-weight: bold;
}

ul.client-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}

ul.client-filters li {
  background: var(--dusk-blue);
  color: white;
  margin: 0;
  padding: 6px 10px;
  font-size: 15px;
}

ul.client-filters li.active {
  background: var(--midnight);
  color: white;
}

ul.client-filters li:last-of-type {
  margin: 0;
}

.client-filters li:hover {
  opacity: 0.85;
}

.client-title-bar {
  background: var(--overnight-oats);
  color: var(--midnight);
}

#product-table.client-product-table tbody td:first-child {
  width: 28px;
}

.client-product-table tbody tr {
  cursor: pointer;
}

.client-product-table tbody tr:hover {
  background: var(--calla-lily) !important;
}

/* Custom checkbox */

@keyframes checkbox-check {
  0% {
    width: 0;
    height: 0;
    border-color: white;
    transform: translate3d(0, 0, 0) rotate(45deg);
  }
  33% {
    width: 0.3em;
    height: 0;
    transform: translate3d(0, 0, 0) rotate(45deg);
  }
  100% {
    width: 0.3em;
    height: 0.8em;
    border-color: white;
    transform: translate3d(0, -0.8em, 0) rotate(45deg);
  }
}

.project-products-table {
  input[type='checkbox'] {
    height: 0;
    width: 0 !important;
    padding: 0 !important;
    border-radius: unset;
  }

  input[type='checkbox'] + label {
    display: block;
    width: 19px;
    height: 19px;
    border: 2px solid var(--dusk-blue);
    background: var(--dusk-blue);
    border-radius: 4px;
    margin: 0;
    position: relative;
    overflow: hidden;
    top: -7px;
  }

  input[type='checkbox'].partial + label:after {
    border-color: rgba(255, 255, 255, 0.7);
  }

  input[type='checkbox'] + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 0px;
    height: 0px;
    background: var(--dusk-blue);
    border: 8px solid white;
    transition: all 250ms cubic-bezier(0.4, 0, 0.23, 1);
  }

  input[type='checkbox']:checked + label::after {
    transform: translate(-50%, -50%) scale(0);
  }
  input[type='checkbox']:checked + label::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 2px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg);
    transform-origin: 0% 100%;
    animation: checkbox-check 125ms 250ms cubic-bezier(0.4, 0, 0.23, 1) forwards;
  }
  &#product-table thead tr th:first-child,
  &#product-table tbody tr td:first-child {
    padding: 0;
    width: 28px;
  }
  &#product-table tbody tr td:nth-child(2) {
    width: 100px;
  }
}

.body-lighten {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

#product-modal,
#send-message-popup,
#project-upload,
.prompt,
#product-scan-modal,
#ai-scrape-modal {
  z-index: 11;
  position: fixed;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  background: white;
  box-shadow: 0 0 47px 8px rgb(0, 0, 0, 0.12);
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.body-lighten.active,
.body-lighten.enabled {
  pointer-events: auto;
  opacity: 1;
}

#product-modal.open,
#send-message-popup.open,
#project-upload.open,
.prompt.open,
#product-scan-modal.open,
#ai-scrape-modal.open {
  pointer-events: auto;
  opacity: 1;
  outline: none;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

#product-modal.open::-webkit-scrollbar,
#send-message-popup.open::-webkit-scrollbar,
#project-upload.open::-webkit-scrollbar,
.prompt.open::-webkit-scrollbar,
#product-scan-modal.open::-webkit-scrollbar,
#ai-scrape-modal.open::-webkit-scrollbar {
  display: none;
}

.close-product-modal:not(.button),
#close-message-modal,
#close-project-upload,
.close-button,
.close-product-scan-modal,
.close-ai-scrape-modal {
  z-index: 3;
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  outline: none;
  border: none;
  opacity: 0.7;
  transition: opacity 200ms ease;
  cursor: pointer;
  padding: 7px;
}

.close-product-modal:hover,
#close-message-modal:hover,
#close-project-upload:hover,
.close-product-scan-modal:hover,
.close-ai-scrape-modal:hover {
  opacity: 1;
}

#close-project-upload svg {
  pointer-events: none;
}

#ai-loading {
  opacity: 0.5;
  height: 200px;
  display: flex;
}

.ai-product-container {
  background: var(--calla-lily);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 23px;
  input,
  textarea {
    background: white;
  }
  textarea {
    margin-bottom: 15px;
  }
  .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    button:last-of-type {
      border-color: var(--dusk-blue);
      background: var(--dusk-blue);
    }
  }
}

.possible-duplicate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ceramic);
  border-radius: 50px;
  padding: 10px;
  margin-bottom: 20px;
  margin-left: 20px;
  p {
    margin: 0;
    a {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, var(--calla-lily) 65%);
    }
  }
}

#product-modal input,
#product-modal textarea {
  pointer-events: none;
  cursor: default;
}

#product-modal #save-comment,
#product-modal #modal-comment {
  pointer-events: all;
}

#product-modal .buttons-container .button:first-of-type {
  margin-right: 10px;
}

#product-modal .buttons-container .button:last-of-type {
  border-color: var(--dusk-blue);
  background: var(--dusk-blue);
}

#product-modal .buttons-container .button:hover {
  background: white;
  color: var(--midnight);
}

#modal-comment {
  min-height: 100px;
}

.product-name a {
  margin-top: 20px;
  display: inline-block;
}

#product-modal .product-edit-form {
  padding: 0;
}

#modal-description {
  margin-bottom: 0;
}

#modal-title {
  margin-top: 0;
  margin-bottom: 30px;
}

#modal-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.button-container {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.button-container .client-button {
  margin: 0;
}

.products-view-top {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dusk-blue);
}

.products-view-top .progress-container {
  height: auto;
  padding: 0;
}

.products-view-top img {
  max-width: 100%;
}

.product-modal-comment,
.product-modal-primary,
.product-modal-approvals {
  display: none;
}

.product-modal-comment.active,
.product-modal-primary.active,
.product-modal-approvals.active {
  display: block;
}

.approval-option {
  width: 100%;
  margin-bottom: 15px;
}

.approval-option,
.client-approval-controls,
.approval-controls button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.approval-option p {
  width: 30%;
  margin: 0;
}

.client-approval-controls {
  width: calc(70% - 20px);
  margin-left: 10px;
  border-radius: 100px;
  position: relative;
  justify-content: space-between;
  background: var(--overnight-oats);
  overflow: hidden;
  z-index: 2;
}

.approval-progress-bar {
  content: '';
  position: absolute;
  background: var(--dusk-blue);
  opacity: 0.3;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  z-index: -1;
  transition: width 0.8s ease-in-out;
}

.approval-plus,
.approval-minus {
  appearance: none;
  border: none;
  background: var(--dusk-blue);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  opacity: 0.6;
  transition: all 300ms ease;
  cursor: pointer;
  padding: 0;
  color: white;
  font-weight: bold;
  font-size: 20px;
  line-height: 0;
}

.approval-plus:hover,
.approval-minus:hover {
  opacity: 1;
}

.product-modal-approvals .buttons-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.discounts-notice {
  margin-bottom: 26px;
  background: var(--overnight-oats);
  padding: 15px;
  border-radius: 12px;
  @media (min-width: 50em) {
    margin-top: 40px;
  }
}

/* Medium and up */
@media screen and (min-width: 50em) {
  #product-modal,
  #send-message-popup,
  #project-upload,
  #product-scan-modal,
  #ai-scrape-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    max-height: 80%;
    padding: 40px;
  }

  #ai-scrape-modal {
    max-width: 1200px;
    max-height: 90%;
  }

  #modal-image {
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
  }

  .products-view-top {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media screen and (min-width: 768px) {
  .client-intro {
    font-size: 22px;
    line-height: 1.35;
  }
}

/* Large and up */
@media screen and (min-width: 64em) {
  .client-intro {
    line-height: 1.5;
    text-align: center;
  }
  .products-view-top {
    padding-top: 60px;
    padding-bottom: 60px;
    margin-bottom: 20px;
  }
  .desktop-sticky-container {
    position: sticky;
    top: 100px;
  }
  #product-table .product-name span {
    display: block;
    &:first-of-type {
      margin-bottom: 5px;
    }
  }
}

/* Mobile Menu Breakpoint */
@media screen and (max-width: 1246px) {
  .client-topbar {
    display: block;
    margin-left: -0.9375rem;
    margin-right: -0.9375rem;
    padding: 0;
  }

  .client-topbar .logo {
    margin: 0 auto;
    display: block;
    padding: 20px 0.9375rem 0;
  }

  .client-topbar .menu {
    margin: 0;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: flex-start;
    -ms-overflow-style: none;
    /* for Internet Explorer, Edge */
    scrollbar-width: none;
    /* for Firefox */
  }

  .client-topbar .menu::-webkit-scrollbar {
    display: none;
    /* for Chrome, Safari, and Opera */
  }

  .client-topbar .menu a {
    white-space: nowrap;
    display: block;
    background: none;
    border-radius: 7px;
    padding: 6px 11px;
    margin-right: 3px;
  }

  .client-topbar .menu a.current-menu-item {
    background: var(--dusk-blue-transparent);
  }
}

@media screen and (max-width: 1246px) and (min-width: 677px) {
  .client-topbar .menu {
    justify-content: center;
  }
}

/* Small only */
@media screen and (max-width: 49.9375em) {
  #product-modal,
  #send-message-popup,
  #project-upload {
    height: auto;
    max-height: calc(100% - 50px);
    max-width: calc(100% - 30px);
    outline: none;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
    border-radius: 20px;
    margin: 15px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
  }

  #modal-image {
    margin: 0px auto 20px;
  }

  #modal-title {
    font-size: 19px;
  }

  .close-product-modal:not(.button) {
    position: sticky;
    top: -5px;
    margin-top: -40px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 23px;
  }

  table:not(#files-table) tbody {
    display: flex;
    flex-direction: column;
  }

  table:not(#files-table) tr {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  #product-table thead {
    display: none;
    /* display: block;
    z-index: 2;
    position: sticky;
    top: 0;
    margin-top: -100px;
    padding-top: 100px; */
  }

  #product-table thead tr {
    background: none;
  }

  #product-table {
    display: block;
    max-width: 100%;
    line-height: 1.1;
    margin-bottom: 0;
  }

  #product-table td {
    display: block;
    padding: 0px !important;
  }

  #product-table tr {
    border: none;
    background: var(--calla-lily);
    padding: 12px;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-areas:
      'tick desc desc desc img'
      'name name name name img'
      'btn1 btn1 btn2 btn2 img';
    grid-template-columns: 19px 1fr 1fr 1fr 100px;
    grid-template-rows: auto auto auto;
    gap: 10px;
    align-items: center;
  }

  #product-table td.tick-col {
    grid-area: tick;
    place-self: center center;
    width: unset !important;
  }

  #product-table td.product-image {
    grid-area: img;
    height: 100%;
    img {
      height: 100%;
    }
  }

  #product-table td.product-name {
    grid-area: name;
    max-width: unset;
    width: 100%;
    margin-bottom: 10px;
    span {
      display: block;
      &:first-of-type {
        margin-bottom: 5px;
      }
    }
  }

  .product-image .product-room-quantity {
    top: -6px;
    right: -6px;
  }

  #product-table td.product-description {
    grid-area: desc;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    place-self: center;
    margin-top: 1px;
  }

  #product-table td:nth-of-type(5) {
    grid-area: btn1;
  }

  #product-table td:nth-of-type(6) {
    grid-area: btn2;
  }

  #product-table .indicator-cell {
    width: unset;
  }

  .client-product-tagline {
    width: 100%;
    border-radius: 7px;
    font-size: 13px;
    margin-top: -2px;
    margin-bottom: 10px !important;
    padding: 8px 7px;
  }

  #product-table button,
  #product-table .button {
    font-size: 14px;
    padding: 5px 8px 6px 8px !important;
    width: 100%;
  }

  #product-table .toggle-approved.approved svg {
    display: none;
  }

  #product-table .client-purchased-cell span {
    font-weight: 500;
    margin-right: 6px;
  }

  #product-table .client-purchased-cell button {
    position: relative;
    top: 1px;
    padding: 0 !important;
    opacity: 1 !important;
  }

  #product-table .client-purchased-cell {
    display: flex;
    text-align: left;
    font-size: 14px;
    align-items: center;
    order: 2;
  }

  .toggle-approved {
    display: block;
    margin: 0 auto;
  }

  ul.rooms li:last-of-type {
    margin-bottom: 0;
  }

  .edit-project .cell {
    padding: 0 !important;
  }

  .product-edit-form .field-group {
    flex-direction: column;
  }

  .button-container {
    flex-direction: column;
  }

  .button-container .client-button {
    width: 100%;
    text-align: center;
  }
  .product-name a {
    margin-top: 10px;
  }
}

/* Client Purchase Tracker */

#product-section {
  @media (min-width: 50em) {
    margin-bottom: 140px;
  }
}

#purchase-tracker {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateY(140px);
  padding: 10px 5vw 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  background: var(--dusk-blue);
  color: white;
  visibility: hidden;
}

#purchase-tracker.active {
  transform: translateY(0);
}

#purchase-tracker .grid-container {
  width: 100%;
}

.purchase-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  p {
    margin: 0;
  }
  p:nth-of-type(1) {
    margin-right: 12px;
  }
  p:nth-of-type(2) {
    margin-right: auto;
  }
}

.purchase-bar {
  width: 100%;
  margin-top: 20px;
  height: clamp(12px, 2vh, 15px);
  background: white;
  position: relative;
  border-radius: 50px;
}

.purchase-indicator {
  position: absolute;
  top: 0;
  left: -2px;
  height: 100%;
  width: 0%;
  border-radius: 50px;
  background-color: var(--forrest);
  transition: width 0.8s ease-in-out;
}

.selection-buttons {
  opacity: 0;
  pointer-events: none;
  transition: all 300ms ease;
  &.active {
    opacity: 1;
    pointer-events: all;
  }
  button {
    &:hover {
      opacity: 0.85;
    }
  }
  button:nth-of-type(2) {
    margin-left: 10px;
    background-color: var(--overnight-oats);
    border-color: var(--overnight-oats);
    color: var(--midnight);
  }
  button:nth-of-type(3) {
    margin-left: 10px;
    background-color: var(--midnight);
    border-color: var(--midnight);
  }
}

/* Small only */
@media screen and (max-width: 49.9375em) {
  .project-products-table .underline-heading {
    display: none;
  }
  #purchase-tracker {
    padding: 20px 0px 17px;
    height: auto;
    font-size: 14px;
    bottom: unset;
    position: sticky;
    top: 46px;
    width: calc(100% + 30px);
    margin-left: -15px;
    transform: unset;
    visibility: visible;
    input[type='checkbox'] + label {
      left: 12px;
      top: 0;
    }
  }
  #purchase-tracker .grid-container {
    display: flex;
    flex-direction: column-reverse;
  }
  .purchase-bar {
    margin-top: 0px;
  }
  #purchase-tracker .tracker-tally {
    margin-left: 0;
  }
  .purchase-info {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    p {
      flex: 0 0 calc(50% - 4px);
      margin: 0 !important;
    }
    .button {
      padding: 5px 8px 6px 8px;
    }
    .selection-buttons {
      opacity: 0.2;
      &.active {
        opacity: 1;
      }
      margin-left: auto;
      margin-top: 10px;
      margin-bottom: -24px;
    }
  }
}

/* Client Handy Guides */

.handy-guide {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: 60px;
}

.handy-guide a {
  display: block;
  background: none;
  font-weight: 300;
  font-style: italic;
}

.handy-guide .rotated-link {
  position: absolute;
  left: 28px;
  transform-origin: 0 100%;
  transform: rotate(-90deg);
}

.handy-guide .guide-cover-link {
  padding-left: 30px;
}

.handy-guide a img {
  display: block;
  max-width: 100%;
  box-shadow: 4px 7px 46px 0 rgb(0 0 0 / 9%);
  transition: opacity 300ms ease;
}

.handy-guide .guide-cover-link:hover img {
  opacity: 0.8;
}

.guide-count {
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
}

#handy-guides {
  padding-bottom: 30px;
}

/* Large and up */
@media screen and (min-width: 64em) {
  #handy-guides {
    justify-content: space-between;
    padding-bottom: 100px;
  }

  #handy-guides .handy-guide {
    width: 38%;
    margin-left: 8%;
  }

  .gutter-sizer {
    width: 6%;
  }

  .handy-guide {
    margin-top: 100px;
  }

  .handy-guide:nth-of-type(2) {
    margin-top: 160px;
  }
}

/* My Project Uploads */

#project-uploads {
  padding-bottom: 30px;
}

.upload-plus {
  border-radius: 50%;
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 70px;
  height: 70px;
  border: 2px solid var(--dusk-blue);
  background: var(--dusk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
}

.start-here {
  position: fixed;
  bottom: 90px;
  right: 108px;
  width: 286px;
  z-index: 1;
  background: white;
  padding: 18px;
  border-radius: 20px;
  display: none;
}

.start-here.display {
  display: block;
}

.upload-plus::after {
  content: '';
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--calla-lily);
  z-index: 1;
  transform: translateY(70px);
  transition: transform 300ms ease;
}

.upload-plus:hover::after {
  transform: translateY(-1px);
}

.upload-plus svg {
  fill: white;
  transition: full 300ms ease;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.upload-plus:hover svg {
  fill: var(--midnight);
}

.upload-plus .saving {
  display: none;
  fill: white;
}

.upload-plus.saving {
  pointer-events: none;
}

.upload-plus.saving svg {
  display: none;
}

#project-upload .button {
  background: var(--dusk-blue);
  border-color: var(--dusk-blue);
}

@-webkit-keyframes pulse-opacity {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

@keyframes pulse-opacity {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

.upload-plus.saving svg.saving {
  display: block;
  animation: pulse-opacity 1s infinite ease-in-out;
}

#back-project-upload {
  z-index: 3;
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  outline: none;
  border: none;
  opacity: 0.7;
  transition: opacity 200ms ease;
  cursor: pointer;
  display: none;
  padding: 7px;
}

#back-project-upload:hover {
  opacity: 1;
}

#back-project-upload svg {
  pointer-events: none;
}

#project-upload {
  max-width: 620px;
  outline: none;
  box-sizing: content-box;
  transition: all 300ms ease;
  overflow: hidden;
}

#project-upload #options h2,
#project-upload #text h2 {
  margin-bottom: 40px;
}

#project-upload #options .buttons-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 20px;
}

#project-upload #options .button {
  width: 260px;
  height: 200px;
}

#project-upload #options .button p {
  pointer-events: none;
}

#project-upload #options .button:hover {
  background: var(--calla-lily);
  color: var(--midnight);
}

.button .button-description {
  font-weight: 300;
}

#project-upload .grid-x {
  position: relative;
}

#project-upload.open .small-12.cell {
  transition: transform 300ms ease;
  transform: translateX(0);
  position: absolute;
  top: 0;
  background: white;
}

#project-upload .small-12.cell.inactive {
  transform: translateX(680px);
}

#project-upload #options.inactive {
  transform: translateX(-680px);
}

#upload-drop-zone,
.upload-area {
  border: 4px dashed var(--dusk-blue);
  height: 274px;
  width: 100%;
  border-radius: 30px;
  margin: 27px 0 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-area {
  border-width: 2px;
}

#upload-drop-zone.highlight,
.upload-area.highlight {
  border-color: var(--forrest);
}

#upload-drop-zone .progress-loader,
.upload-drop-zone .progress-loader,
.upload-area .progress-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--forrest);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}

#files-from-input {
  display: none;
}

.animation-init {
  transition: transform 1000ms ease;
}

#notes-url {
  display: flex;
  flex-direction: column;
}

#notes-url input,
#notes-url textarea {
  margin-bottom: 20px;
}

#notes-url textarea {
  height: 120px;
}

#notes-url input[type='submit'].saving {
  pointer-events: none;
}

#file-upload {
  display: none;
}

#file-error {
  color: #ff5a5a;
  font-weight: bolder;
}

#delete .buttons-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#delete .buttons-container .button:first-of-type {
  margin-right: 15px;
}

@keyframes pulse-red {
  from {
    background: rgba(246, 246, 241, 0);
  }

  to {
    background: rgba(173, 38, 74, 0.2);
  }
}

.client-button-red {
  animation: pulse-red 1s infinite alternate;
}

/* Medium and up */
@media screen and (min-width: 50em) {
  .upload-plus {
    bottom: 35px;
    right: 45px;
    width: 70px;
    height: 70px;
  }

  #project-upload #options .buttons-container {
    flex-direction: row;
  }

  #project-upload #options .button:first-of-type {
    margin-right: 25px;
  }

  #project-uploads {
    padding: 0 35px 30px;
  }
}

/* My Project Upload TILES */

.project-upload-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--overnight-oats);
  border-radius: 15px;
  overflow: hidden;
  margin: 30px 0 0;
}

.project-upload-tile .tile-header {
  position: relative;
}

.project-upload-tile .tile-header img {
  display: block;
  width: 100%;
  height: auto;
}

.project-upload-tile .tile-header .delete-button {
  position: absolute;
  top: 15px;
  right: 15px;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
}

.project-upload-tile .tile-header .delete-button svg {
  pointer-events: none;
  fill: white;
}

.project-upload-tile .tile-header.has-header-text .delete-button svg {
  fill: var(--dusk-blue);
}

.project-upload-tile .tile-header .file-type-header {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--calla-lily);
  color: var(--ceramic);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 40px;
  position: relative;
}

.project-upload-tile .tile-header .profile-pic {
  border-radius: 50%;
  position: absolute;
  overflow: hidden;
  top: 15px;
  left: 15px;
  width: 30px;
  height: 30px;
}

.project-upload-tile .tile-header .file-type-header svg {
  fill: #e60023;
  width: 50px;
  height: 50px;
}

.project-upload-tile .tile-text-area h4 {
  margin-top: 0;
  margin-bottom: 15px;
  padding: 15px 20px 0 !important;
}

.project-upload-tile .tile-text-area h4,
.project-upload-tile .tile-text-area p {
  margin: 0;
  padding: 10px 20px;
  outline: none;
}

.project-upload-tile .tile-text-area p {
  font-size: 15px;
  color: var(--midnight);
  padding: 10px 20px 15px !important;
}

.project-upload-tile .tile-text-area p:focus-visible,
.project-upload-tile .tile-text-area h4:focus-visible {
  outline: none;
  background: var(--overnight-oats);
}

/* Medium and up */
@media screen and (min-width: 50em) {
  .project-upload-tile .tile-header .delete-button {
    opacity: 0;
    transition: opacity 300ms ease;
  }

  .project-upload-tile .tile-header:hover .delete-button {
    opacity: 1;
  }
}

/* Small only */
@media screen and (max-width: 49.9375em) {
  #project-upload {
    width: calc(100% - 30px);
  }

  #project-upload #options .button {
    width: 100%;
    height: auto;
    border-radius: 18px;
  }

  #project-upload #options .button:first-of-type {
    margin-bottom: 18px;
  }

  #project-upload #options h2,
  #project-upload #text h2,
  #project-upload #delete h2 {
    margin-bottom: 30px;
    margin-top: 30px;
    font-size: 23px;
  }

  #delete .buttons-container {
    margin-bottom: 18px;
  }

  #upload-drop-zone {
    margin-top: 43px;
    padding: 20px;
  }

  #project-uploads .grid-margin-x > .cell:nth-of-type(odd) {
    margin-left: 0.46875rem;
    margin-right: 0.46875rem;
  }

  #project-uploads .grid-margin-x > .cell:nth-of-type(even) {
    margin-left: 0.46875rem;
    margin-right: 0.46875rem;
  }

  #project-uploads .grid-margin-x.small-up-2 > .cell {
    width: calc(50% - 0.9375rem);
  }

  #project-uploads .grid-margin-x.small-up-2 > .cell {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none;
    border-radius: 0;
  }
}

/* Approvals page for Install projects */

.upload-drop-zone .progress-loader {
  border-radius: 12px;
  background: var(--dusk-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff66;
  font-size: 16px;
}

.upload-drop-zone .progress-loader.animation-init {
  transition: transform 500ms ease;
}

#project-upload.approvals-upload.can-scroll {
  overflow-y: scroll;
}

#project-upload.approvals-upload #options .button p:first-of-type {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 0;
}

#project-upload.approvals-upload #options .button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 180px;
}

.files-upload-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

#project-upload .image-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
}

.upload-drop-zone.is-preview .image-preview {
  opacity: 1 !important;
}

.upload-drop-zone #delete-me {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.upload-drop-zone:hover #delete-me {
  opacity: 0.6;
  z-index: 2;
  pointer-events: all;
}

.images-urls-content .client-button {
  margin-bottom: 40px;
}

.files-upload-container .drop-zone-container {
  position: relative;
  width: 60px;
  height: 60px;
}

.files-upload-container label.upload-drop-zone {
  position: absolute;
  border: 3px dashed var(--dusk-blue);
  border-radius: 15px;
  margin: 0;
  width: 100%;
  height: 100%;
}

.files-upload-container .drop-zone-container input {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  opacity: 0;
}

.files-upload-container .drop-zone- container input {
  width: 100%;
}

.files-upload-container .text-input {
  margin-left: 20px;
  flex: 1;
}

#add-new-file,
#add-new-link {
  border: 3px dashed var(--dusk-blue);
  border-radius: 15px;
  margin: 0;
  width: 100%;
  height: 100%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dusk-blue);
  font-size: 40px;
  cursor: pointer;
  background: var(--calla-lily);
}

#add-new-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

#project-upload .links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 13px;
  position: relative;
}

#project-upload .links-container input {
  flex: 1;
}

#project-upload .links-container input:first-of-type {
  margin-right: 15px;
}

.links-container #delete-me {
  border: 2px dashed var(--dusk-blue);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dusk-blue);
  font-size: 20px;
  cursor: pointer;
  background: var(--calla-lily);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  position: absolute;
  top: 6px;
  right: -35px;
}

.links-container #delete-me:hover,
#add-new-link:hover,
#add-new-file:hover {
  background: var(--overnight-oats);
}

/* Medium and up */
@media screen and (min-width: 50em) {
  #project-upload.approvals-upload #options .button:first-of-type,
  #project-upload.approvals-upload #options .button:nth-of-type(2) {
    margin-right: 15px;
  }
}

/* Approvals frontend */

.approval-parent {
  background: var(--calla-lily);
  position: relative;
  padding: 20px 0;
}

.approval-container::before {
  content: '';
  position: absolute;
  height: calc(100% + 20px);
  width: 1000px;
  top: -20px;
  left: -1000px;
  background: var(--calla-lily);
}

.approval-container {
  background: white;
  padding: 20px;
  border-radius: 15px;
  position: relative;
}

.approval-container h3 {
  margin-top: 0;
  padding-right: 92px;
}

.approval-tag {
  text-align: center;
  font-weight: bold;
  background: var(--forrest);
  color: white;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1;
}

.approval-files-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.approval-file {
  width: 25%;
  position: relative;
  padding: 5px;
}

.approval-file a {
  display: block;
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: var(--dusk-blue);
  border-radius: 20px;
}

.approval-file a:hover {
  background: var(--forrest);
}

.approval-file a:hover .approval-image {
  border-color: var(--forrest);
}

.filetype-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: fit-content;
  transform: translate(-50%);
  line-height: 0;
  text-transform: uppercase;
  color: white;
  font-weight: 900;
  font-size: 24px;
}

.file-caption {
  margin-top: 4px;
  font-size: 14px;
}

.approval-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--dusk-blue);
}

.date-time-parent {
  position: relative;
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.date-time-container {
  text-align: center;
  font-weight: bold;
  background: var(--overnight-oats);
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  position: relative;
  z-index: 1;
  width: fit-content;
}

.approval-link:not(:last-of-type) {
  margin-bottom: 8px;
}

.border-p {
  border-bottom: 2px solid var(--forrest);
  padding-bottom: 10px;
}

.approval-controls {
  display: flex;
  justify-content: end;
  align-items: center;
}

.approval-controls button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.approval-controls svg {
  fill: var(--dusk-blue);
}

.approval-controls button:hover {
  opacity: 1;
}

.comments-container .slideout-project-notes {
  padding: 23px;
}

.comments-container #message-box {
  font-size: 16.5px;
  height: 40px;
  padding: 9px 19px;
}

.comments-container .message-box-container {
  position: relative;
}

.comments-container #send-message {
  height: 28px;
  width: 28px;
}

.comments-container .slideout-project-notes {
  overflow: unset;
}

.comments-container .project-message-content {
  font-size: 16.5px;
}

.approvals-page p,
.comments-container .project-message-content {
  line-height: 1.35;
}

.approval-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.approval-buttons #approve,
.approval-buttons #reject {
  width: 48%;
  margin: 0 !important;
}

.app-body.approvals-app-body {
  min-height: calc(100vh - 76px);
}

/* Medium and up */
@media screen and (min-width: 50em) {
  .date-time-parent::before {
    position: absolute;
    width: 1000vw;
    right: 50%;
    z-index: -1;
    height: 100%;
    min-height: calc(100vh - 76px);
    content: '';
    background: var(--calla-lily);
    top: 0;
  }

  .approval-container {
    margin-right: 30px;
  }

  .approval-file {
    width: 20%;
    position: relative;
  }

  .approval-parent {
    padding: 40px 0;
  }

  .approval-container::before {
    top: -40px;
    height: 2000vh;
  }

  .date-time-parent {
    padding-top: 55.5px;
  }

  .date-time-parent::after {
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0;
    content: '';
    background: var(--dusk-blue);
    left: 50%;
  }

  .comments-parent {
  }

  .comments-container .project-messages-container .project-message:first-of-type {
    margin-top: 12px;
  }

  .comments-container .slideout-project-notes {
    padding: 35px;
    padding-top: 50px;
  }

  .comments-container p {
    margin-top: 8px;
  }
}

/* Small only */
@media screen and (max-width: 49.9375em) {
  .date-time-parent {
    background: var(--ceramic);
    padding: 20px;
  }
}

.filter-buttons {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin-top: 35px;
  margin-bottom: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

button.filter-button {
  font-weight: 500;
  background: transparent;
  background-size: auto 114%;
  background-position: bottom;
  background-repeat: no-repeat;
  transition: all 350ms ease;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  display: inline;
  text-decoration: none;
  color: var(--midnight);
  cursor: pointer;
  outline: 0;
  border: 0;
  padding: 0;
  font-size: 18px;
}

button.filter-button.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, var(--dusk-blue-transparent) 65%);
}

.tag-group-select {
  margin-bottom: 15px;
  padding: 0 20px;
}

.tag-group-select label {
  display: block;
}

.tag-group-select select {
  width: 100%;
  background-color: #cc6d2b;
  color: #fff;
  padding: 15px;
  background-position:
    calc(100% - 23px) calc(1em + 5px),
    calc(100% - 17px) calc(1em + 5px);
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
}

.handy-guide-select {
  margin-bottom: 20px;
}

.handy-guide-select label {
  display: block;
}

.handy-guide-select select {
  width: 100%;
  background-color: var(--calla-lily);
  color: #000;
  padding: 15px;
  background-position:
    calc(100% - 23px) calc(1em + 5px),
    calc(100% - 17px) calc(1em + 5px);
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
}

.handy-guide-table .delete-button {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
}

/* Bulk Jobs */

#bulk-job-form {
  display: flex;
  flex-direction: column;
  input {
    background: var(--overnight-oats);
    width: 100%;
  }
  div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
}
