/* ========== Header minimal ========== */

.header-minimal {
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.header-minimal > .content {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
}

.header-minimal .back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header-minimal .back-link i {
  font-size: 14px;
}

.header-minimal .back-link:hover {
  color: var(--brand);
  border-color: #ececec;
  background: #f8f8f4;
}

.header-minimal .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 1;
}

.header-minimal .logo img {
  height: 38px;
  width: auto;
  transition: transform 0.2s ease;
}

.header-minimal .logo:hover img {
  transform: scale(1.04);
}

.header-minimal .header-spacer {
  display: none;
}

/* ========== Footer minimal ========== */

.footer-minimal {
  width: 100%;
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 22px 0;
  margin-top: 0;
}

.footer-minimal > .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 13px;
  color: #888;
}

.footer-minimal a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-minimal a:hover {
  color: var(--brand);
}

.footer-minimal .sep {
  margin: 0 4px;
  color: #ccc;
}

.footer-minimal .credit a {
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
}

.footer-minimal .credit a:hover {
  border-bottom-color: var(--brand);
}

@media (max-width: 700px) {
  .header-minimal > .content {
    height: 56px;
  }
  .header-minimal .logo img {
    height: 32px;
  }
  .header-minimal .back-link span {
    display: none;
  }
  .header-minimal .back-link {
    padding: 8px 10px;
  }
  .footer-minimal {
    padding: 18px 0;
    text-align: center;
  }
  .footer-minimal > .content {
    flex-direction: column;
    gap: 6px;
  }
}

/* ========== Checkout body ========== */

#checkout {
  position: relative;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 60px;
  background: #f8f8f4;
  min-height: 80vh;
  margin-top:  64px;
}

#checkout .checkout-head {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}

#checkout .checkout-head h1 {
  margin: 0 0 18px 0;
  font-size: 32px;
  font-weight: 800;
  color: #2a2a2a;
  letter-spacing: -0.4px;
  text-align: center;
}

#checkout .checkout-head h1.greeting {
  font-size: 24px;
  font-weight: 700;
}

#checkout .checkout-head h1 .name {
  color: var(--brand);
}

#checkout .steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin: 0 auto;
  max-width: 720px;
  padding: 0 6px;
}

#checkout .steps .step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.3px;
}

#checkout .steps .step .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  z-index: 2;
  position: relative;
  transition: 0.2s;
}

#checkout .steps .step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: 1;
}

#checkout .steps .step:last-child::after {
  display: none;
}

#checkout .steps .step.done .dot,
#checkout .steps .step.active .dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

#checkout .steps .step.done::after,
#checkout .steps .step.active::after {
  background: var(--brand);
}

#checkout .steps .step.done,
#checkout .steps .step.active {
  color: var(--brand-dark);
}

#checkout .steps .step .label {
  display: block;
  line-height: 1.2;
}

#checkout .checkout-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

#checkout .checkout-card {
  flex: 1 1 540px;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 32px 32px;
  box-sizing: border-box;
}

#checkout .checkout-card.full {
  flex: 1 1 100%;
}

#checkout .checkout-card h2 {
  margin: 0 0 18px 0;
  font-size: 22px;
  font-weight: 700;
  color: #2a2a2a;
}

#checkout .checkout-card .lead {
  margin: -8px 0 22px 0;
  font-size: 15px;
  color: #777;
}

#checkout form .row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

#checkout form .row > * {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
}

#checkout form .row > .span-2 {
  flex: 2 1 0;
}

#checkout form .row > .full {
  flex: 1 1 100%;
}

#checkout form .field {
  position: relative;
  margin-bottom: 14px;
}

#checkout form .field input[type="text"],
#checkout form .field input[type="email"],
#checkout form .field input[type="password"],
#checkout form .field input[type="tel"],
#checkout form .field textarea {
  width: 100%;
  padding: 24px 14px 10px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #222;
}

#checkout form .field input:focus,
#checkout form .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(82, 132, 3, 0.12);
}

#checkout form .field input:not(:placeholder-shown) + label,
#checkout form .field input:focus + label,
#checkout form .field textarea:not(:placeholder-shown) + label,
#checkout form .field textarea:focus + label {
  top: 7px;
  font-size: 11px;
  color: var(--brand);
  background: #fff;
  padding: 0px;
}

