/* Checkout steps inside the cart modal and the classic checkout page. */

.pit__check-head {
  justify-content: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.pit__dialog .pit__check-head {
  border-bottom: 0;
  color: #fff;
}

.pit__dialog .pit__check-head .pit__logo,
.pit__dialog .pit__check-head .pit__text {
  color: #fff;
  text-decoration: none;
}

.pit__dialog .pit__check-head .pit__text {
  color: rgba(255, 255, 255, 0.72);
}

.pit__dialog .pit__check-head p {
  color: rgba(255, 255, 255, 0.62);
}

.pit__check-head .pit__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pit__check-head p {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pit__check-head .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.pit__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.95rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.pit__steps li,
.pit__steps button {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pit__steps li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #f3f3f2;
}

.pit__dialog .pit__steps {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 0.85rem;
  padding: 0.15rem 0 0.7rem;
  background: #f3f3f1;
}

.pit__steps .is-current {
  background: #121212;
  color: #fff;
}

.pit__steps .is-done {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pit__steps .is-done button,
.pit__steps .is-current button {
  color: inherit;
}

.pit__steps button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.pit__checkout h2,
.pit-page h2,
.pit-page h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.pit-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.pit-field span,
.pit-page label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.pit-field input,
.pit-field textarea,
.pit-field select,
.pit-page input[type="text"],
.pit-page input[type="email"],
.pit-page input[type="tel"],
.pit-page input[type="password"],
.pit-page select,
.pit-page textarea {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e3e3e0;
  border-radius: 0.95rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.pit-field input:focus,
.pit-field textarea:focus,
.pit-field select:focus {
  border-color: #121212;
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.08);
}

.pit-field.is-invalid input,
.pit-field.is-invalid textarea {
  border-color: var(--accent);
}

.pit-field small,
.pit__error {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.pit-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
  font-size: 0.9rem;
}

.pit-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

.pit__rates,
.pit__methods {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
}

.pit__rate,
.pit__method {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
}

.pit__rate:has(input:checked),
.pit__method:has(input:checked) {
  border-color: #121212;
  box-shadow: inset 0 0 0 1px #121212;
}

.pit__method span,
.pit__rate span {
  display: grid;
  gap: 0.15rem;
}

.pit__method small {
  color: var(--text-muted);
}

.pit-account {
  display: grid;
  gap: 0.6rem;
  max-width: 22rem;
  margin-top: 1.4rem;
}

.pit-page #place_order,
.pit-page .checkout-button {
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.woocommerce-checkout .pit-page form .form-row {
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  .pit__dialog .pit__check-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "logo back close"
      "secure secure secure";
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding-top: 1.45rem;
  }

  .pit__dialog .pit__check-head .pit__logo {
    grid-area: logo;
  }

  .pit__dialog .pit__check-head .pit__text {
    grid-area: back;
    white-space: nowrap;
  }

  .pit__dialog .pit__check-head .pit__icon {
    grid-area: close;
  }

  .pit__dialog .pit__check-head p {
    grid-area: secure;
    flex-basis: auto;
    order: 0;
    margin: 0;
  }

  .pit__check-head p {
    flex-basis: 100%;
    margin: 0;
    order: 5;
  }

  .pit-page #place_order {
    position: sticky;
    bottom: 0.75rem;
    z-index: 2;
    box-shadow: 0 10px 24px rgba(18, 18, 18, 0.16);
  }
}
