.cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  border: 1px solid #164c5030;
  padding: 10px 15px !important;
  border-radius: 6px;
  background: #edf3ef;
}
.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #164c50;
  color: white;
  font-size: 11px;
}
.config-bottom > .secondary-btn {
  width: 100%;
  margin-top: 10px;
}
.shop-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 34px 70px;
}
.shop-main h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin: 12px 0;
}
.shop-lead {
  color: #6b7c79;
  max-width: 650px;
  line-height: 1.65;
}
.shop-steps {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  color: #657773;
  font-size: 12px;
}
.shop-steps li {
  flex: 1;
  border-top: 2px solid #dce4df;
  padding-top: 12px;
}
.shop-steps .active {
  color: #164c50;
  border-color: #164c50;
  font-weight: 600;
}
.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.shop-card {
  background: #fff;
  border: 1px solid #e0e6df;
  border-radius: 12px;
  padding: 26px;
}
.shop-card h2 {
  font-size: 23px;
  margin: 0 0 20px;
}
.shop-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.shop-card p {
  line-height: 1.65;
}
.shop-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.shop-card input:not([type='checkbox']),
.shop-card textarea,
.shop-card select {
  width: 100%;
  border: 1px solid #cdd8d1;
  border-radius: 6px;
  padding: 12px;
  background: #fafbf8;
  color: #253d3d;
  font: inherit;
  min-height: 45px;
}
.shop-card textarea {
  min-height: 90px;
  resize: vertical;
}
.shop-card input:focus,
.shop-card textarea:focus,
.shop-card select:focus {
  outline: 2px solid #347d77;
  outline-offset: 2px;
}
.field {
  margin: 0 0 17px;
}
.field small {
  display: block;
  font-weight: 400;
  color: #6a7c77;
  margin-top: 6px;
  font-size: 11px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check-line {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  line-height: 1.6;
}
.check-line input {
  margin-top: 4px;
  accent-color: #164c50;
}
.shop-alert {
  background: #f5eddd;
  border-radius: 6px;
  padding: 12px 16px;
  color: #766143;
  font-size: 12px;
  line-height: 1.65;
  margin: 20px 0;
}
.shop-alert.info {
  background: #eaf1ed;
  color: #355b55;
}
.shop-status {
  font-size: 13px;
  line-height: 1.6;
  min-height: 20px;
  margin-top: 14px;
}
.shop-status.error {
  color: #a13229;
}
.shop-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 17px;
  padding: 20px 0;
  border-bottom: 1px solid #e4e9e2;
}
.shop-item:first-child {
  padding-top: 0;
}
.shop-item img {
  width: 90px;
  height: 116px;
  object-fit: contain;
  background: #f5f2eb;
  border-radius: 7px;
}
.shop-item h3 {
  font-size: 17px;
  margin: 0 0 5px;
}
.shop-item p {
  font-size: 12px;
  color: #667974;
  margin: 4px 0;
}
.shop-item .item-price {
  font-size: 17px;
  color: #164c50;
  font-weight: 600;
  margin-top: 10px;
}
.item-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 12px;
}
.item-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 0;
}
.item-controls input {
  width: 66px !important;
  min-height: 36px !important;
  padding: 5px 8px !important;
}
.remove-item {
  background: none;
  border: 0;
  text-decoration: underline;
  font: inherit;
  font-size: 12px;
  color: #687c75;
  padding: 8px;
  cursor: pointer;
}
.money-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  margin: 16px 0;
}
.money-row.total {
  border-top: 1px solid #dce4dc;
  padding-top: 19px;
  font-size: 17px;
  font-weight: 600;
}
.money-row.total strong {
  font-size: 27px;
  color: #164c50;
  white-space: nowrap;
}
.muted {
  font-size: 12px;
  color: #6b7c76;
  line-height: 1.7;
}
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.shop-actions .primary-btn,
.shop-actions .secondary-btn {
  flex: 1;
  min-width: 170px;
  text-align: center;
  text-decoration: none;
  justify-content: center;
}
.shop-primary {
  width: 100%;
  margin-top: 16px;
}
.empty-state {
  text-align: center;
  padding: 50px 24px;
}
.empty-state .empty-icon {
  display: grid;
  place-items: center;
  font-size: 38px;
  background: #e8efeb;
  color: #164c50;
  border-radius: 18px;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.badge {
  display: inline-block;
  padding: 6px 9px;
  background: #e8efeb;
  color: #164c50;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.badge.demo {
  background: #f4ecdb;
  color: #857048;
}
.request-list {
  display: grid;
  gap: 12px;
}
.request-row {
  width: 100%;
  display: block;
  background: white;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid #dce4dd;
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  text-decoration: none;
}
.request-row:hover,
.request-row.selected {
  border-color: #164c50;
  background: #f4f8f4;
}
.request-row strong {
  display: block;
  margin: 8px 0;
  font-size: 17px;
}
.request-row small {
  display: block;
  color: #6e7f78;
  font-size: 11px;
  margin-top: 8px;
}
.request-list-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.request-list-header select {
  max-width: 260px;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-head h2 {
  margin: 7px 0;
  font-size: 26px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.timeline li {
  position: relative;
  padding: 0 0 23px 27px;
  border-left: 2px solid #dfe7df;
  margin-left: 6px;
  font-size: 13px;
  color: #7b8983;
}
.timeline li::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dfe7df;
  left: -7px;
  top: 1px;
  border: 3px solid #fff;
}
.timeline li.done {
  color: #244d49;
  border-color: #457d72;
}
.timeline li.done::before {
  background: #457d72;
}
.timeline li.current {
  font-weight: 600;
  color: #164c50;
}
.timeline li.current::before {
  background: #164c50;
  box-shadow: 0 0 0 4px #deebe3;
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
}
.history {
  border-top: 1px solid #e0e6dd;
  margin-top: 24px;
  padding-top: 20px;
}
.history li {
  font-size: 12px;
  color: #5f746d;
  margin: 12px 0;
  line-height: 1.7;
}
.compact-items {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.compact-item {
  border: 1px solid #e1e8e0;
  padding: 14px;
  border-radius: 6px;
}
.compact-item p {
  margin: 4px 0;
  font-size: 12px;
  color: #6e7f78;
}
.compact-item strong {
  font-size: 15px;
}
.contact-box {
  border-radius: 8px;
  padding: 18px;
  background: #edf3ee;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.proposal-form {
  border-top: 1px solid #e2e7df;
  margin-top: 24px;
  padding-top: 24px;
}
.proposal-money {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.proposal-money input {
  max-width: 140px;
}
.proposal-money label {
  font-size: 12px;
  font-weight: 400;
}
.shop-card button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.legal-note {
  max-width: 650px;
  margin-top: 30px;
}
.admin-grid {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
}
.status-pill {
  font-size: 11px;
  background: #edf2ec;
  padding: 5px 8px;
  border-radius: 4px;
}
.payment-demo {
  background: #f2eddf;
  border-left: 3px solid #b09b68;
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}
.terms-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.form-total {
  font-size: 23px;
  color: #164c50;
  font-weight: 600;
}
.full-link {
  text-decoration: underline;
  color: #164c50;
}
.shop-card summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.header-links {
  display: flex;
  gap: 15px;
  align-items: center;
}
.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .shop-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .shop-main {
    padding: 25px 18px 50px;
  }
  .shop-card {
    padding: 20px;
  }
  .shop-steps {
    gap: 8px;
    font-size: 10px;
  }
  .site-header {
    padding: 20px !important;
    gap: 20px;
    flex-wrap: wrap;
  }
  .site-header nav {
    flex-wrap: wrap;
    gap: 13px !important;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .detail-head {
    flex-wrap: wrap;
  }
  .shop-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .shop-item img {
    width: 76px;
    height: 100px;
  }
  .request-list-header {
    align-items: stretch;
    flex-direction: column;
  }
  .money-row.total strong {
    font-size: 23px;
  }
  .admin-grid .request-list {
    max-height: 400px;
    overflow: auto;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .shop-actions {
    flex-direction: column;
  }
}
.shop-main {
  scroll-margin-top: 20px;
}
.shop-card .primary-btn {
  min-height: 48px;
}
.shop-card .secondary-btn {
  min-height: 42px;
}
.shop-item .item-controls input {
  font-size: 14px;
}
.shop-card:focus-within {
  outline-offset: 4px;
}
.item-controls select {
  width: 66px !important;
  min-height: 36px !important;
  padding: 5px 8px !important;
  font-size: 14px;
}
@media (max-width: 800px) {
  .site-header nav a:not([hidden]) {
    display: inline-flex !important;
  }
  .site-header nav {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .site-header .brand {
    flex-shrink: 0;
  }
  .site-header {
    align-items: flex-start !important;
    height: auto !important;
    min-height: 101px;
  }
}
