.kpf-page,
.kpf-page * {
  box-sizing: border-box;
  font-family: Figtree, Arial, sans-serif;
}

.kpf-page {
  min-height: 100dvh;
  background: #fff;
  color: #121212;
}

.kpf-logo {
  color: #121212;
  font-family: "Dela Gothic One", Figtree, Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.kpf-primary {
  align-items: center;
  background: #121212;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 24px;
  height: 40px;
  justify-content: center;
  line-height: 17px;
  min-width: 180px;
  padding: 0 24px;
  text-decoration: none;
}

.kpf-primary i,
.kpf-primary svg,
.kpf-provider-continue i,
.kpf-provider-continue svg {
  height: 11px;
  width: 11px;
}

.kpf-icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #121212;
  cursor: pointer;
  display: inline-flex;
  height: 12px;
  justify-content: center;
  padding: 0;
  width: 12px;
}

.kpf-icon-button i {
  height: 12px;
  width: 12px;
}

.start-page {
  background: #fff url("/client/assets/images/start-gradient-desktop.png") center center / cover no-repeat;
  height: 100dvh;
  min-height: 780px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.start-page > .kpf-logo {
  font-size: 24px;
  height: 39px;
  left: 50%;
  line-height: 39px;
  position: absolute;
  top: 39px;
  transform: translateX(-50%);
  width: 150px;
}

.start-title {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 150px;
  transform: translateX(-50%);
  width: 280px;
}

.start-title h1 {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  line-height: 19px;
  margin: 0;
  padding-bottom: 11px;
  position: relative;
}

.start-title h1::after {
  background: #121212;
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 120px;
}

.start-options {
  display: block;
}

.start-card {
  background: #fff;
  border: 0;
  border-radius: 16px;
  color: #121212;
  cursor: pointer;
  display: block;
  height: 335px;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 238px;
  width: 340px;
}

.start-card:first-child {
  left: calc(50% - 454px);
}

.start-card:last-child {
  left: calc(50% + 114px);
}

.start-card h2 {
  font-size: 16px;
  font-weight: 800;
  left: 30px;
  line-height: 19px;
  margin: 0;
  position: absolute;
  top: 49px;
  width: 280px;
}

.start-card > i,
.start-card > svg {
  height: 24px;
  left: 50%;
  margin: 0;
  position: absolute;
  stroke-width: 2;
  top: 111px;
  transform: translateX(-50%);
  width: 24px;
}

.start-card p {
  font-size: 12px;
  font-weight: 400;
  left: 30px;
  line-height: 14px;
  margin: 0;
  position: absolute;
  top: 184px;
  width: 280px;
}

.start-card .kpf-primary {
  font-size: 12px;
  gap: 10px;
  height: 40px;
  left: 30px;
  line-height: 17px;
  min-width: 0;
  padding: 0;
  position: absolute;
  top: 257px;
  width: 280px;
}

.start-card .kpf-primary i {
  height: 8px;
  width: 8px;
}

.start-footer {
  align-items: center;
  display: flex;
  gap: 29px;
  font-size: 11px;
  font-weight: 600;
  left: 92px;
  line-height: 13px;
  position: absolute;
  top: 710px;
}

.start-footer a {
  color: #121212;
  text-decoration: none;
}

.start-footer span:nth-child(2) {
  font-size: 15px;
  line-height: 1;
}

.kpf-modal-backdrop {
  align-items: center;
  background: rgba(18,18,18,.16);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.kpf-modal-backdrop.is-open {
  display: flex;
}

.kpf-modal {
  background: #fff;
  border-radius: 10px;
  color: #121212;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 43px 35px 0;
  position: relative;
  scrollbar-width: none;
}

.kpf-modal::-webkit-scrollbar {
  display: none;
}

.kpf-modal-header {
  align-items: center;
  display: flex;
  gap: 19px;
  margin-bottom: 42px;
}

.kpf-modal-header h2 {
  font-size: 14px;
  font-weight: 800;
  line-height: 17px;
  margin: 0;
}

.kpf-product-modal {
  height: 600px;
  width: 480px;
}

.kpf-product-list {
  display: grid;
  gap: 40px;
  padding-bottom: 92px;
}

.kpf-product-card {
  display: grid;
  gap: 27px;
  grid-template-columns: 136px minmax(0, 1fr);
}

.kpf-product-image {
  align-items: center;
  background: #ddd;
  border-radius: 7px;
  display: flex;
  height: 136px;
  justify-content: center;
  overflow: hidden;
  width: 136px;
}

.kpf-product-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.kpf-product-body h3,
.kpf-provider-info h3 {
  color: #121212;
  font-size: 14px;
  font-weight: 800;
  line-height: 17px;
  margin: 4px 0 22px;
}

.kpf-product-body h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
}

.kpf-label {
  color: rgba(18,18,18,.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  margin: 0 0 16px;
}

@media (min-width: 768px) {
  .kpf-product-body .kpf-label {
    font-size: 11px;
  }
}

.kpf-measures {
  color: rgba(18,18,18,.78);
  display: grid;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  margin-bottom: 25px;
}

.kpf-measures p {
  margin: 0;
}

.kpf-add-button {
  align-items: center;
  background: rgba(18,18,18,.84);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 0;
  height: 32px;
  justify-content: center;
  line-height: 15px;
  width: 234px;
}

.kpf-qty i,
.kpf-qty svg {
  height: 14px;
  width: 14px;
}

.kpf-product-card.is-selected .kpf-add-button {
  display: none;
}

.kpf-product-card.is-selected .kpf-qty {
  display: grid !important;
}

.kpf-qty {
  align-items: center;
  gap: 24px;
  grid-template-columns: 12px 34px 12px 16px;
}

.kpf-qty button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #121212;
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 16px;
}

.kpf-qty input {
  background: transparent;
  border: 0;
  color: #121212;
  font-size: 14px;
  font-weight: 600;
  height: 24px;
  line-height: 24px;
  padding: 0;
  text-align: center;
  width: 34px;
}

.kpf-sticky-action {
  background: #3ca0ff;
  border-radius: 999px;
  bottom: 24px;
  height: 48px;
  left: auto;
  margin: 6px 0 0;
  position: sticky;
  right: auto;
  width: 100%;
}

.kpf-selector-alert {
  background: #121212;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18,18,18,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  margin: 2px 0 14px;
  padding: 11px 14px;
  position: sticky;
  text-align: center;
  bottom: 84px;
}

.kpf-selector-alert[hidden] {
  display: none;
}

.kpf-selector-alert.is-visible {
  animation: kpf-alert-pop 180ms ease-out;
}

@keyframes kpf-alert-pop {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.kpf-provider-modal {
  height: 600px;
  width: 540px;
}

.kpf-provider-modal .kpf-modal-header {
  margin-bottom: 50px;
}

.kpf-provider-list {
  display: grid;
  gap: 34px;
  padding-bottom: 34px;
}

.kpf-provider-card {
  border-bottom: 1px solid rgba(18,18,18,.28);
  padding-bottom: 32px;
  position: relative;
}

.kpf-provider-card:last-child {
  border-bottom: 0;
}

.kpf-provider-top {
  align-items: start;
  display: grid;
  gap: 23px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding-right: 143px;
}

.kpf-provider-logo {
  align-items: center;
  background: #050505;
  border-radius: 7px;
  color: #fff;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.kpf-provider-logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.kpf-provider-info h3 {
  margin: 0 0 13px;
}

.kpf-provider-info p {
  align-items: center;
  color: rgba(18,18,18,.68);
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 9px;
  line-height: 15px;
  margin: 0 0 10px;
}

.kpf-provider-info i,
.kpf-provider-info svg {
  height: 8px;
  width: 8px;
}

.kpf-provider-continue {
  align-items: center;
  background: #3ca0ff;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  height: 40px;
  justify-content: center;
  margin-top: 0;
  position: absolute;
  right: 0;
  top: 30px;
  width: 120px;
}

.kpf-provider-continue:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.kpf-assembly-options {
  margin-top: 41px;
}

.kpf-assembly-options > p {
  color: rgba(18,18,18,.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  margin: 0 0 16px;
}

.kpf-assembly-options ul {
  color: rgba(18,18,18,.68);
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 13px;
  line-height: 15px;
  list-style: disc;
  margin: 0;
  padding-left: 14px;
}

.kpf-assembly-options li {
  color: rgba(18,18,18,.68);
  padding-left: 2px;
}

.kpf-assembly-options strong {
  color: rgba(18,18,18,.76);
  font-weight: 800;
}

.kpf-empty,
.kpf-muted {
  color: rgba(18,18,18,.58);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.kpf-space-modal {
  height: 500px;
  padding: 27px 26px 0 36px;
  width: 620px;
}

.kpf-space-header {
  justify-content: space-between;
  margin-bottom: 47.5px;
}

.kpf-create-space {
  align-items: center;
  background: #3ca0ff;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 14px;
  height: 36px;
  justify-content: center;
  line-height: 15px;
  width: 100px;
}

.kpf-create-space i,
.kpf-create-space svg {
  height: 12px;
  width: 12px;
}

.kpf-space-list {
  display: grid;
  gap: 54px;
  padding-bottom: 34px;
}

.kpf-space-card {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 312px minmax(0, 1fr);
}

.kpf-space-image {
  background: #ddd;
  border-radius: 9px;
  height: 194px;
  overflow: hidden;
  width: 312px;
}

.kpf-space-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.kpf-space-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  margin: 3px 0 17px;
}

.kpf-space-body .kpf-primary {
  background: rgba(18,18,18,.84);
  font-size: 12px;
}

.kpf-space-body p {
  color: rgba(18,18,18,.68);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  margin: 0 0 15px;
}

.kpf-space-items {
  color: rgba(18,18,18,.68);
  display: grid;
  gap: 15px;
  font-size: 12px;
  line-height: 15px;
  margin: 0 0 24px;
  padding-left: 16px;
}

.project-page {
  background: #fff;
  min-height: 100dvh;
}

.project-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 100dvh;
}

.project-panel {
  border-right: 1px solid rgba(18,18,18,.08);
  padding: 44px 38px;
}

.project-panel .kpf-logo {
  font-size: 20px;
  text-align: left;
}

.project-panel h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 22px;
  margin: 54px 0 26px;
}

.project-summary {
  display: grid;
  gap: 24px;
}

.project-summary section {
  border-top: 1px solid rgba(18,18,18,.12);
  padding-top: 18px;
}

.project-summary h2 {
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  margin: 0 0 14px;
}

.project-summary p,
.project-summary li {
  color: rgba(18,18,18,.68);
  font-size: 12px;
  line-height: 16px;
}

.project-summary ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-action-row {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.project-action-row button,
.project-action-row a {
  width: 100%;
}

.project-stage {
  background: #f2f2f2;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.project-topbar {
  align-items: center;
  background: #fff;
  display: flex;
  height: 74px;
  justify-content: center;
}

.project-canvas {
  align-content: center;
  background: linear-gradient(135deg, #f7f7f7 0%, #dfdfdf 100%);
  display: grid;
  justify-items: center;
  padding: 40px;
}

.project-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 780px;
}

.project-preview-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(18,18,18,.08);
  overflow: hidden;
  width: 180px;
}

.project-preview-card img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.project-preview-card span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  padding: 14px;
}

