.plan-section,
.shop-main {
  background: #f8f7ee;
  padding: 64px 0 70px;
  border-bottom: 1px solid var(--border);
}
.plan-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 13px 0;
}
.plan-note {
  max-width: 76ch;
  color: #4f5e51;
  line-height: 1.65;
  margin: 15px 0 27px;
}
.shop-main h1 {
  font-size: clamp(3.4rem, 5.7vw, 6rem);
  margin: 16px 0 23px;
  line-height: 0.99;
}
.shop-main {
  padding-top: 22px;
  min-height: 64vh;
}
.shop-trail {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.9rem;
  color: #586253;
  margin-bottom: 30px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #d1d9c7;
  border-top: 4px solid #658164;
  border-radius: 7px;
  background: #fdfdf6;
  padding: 24px;
  min-width: 0;
}
.theme-family-nest {
  border-top-color: #ae9056;
}
.theme-enterprise-nest {
  border-top-color: #59877c;
}
.plan-category {
  color: #657659;
  font-weight: 600;
  font-size: 0.89rem;
  margin: 0 0 11px;
}
.plan-card h3 {
  font-size: clamp(2.1rem, 2.9vw, 3rem);
  line-height: 1.05;
}
.plan-description {
  margin: 12px 0 18px;
  color: #4e5b4e;
}
.plan-facts {
  margin: 0;
}
.plan-facts div {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}
.plan-facts dt {
  font-size: 0.85rem;
  color: #556552;
}
.plan-facts dd {
  margin: 1px 0 0;
  font-weight: 500;
}
.plan-card details {
  border-top: 1px solid var(--border);
  padding: 11px 0;
  color: #3c5140;
}
.plan-card summary {
  cursor: pointer;
  font-weight: 600;
}
.plan-card details ul {
  padding-left: 20px;
  margin: 10px 0;
}
.plan-cost {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.91rem;
}
.plan-cost span {
  font: 400 2.55rem/1 var(--serif);
  color: var(--green);
}
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.plan-actions .button {
  padding: 9px 19px;
  min-height: 43px;
}
.shop-link {
  border: 0;
  background: none;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--green);
  font-size: 0.94rem;
  font-weight: 600;
}
.shop-link:disabled {
  color: #65705e;
  text-decoration: none;
  cursor: default;
}
.mini-cart {
  margin-left: 10px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
.checkout-box,
.checkout-summary {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 38px);
}
.checkout-summary {
  background: #ecf0e2;
}
.checkout-box h2,
.checkout-summary h2 {
  font-size: 2.25rem;
  margin-bottom: 14px;
}
.checkout-box > p,
.checkout-summary > p {
  color: #4f604e;
  margin: 14px 0;
}
.checkout-box > p + .button {
  margin-top: 10px;
}
.total-line,
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.total-line strong,
.cart-line strong {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.cart-line h3 {
  font-size: 1.8rem;
}
.cart-line p {
  font-size: 0.94rem;
  color: #566250;
}
.cart-line > div:last-child {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}
.cart-line + .text-link,
.checkout-summary .button {
  margin-top: 18px;
}
.receipt-lines {
  margin: 15px 0;
}
.form-error,
#checkout-error {
  color: #983f2e;
}
.shop-main h1:focus {
  outline: none;
}
@media (max-width: 800px) {
  .plan-grid {
    gap: 12px;
  }
  .plan-card {
    padding: 18px;
  }
  .checkout-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
  }
}
@media (max-width: 680px) {
  .plan-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .plan-heading {
    display: block;
  }
  .plan-heading > .text-link {
    margin-top: 12px;
  }
  .plan-section {
    padding: 42px 0;
  }
  .shop-main {
    padding-bottom: 44px;
  }
  .checkout-box,
  .checkout-summary {
    padding: 20px;
  }
  .plan-card {
    padding: 21px;
  }
  .mini-cart {
    margin-left: auto;
  }
  .policy-header .mini-cart + .header-cta {
    margin-left: 5px;
  }
  .plan-note {
    margin-bottom: 20px;
  }
}

.plan-cost small {
  display: block;
  font-size: 0.79rem;
  line-height: 1.45;
  margin-bottom: 0.2rem;
}

.more-plans {
  margin-top: 1.5rem;
}
.more-plans > summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
  padding: 0.75rem 0;
}