#checkout form .field label {
  position: absolute;
  top: 18px;
  left: 14px;
  font-size: 14px;
  color: #888;
  pointer-events: none;
  transition: 0.2s;
  background: transparent;
}

#checkout form .field input::placeholder,
#checkout form .field textarea::placeholder {
  color: transparent;
}

#checkout form .field textarea {
  min-height: 90px;
  resize: vertical;
  padding-top: 18px;
}

#checkout .options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

#checkout .options .option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

#checkout .options .option:hover {
  border-color: #c8c8c8;
}

#checkout .options .option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#checkout .options .option .indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

#checkout .options .option .indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: 0.2s;
}

#checkout .options .option input[type="radio"]:checked ~ .indicator {
  border-color: var(--brand);
}

#checkout .options .option input[type="radio"]:checked ~ .indicator::after {
  background: var(--brand);
}

#checkout .options .option.selected {
  border-color: var(--brand);
  background: rgba(82, 132, 3, 0.04);
  box-shadow: 0 0 0 3px rgba(82, 132, 3, 0.1);
}

#checkout .options .option .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#checkout .options .option .icon i {
  font-size: 26px;
  color: var(--brand);
}

#checkout .options .option .icon img {
  max-height: 30px;
}

#checkout .options .option .text {
  flex: 1;
}

#checkout .options .option .text .title {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}

#checkout .options .option .text .sub {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

#checkout .options .option .price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

#checkout .action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

#checkout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  font-family: inherit;
  box-sizing: border-box;
}

#checkout .btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(82, 132, 3, 0.25);
}

#checkout .btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

#checkout .btn.primary:active {
  transform: scale(0.98);
}

#checkout .btn.ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: #e2e2e2;
}

#checkout .btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

#checkout .btn.block {
  width: 100%;
}

#checkout .alt-link {
  margin-top: 18px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

#checkout .alt-link a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

#checkout .alt-link a:hover {
  text-decoration: underline;
}

#checkout .error-alert {
  background: #fff4f4;
  border: 1px solid #f5c6c6;
  color: #b13838;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
}

#checkout .error-alert .title {
  font-weight: 700;
  margin-bottom: 4px;
}

#checkout .summary-aside {
  flex: 0 1 360px;
  align-self: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 24px;
  box-sizing: border-box;
}

#checkout .summary-aside .title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

#checkout .summary-aside .row-data {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: #555;
}

#checkout .summary-aside .row-data.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  border-top: 1px solid #eee;
  margin-top: 6px;
  padding-top: 14px;
}

#checkout .summary-list {
  margin-bottom: 16px;
}

#checkout .summary-list .item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

#checkout .summary-list .item .name {
  color: #333;
}

#checkout .summary-list .item .price {
  font-weight: 600;
  color: var(--brand-dark);
}

/* Pickadate overrides */
.picker__holder {
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border: none;
  overflow: hidden;
}
.picker__frame { padding: 0; }
.picker__box { padding: 14px; }
.picker__day--selected,
.picker__day--selected:hover,
.picker--focused .picker__day--selected {
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
}
.picker__day--today { color: var(--brand); }
.picker__day--today.picker__day--selected { color: #fff; }
.picker__button--close,
.picker__button--today,
.picker__button--clear {
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}
.picker__button--close:hover {
  background: var(--brand-dark);
}
.picker__list-item--selected {
  background: var(--brand);
}
.picker__nav--prev,
.picker__nav--next {
  border-radius: 50%;
}

@media (max-width: 800px) {

  #checkout .checkout-card {
    padding: 22px 18px;
  }

  #checkout .steps .step {
    font-size: 10px;
  }

  #checkout .steps .step .dot {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  #checkout .steps .step::after {
    top: 12px;
  }

  #checkout .checkout-head h1 {
    font-size: 24px;
  }

  #checkout form .row {
    flex-direction: column;
    gap: 0;
  }

  #checkout form .row > * {
    flex: 1 1 100%;
  }

  #checkout .action-row {
    flex-direction: column-reverse;
  }

  #checkout .action-row .btn {
    width: 100%;
  }

  #checkout .summary-aside {
    flex: 1 1 100%;
  }
}