@media (max-width: 767px) {
  .start-page {
    background-image: url("/client/assets/images/start-gradient-mobile.png");
    background-position: center top;
    background-size: cover;
    height: 851px;
    min-height: 100dvh;
    padding: 0;
  }

  .start-page > .kpf-logo {
    font-size: 20px;
    height: 15px;
    line-height: 15px;
    top: 29px;
    width: 104px;
  }

  .start-title {
    left: 50%;
    top: 108px;
    transform: translateX(-50%);
    width: 180px;
  }

  .start-title h1 {
    font-size: 14px;
    line-height: 17px;
    padding-bottom: 12px;
  }

  .start-title h1::after {
    height: 2px;
    width: 120px;
  }

  .start-options {
    display: block;
  }

  .start-card {
    border-radius: 15px;
    height: 300px;
    left: 50% !important;
    padding: 0;
    transform: translateX(-50%);
    width: 320px;
  }

  .start-card:first-child {
    top: 193px;
  }

  .start-card:last-child {
    top: 526px;
  }

  .start-card h2 {
    font-size: 14px;
    left: 20px;
    line-height: 17px;
    top: 40px;
    width: 280px;
  }

  .start-card > i,
  .start-card > svg {
    height: 20px;
    top: 103px;
    width: 20px;
  }

  .start-card p {
    font-size: 11px;
    left: 20px;
    line-height: 13px;
    top: 167px;
    width: 280px;
  }

  .start-card .kpf-primary {
    font-size: 11px;
    left: 20px;
    top: 226px;
    width: 280px;
  }

  .start-card:last-child h2 {
    top: 25px;
  }

  .start-card:last-child > i {
    top: 89px;
  }

  .start-card:last-child p {
    top: 158px;
  }

  .start-card:last-child .kpf-primary {
    top: 223px;
  }

  .start-footer {
    display: none;
  }

  .kpf-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .kpf-modal {
    border-radius: 10px 10px 0 0;
    max-height: calc(100dvh - 24px);
    padding: 43px 35px 0;
    width: 100%;
  }

  .kpf-product-modal {
    height: 610px;
  }

  .kpf-product-card {
    gap: 26px;
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .kpf-product-list {
    gap: 40px;
  }

  .kpf-add-button {
    width: 100%;
  }

  .kpf-provider-modal {
    height: 600px;
  }

  .kpf-provider-top {
    align-items: start;
    grid-template-columns: 72px minmax(0, 1fr);
    padding-right: 0;
  }

  .kpf-provider-continue {
    font-size: 11px;
    margin-top: 24px;
    position: static;
    width: 100%;
  }

  .kpf-space-modal {
    height: 610px;
  }

  .kpf-space-card {
    grid-template-columns: 1fr;
  }

  .kpf-space-image {
    height: auto;
    width: 100%;
  }

  .kpf-space-body .kpf-primary {
    min-width: 0;
    width: 100%;
  }

  .project-shell {
    display: block;
  }

  .project-panel {
    border-right: 0;
    padding: 30px 20px;
  }

  .project-stage {
    min-height: 460px;
  }
}

@media (max-width: 420px) {
  .kpf-product-card {
    gap: 14px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .kpf-product-image {
    height: 72px;
    width: 72px;
  }

  .kpf-product-body h3 {
    margin-top: 0;
  }
}
