html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: #f6f7f8;
  color: #202428;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.navbar-brand {
  font-weight: 700;
}

.container {
  max-width: 1320px;
}

.cart-summary-link {
  align-items: flex-end;
  color: #173a59;
  display: inline-flex;
  flex-direction: column;
  font-size: .9rem;
  gap: 2px;
  text-decoration: none;
}

.cart-summary-link strong {
  font-size: .95rem;
}

.footer-link {
  color: inherit;
  margin-left: 14px;
}

.eyebrow {
  color: #65707a;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.shop-head {
  margin: 28px 0 22px;
}

.shop-head-tight {
  margin-bottom: 16px;
}

.shop-head h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.shop-copy {
  color: #4d5963;
  font-size: 1rem;
  margin: 0;
  max-width: 760px;
}

.shop-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.shop-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.shop-category-nav__item {
  background: #fff;
  border: 1px solid #d8e0e6;
  border-radius: 6px;
  color: #173a59;
  font-size: .95rem;
  font-weight: 700;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.shop-category-nav__item.is-active {
  background: #173a59;
  border-color: #173a59;
  color: #fff;
}

.category-intro-panel {
  margin-bottom: 22px;
}

.category-intro-panel > :last-child {
  margin-bottom: 0;
}

.aa-product-teasers__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.aa-product-teaser-card {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.aa-product-teaser-card__image-link {
  aspect-ratio: 4 / 3;
  background: #eff3f6;
  display: grid;
  overflow: hidden;
  place-items: center;
}

.aa-product-teaser-card__image-link img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.aa-product-teaser-card__image-placeholder {
  color: #65707a;
  font-size: .92rem;
  font-weight: 700;
}

.aa-product-teaser-card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.aa-product-teaser-card__title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.aa-product-teaser-card__title a {
  color: #202428;
  text-decoration: none;
}

.aa-product-teaser-card__text {
  color: #4d5963;
  font-size: .95rem;
  line-height: 1.5;
  margin: 0;
}

.aa-product-teaser-card__price {
  display: grid;
  gap: 6px;
}

.aa-product-teaser-card__badge {
  color: #8a2929;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.aa-product-teaser-card__price-value {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa-product-teaser-card__price-value strong {
  font-size: 1.2rem;
}

.aa-product-teaser-card__price-strike {
  color: #7a858e;
  text-decoration: line-through;
}

.aa-product-teaser-card__meta,
.aa-product-teaser-card__sku {
  color: #65707a;
  font-size: .88rem;
  margin: 0;
}

.aa-product-teaser-card__button {
  justify-self: start;
}

.aa-container {
  margin: 0 auto;
  max-width: 1320px;
}

.aa-product-page {
  display: grid;
  gap: 28px;
}

.aa-product-hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.aa-product-gallery,
.aa-product-summary,
.aa-product-details {
  display: grid;
  gap: 18px;
}

.aa-gallery-stage {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.aa-gallery-hero {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.aa-gallery-hero--placeholder {
  align-items: center;
  aspect-ratio: 4 / 3;
  color: #65707a;
  display: grid;
  font-weight: 700;
  width: 100%;
}

.aa-gallery-nav {
  align-items: center;
  align-self: stretch;
  background: #f3f5f7;
  border: 0;
  color: #173a59;
  display: inline-flex;
  font-size: 1.8rem;
  justify-content: center;
  min-width: 54px;
}

.aa-gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.aa-gallery-thumb {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

.aa-gallery-thumb.is-active {
  border-color: #195a92;
  box-shadow: 0 0 0 2px rgba(25, 90, 146, .15);
}

.aa-gallery-thumb img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.aa-product-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
}

.aa-product-shortdesc {
  color: #4d5963;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.aa-product-meta {
  color: #4d5963;
  display: grid;
  gap: 8px;
}

.aa-product-meta p {
  margin: 0;
}

.aa-price-box {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.aa-price-box__value {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aa-price-box__value strong {
  font-size: 1.8rem;
}

.aa-price-meta {
  color: #65707a;
  margin: 0;
}

.aa-form-row,
.aa-order-box {
  display: grid;
  gap: 10px;
}

.aa-label {
  color: #65707a;
  font-size: .82rem;
  font-weight: 700;
}

.aa-input-with-unit {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.aa-input,
.aa-quantity__input {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  height: 44px;
  padding: 0 12px;
  width: 100%;
}

.aa-input-unit {
  color: #65707a;
  font-weight: 700;
  margin-left: 10px;
}

.aa-help {
  color: #65707a;
  font-size: .85rem;
  margin: 0;
}

.aa-quantity {
  display: grid;
  gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.aa-quantity__button {
  background: #eef3f7;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  color: #173a59;
  font-size: 1.25rem;
  font-weight: 700;
}

.aa-button--full {
  width: 100%;
}

.aa-cart-feedback {
  min-height: 20px;
}

.aa-cart-feedback.is-error {
  color: #8a2929;
}

.aa-tabs {
  display: grid;
  gap: 16px;
}

.aa-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aa-tabs__button {
  background: #fff;
  border: 1px solid #d8e0e6;
  border-radius: 6px;
  color: #173a59;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 14px;
}

.aa-tabs__button.is-active {
  background: #173a59;
  border-color: #173a59;
  color: #fff;
}

.aa-tabs__content {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  padding: 20px;
}

.aa-tab-panel {
  display: none;
}

.aa-tab-panel.is-active {
  display: block;
}

.aa-tab-panel > :first-child {
  margin-top: 0;
}

.aa-tab-panel > :last-child {
  margin-bottom: 0;
}

.aa-product-download {
  margin-top: 20px;
}

.checkout-shell {
  display: grid;
  gap: 18px;
}

.checkout-address-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.checkout-panel {
  display: grid;
  gap: 18px;
}

.section-head-lite h2 {
  font-size: 1.4rem;
  margin: 0;
}

.checkout-grid {
  display: grid;
  gap: 14px;
}

.checkout-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  color: #65707a;
  font-size: .82rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.toggle-field.boxed {
  background: #f8fafb;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  padding: 10px 12px;
}

.checkout-toggle {
  margin-top: -4px;
}

.checkout-acceptance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-cart-items {
  display: grid;
  gap: 12px;
}

.checkout-cart-item {
  align-items: center;
  border-top: 1px solid #e5eaee;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 12px;
}

.checkout-cart-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.checkout-cart-item > div {
  display: grid;
  gap: 4px;
}

.checkout-cart-price {
  justify-items: end;
}

.checkout-totals {
  border-top: 1px solid #e5eaee;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
}

.checkout-totals div {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
}

.checkout-total-line {
  font-size: 1.15rem;
  font-weight: 700;
}

.panel {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  padding: 22px;
}

.shop-card h2,
.cart-panel h2 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.shop-card p:last-of-type {
  color: #4d5963;
  margin-bottom: 18px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  min-width: 92px;
  padding: 0 14px;
  text-decoration: none;
}

.btn-primary {
  background: #195a92;
  border: 1px solid #195a92;
  color: #fff;
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.btn-secondary {
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  color: #173a59;
}

.btn-danger {
  background: #8a2929;
  border: 1px solid #8a2929;
  color: #fff;
}

.cart-panel {
  display: grid;
  gap: 16px;
}

.cart-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  align-items: center;
  border-top: 1px solid #e5eaee;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 12px;
}

.cart-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cart-item-main {
  display: grid;
  gap: 4px;
}

.cart-item-edit {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
}

.cart-qty-input {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  height: 40px;
  padding: 0 10px;
  width: 112px;
}

.empty-state,
.muted {
  color: #65707a;
}

.field-error {
  color: #8a2929;
}

.section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.shop-admin-shell {
  display: grid;
  gap: 18px;
}

.shop-admin-page-container {
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
}

.shop-admin-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.shop-admin-head--compact {
  justify-content: flex-end;
}

.shop-admin-navbar-logout {
  margin: 0;
}

.shop-admin-navbar-logout button {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  color: #173a59;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.shop-admin-head h1,
.shop-admin-form h2,
.shop-admin-preview h2,
.shop-admin-login h1 {
  margin: 0;
}

.shop-admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-admin-form {
  display: grid;
  gap: 14px;
}

.shop-admin-form textarea {
  font-family: Consolas, "Courier New", monospace;
}

.shop-admin-preview,
.shop-admin-save {
  grid-column: 1 / -1;
}

.shop-admin-section-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.shop-admin-section-head h2,
.shop-template-html h2 {
  margin: 0;
}

.shop-admin-preview-box {
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.shop-admin-preview-box nav,
.shop-admin-preview-box footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-admin-preview-box nav span,
.shop-admin-preview-box footer span {
  background: #eef3f7;
  border-radius: 6px;
  padding: 6px 10px;
}

.shop-admin-save {
  display: flex;
  justify-content: flex-end;
}

.shop-admin-login {
  display: grid;
  gap: 16px;
  margin: 32px auto;
  max-width: 420px;
}

.shop-admin-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  color: #14532d;
  padding: 10px 12px;
}

.shop-admin-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  color: #7f1d1d;
  padding: 10px 12px;
}

.shop-admin-page-create {
  align-items: end;
  background: #f8fafb;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, .8fr) minmax(130px, .55fr) auto;
  padding: 10px;
}

.shop-admin-page-create label {
  display: grid;
  gap: 4px;
}

.shop-admin-page-create span {
  color: #65707a;
  font-size: .78rem;
  font-weight: 700;
}

.shop-admin-page-create input,
.shop-admin-page-create select {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.shop-admin-page-create button {
  align-items: center;
  background: #195a92;
  border: 1px solid #195a92;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.shop-admin-toast {
  animation: shop-admin-toast-in .18s ease-out;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 58, 89, .18);
  font-size: .92rem;
  font-weight: 700;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1000;
}

.shop-admin-toast.is-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
}

.shop-admin-toast.is-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

.shop-admin-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

@keyframes shop-admin-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-admin-topnav {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.shop-admin-topnav a,
.shop-admin-topnav span {
  border-radius: 6px;
  color: #173a59;
  display: inline-flex;
  font-weight: 700;
  min-height: 38px;
  padding: 9px 12px;
  text-decoration: none;
}

.shop-admin-topnav a:hover {
  background: #eef3f7;
}

.shop-admin-topnav .is-active {
  background: #173a59;
  color: #fff;
}

.shop-admin-topnav span {
  color: #8a959e;
}

.shop-admin-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
}

.shop-media-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.shop-media-folders {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
  position: sticky;
  top: 16px;
}

.shop-media-folder-create,
.shop-media-folder-list {
  display: grid;
  gap: 10px;
}

.shop-media-folder {
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.shop-media-folder.is-active {
  background: #f3f7fb;
  border-color: #aac1d5;
}

.shop-media-folder > a {
  color: #173a59;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-media-folder form {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-media-folder input {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 32px;
  padding: 6px 8px;
  width: 100%;
}

.shop-media-folder button {
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  color: #173a59;
  font-size: .78rem;
  font-weight: 700;
  min-height: 32px;
  padding: 0 8px;
}

.shop-media-main {
  min-height: 560px;
}

.shop-media-upload-form {
  display: flex;
  justify-content: flex-end;
}

.shop-media-upload-form label {
  cursor: pointer;
  margin: 0;
}

.shop-media-upload-placeholder {
  align-items: center;
  border: 1px dashed #aac1d5;
  border-radius: 8px;
  color: #65707a;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
}

.shop-media-upload-placeholder strong {
  color: #173a59;
  font-size: 1rem;
}

.shop-media-grid {
  display: grid;
  gap: 14px;
}

.shop-media-card {
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 12px;
}

.shop-media-card > img,
.shop-media-pdf-preview {
  background: #eef3f7;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  height: 140px;
  width: 100%;
}

.shop-media-card > img {
  object-fit: contain;
}

.shop-media-pdf-preview {
  align-items: center;
  background: #fff1f1;
  border-color: #e5a3a3;
  color: #b91c1c;
  display: flex;
  font-size: 2rem;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
}

.shop-media-pdf-preview:hover {
  background: #ffe4e6;
  color: #8a2929;
}

.shop-media-card__meta {
  display: grid;
  gap: 3px;
  grid-column: 2;
}

.shop-media-card__meta strong {
  color: #173a59;
  overflow-wrap: anywhere;
}

.shop-media-card__meta small {
  color: #65707a;
  overflow-wrap: anywhere;
}

.shop-media-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2;
}

.shop-media-card__actions form {
  display: inline-flex;
}

.shop-media-replace-form label {
  cursor: pointer;
  margin: 0;
}

.shop-media-metadata-form {
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-media-metadata-form button {
  justify-self: start;
}

.shop-admin-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.shop-admin-tree {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  padding: 14px;
  position: sticky;
  top: 16px;
}

.shop-admin-tree nav,
.shop-admin-tree__group {
  display: grid;
  gap: 6px;
}

.shop-admin-tree__group {
  margin-left: 0;
  padding-left: 0;
}

.shop-admin-tree__branch {
  border-left: 1px dashed #cfd9e2;
  display: grid;
  gap: 4px;
  margin-left: 12px;
  padding-left: 10px;
}

.shop-admin-tree__group-label {
  border-bottom: 1px solid #dfe4e8;
  color: #65707a;
  font-size: .84rem;
  font-weight: 700;
  margin-top: 8px;
  padding-bottom: 4px;
  text-transform: uppercase;
}

.shop-admin-tree__group-label-link {
  border-radius: 4px;
  display: block;
  text-decoration: none;
}

.shop-admin-tree__group-label-link:hover {
  background: #eef3f7;
  color: #173a59;
}

.shop-admin-tree__group-label-link.is-active {
  border-bottom-color: #173a59;
  color: #173a59;
}

.shop-admin-tree__root,
.shop-admin-tree__item {
  border-radius: 6px;
  color: #173a59;
  display: block;
  font-weight: 700;
  min-height: 34px;
  padding: 8px 10px;
  text-decoration: none;
}

.shop-admin-tree__item {
  font-size: .92rem;
  font-weight: 600;
  margin-left: calc(var(--tree-depth, 0) * 14px);
}

.shop-admin-tree__item.is-child {
  margin-left: 10px;
}

.shop-admin-tree__item.is-grandchild {
  margin-left: 22px;
}

.shop-admin-tree__root:hover,
.shop-admin-tree__item:hover {
  background: #eef3f7;
}

.shop-admin-tree__root.is-active,
.shop-admin-tree__item.is-active {
  background: #173a59;
  color: #fff;
}

.shop-admin-tree__item.is-muted {
  color: #8a959e;
  cursor: default;
}

.shop-admin-tree-create {
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
}

.shop-admin-tree-create label {
  display: grid;
  gap: 4px;
}

.shop-admin-tree-create span {
  color: #65707a;
  font-size: .78rem;
  font-weight: 700;
}

.shop-admin-tree-create input,
.shop-admin-tree-create select,
.shop-admin-tree-row__rename input {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.shop-admin-tree-create button,
.shop-admin-tree-row button {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  color: #173a59;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
}

.shop-admin-tree-create > button {
  background: #195a92;
  border-color: #195a92;
  color: #fff;
}

.shop-admin-tree-movebar {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
  padding: 8px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.shop-admin-template-library {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
  position: sticky;
  top: 16px;
}

.shop-admin-template-library__head {
  border-bottom: 1px solid #dfe4e8;
  padding-bottom: 6px;
}

.shop-admin-template-library__head h2 {
  color: #173a59;
  font-size: .98rem;
  margin: 0;
}

.shop-admin-template-library__list {
  display: grid;
  gap: 6px;
}

.shop-admin-template-library__item {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #173a59;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 42px;
  padding: 4px 6px;
  text-decoration: none;
}

.shop-admin-template-library__item:hover {
  background: #f3f7fb;
  border-color: #aac1d5;
}

.shop-admin-template-library__item.is-dragging {
  opacity: .45;
}

.shop-admin-template-library__item img,
.shop-admin-template-library__item > span {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  color: #173a59;
  display: flex;
  font-size: .95rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  object-fit: cover;
  width: 32px;
}

.shop-admin-template-library__item strong {
  font-size: .84rem;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shop-admin-tree-movebar div {
  display: flex;
  gap: 4px;
}

.shop-admin-tree-movebar button {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  color: #173a59;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 700;
  height: 31px;
  justify-content: center;
  min-width: 31px;
  padding: 0;
}

.shop-admin-tree-movebar button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.shop-admin-tree-row {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  grid-template-columns: 8px minmax(0, 1fr) 24px;
  margin-left: calc(var(--tree-depth, 0) * 8px);
  padding: 3px 4px;
  position: relative;
}

.shop-admin-tree-row.is-active {
  background: #f3f7fb;
  border-color: #aac1d5;
}

.shop-admin-tree-row.is-muted {
  opacity: .65;
}

.shop-admin-tree-row__link {
  color: #173a59;
  font-size: .84rem;
  font-weight: 700;
  grid-column: 2;
  line-height: 1.2;
  text-decoration: none;
}

.shop-admin-tree-row__status {
  border-radius: 999px;
  display: block;
  height: 7px;
  justify-self: center;
  width: 7px;
}

.shop-admin-tree-row__status.is-active {
  background: #22c55e;
}

.shop-admin-tree-row__status.is-inactive {
  background: #9ca3af;
}

.shop-admin-tree-row__moves,
.shop-admin-tree-row__state {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shop-admin-tree-row__moves {
  display: none;
}

.shop-admin-tree-row__menu {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  position: relative;
}

.shop-admin-tree-row__menu-button {
  border-radius: 5px;
  font-size: .72rem;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  padding: 0;
}

.shop-admin-tree-row__menu-panel {
  background: #fff;
  border: 1px solid #cdd8e2;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 58, 89, .18);
  display: none;
  min-width: 132px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.shop-admin-tree-row__menu.is-open .shop-admin-tree-row__menu-panel {
  display: grid;
  gap: 4px;
}

.shop-admin-tree-row__menu-panel button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #173a59;
  font-size: .78rem;
  justify-content: flex-start;
  min-height: 28px;
  padding: 0 8px;
  width: 100%;
}

.shop-admin-tree-row__menu-panel button:hover {
  background: #eef3f7;
}

.shop-admin-tree-row__menu-rename {
  border-top: 1px solid #e4ebf1;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-top: 6px;
}

.shop-admin-tree-row__menu-rename input {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.shop-admin-tree-row__menu-rename[hidden] {
  display: none;
}

.shop-admin-tree-row__moves button {
  min-width: 31px;
  padding: 0;
}

.shop-admin-tree-row button.is-danger {
  background: #8a2929;
  border-color: #8a2929;
  color: #fff;
}

.shop-template-list {
  display: grid;
  gap: 10px;
}

.shop-nav-editor {
  display: grid;
  gap: 8px;
}

.shop-nav-editor__row {
  align-items: center;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 100px 92px auto auto;
  padding: 10px 12px;
}

.shop-nav-editor__title {
  display: grid;
  gap: 6px;
  padding-left: calc(var(--nav-depth, 0) * 26px);
  position: relative;
}

.shop-nav-editor__title::before {
  background: #cfd9e2;
  content: "";
  display: block;
  height: 1px;
  left: calc((var(--nav-depth, 0) * 26px) - 18px);
  position: absolute;
  top: 50%;
  width: calc(var(--nav-depth, 0) * 18px);
}

.shop-nav-editor__title small {
  color: #65707a;
}

.shop-nav-editor__title label {
  display: grid;
  gap: 4px;
}

.shop-nav-editor__title label span {
  color: #65707a;
  font-size: .78rem;
  font-weight: 700;
}

.shop-nav-editor__title input {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.shop-nav-editor__title button {
  align-self: start;
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  color: #173a59;
  font-weight: 700;
  justify-self: start;
  min-height: 34px;
  padding: 0 10px;
}

.shop-nav-editor__title a {
  color: #173a59;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-nav-editor__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.shop-nav-editor__state-actions,
.shop-template-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.shop-nav-editor__actions button {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  color: #173a59;
  display: inline-flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}

.shop-nav-editor__templates {
  border-top: 1px solid #e8edf1;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  margin-left: calc(var(--nav-depth, 0) * 26px);
  padding-top: 10px;
}

.shop-nav-template-add {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.shop-nav-template-add select {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.shop-nav-template-add button,
.shop-nav-template-row form:last-child button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  min-height: 34px;
  padding: 0 10px;
}

.shop-nav-template-add button {
  background: #195a92;
  border: 1px solid #195a92;
  color: #fff;
}

.shop-nav-template-add button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.shop-nav-template-list {
  display: grid;
  gap: 8px;
}

.shop-nav-template-row {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding: 8px 10px;
}

.shop-nav-template-row span {
  display: grid;
  gap: 2px;
}

.shop-nav-template-row small {
  color: #65707a;
}

.shop-page-template-window {
  display: grid;
  gap: 16px;
  min-height: 520px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.shop-page-template-window.is-drop-target {
  background: #f3f7fb;
  border-color: #4f8fbd;
  box-shadow: inset 0 0 0 2px rgba(79, 143, 189, .22);
}

.shop-page-template-window.is-drop-disabled {
  opacity: .74;
}

.shop-page-empty-window {
  min-height: 460px;
}

.shop-page-template-icons {
  display: grid;
  gap: 12px;
}

.shop-page-template-icon {
  align-items: center;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  color: #202428;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 12px;
  text-decoration: none;
}

.shop-page-template-icon:hover {
  background: #f8fafb;
  border-color: #aac1d5;
}

.shop-page-template-icon img,
.shop-page-template-icon > span {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  color: #173a59;
  display: flex;
  font-size: 1.4rem;
  font-weight: 700;
  height: 64px;
  justify-content: center;
  object-fit: cover;
  width: 64px;
}

.shop-page-template-icon div {
  display: grid;
  gap: 4px;
}

.shop-page-template-icon small {
  color: #65707a;
}

.shop-page-template-media-slots {
  border-top: 1px solid #e8edf1;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

.shop-page-template-media-slots form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 52px;
}

.shop-page-template-media-slots label {
  display: grid;
  gap: 4px;
}

.shop-page-template-media-slots span {
  color: #65707a;
  font-size: .78rem;
  font-weight: 700;
}

.shop-page-template-media-slots select {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.shop-page-template-media-slots img {
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.shop-template-row {
  align-items: center;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  color: #202428;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 120px 120px 120px 92px auto;
  padding: 12px 14px;
}

.shop-template-row:hover {
  border-color: #aac1d5;
  background: #f8fafb;
}

.shop-template-row a {
  color: #202428;
  text-decoration: none;
}

.shop-template-row strong,
.shop-template-row small {
  display: block;
}

.shop-template-row small {
  color: #65707a;
  margin-top: 3px;
}

.shop-template-state {
  background: #eef3f7;
  border-radius: 6px;
  color: #4d5963;
  font-weight: 700;
  justify-self: start;
  padding: 5px 8px;
}

.shop-template-state.is-active {
  background: #dcfce7;
  color: #14532d;
}

.shop-template-editor {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.shop-template-html,
.shop-template-editor .shop-admin-save {
  grid-column: 1 / -1;
}

.shop-template-meta {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
}

.form-field select {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}

.shop-template-active {
  align-self: end;
  min-height: 40px;
}

.shop-template-icon-upload {
  align-items: center;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 10px;
}

.shop-template-icon-upload img,
.shop-template-icon-upload > span {
  align-items: center;
  background: #eef3f7;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  color: #65707a;
  display: flex;
  font-weight: 700;
  height: 64px;
  justify-content: center;
  object-fit: cover;
  width: 64px;
}

.shop-template-icon-fields {
  display: grid;
  gap: 8px;
}

.shop-template-icon-fields small {
  color: #65707a;
  font-size: .8rem;
}

.shop-template-type-badge {
  background: #eef3f7;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  color: #173a59;
  font-weight: 700;
  justify-self: start;
  padding: 6px 10px;
}

.shop-template-html textarea {
  font-family: Consolas, "Courier New", monospace;
  min-height: 520px;
}

.shop-placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-placeholder-list code {
  background: #eef3f7;
  border-radius: 6px;
  color: #173a59;
  padding: 6px 8px;
}

.shop-preview-status {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.shop-preview-status div:first-child {
  display: grid;
  gap: 4px;
}

.shop-preview-status span {
  color: #65707a;
}

.shop-preview-frame-panel {
  display: grid;
  gap: 16px;
}

.shop-preview-frame {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  min-height: 680px;
  width: 100%;
}

.shop-asset-check-list {
  display: grid;
  gap: 10px;
}

.shop-asset-check-row {
  align-items: start;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(220px, 1fr) 110px minmax(220px, 1fr);
  padding: 12px 14px;
}

.shop-asset-check-row.is-ok {
  border-color: #86efac;
}

.shop-asset-check-row.is-warning {
  border-color: #f8c471;
}

.shop-asset-check-row code {
  overflow-wrap: anywhere;
}

.shop-asset-check-row small {
  color: #65707a;
}

@media (max-width: 900px) {
  .aa-product-hero {
    grid-template-columns: 1fr;
  }

  .checkout-grid-4,
  .checkout-grid-2 {
    grid-template-columns: 1fr;
  }

  .checkout-cart-item,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .shop-admin-head {
    flex-direction: column;
  }

  .shop-admin-page-create {
    grid-template-columns: 1fr;
  }

  .shop-admin-grid {
    grid-template-columns: 1fr;
  }

  .shop-admin-layout {
    grid-template-columns: 1fr;
  }

  .shop-media-layout {
    grid-template-columns: 1fr;
  }

  .shop-admin-tree,
  .shop-admin-template-library,
  .shop-media-folders {
    position: static;
  }

  .shop-admin-section-head {
    flex-direction: column;
  }

  .shop-template-row,
  .shop-template-editor,
  .shop-template-meta,
  .shop-nav-editor__row,
  .shop-nav-template-add,
  .shop-nav-template-row,
  .shop-media-card,
  .shop-media-metadata-form,
  .shop-asset-check-row {
    grid-template-columns: 1fr;
  }

  .shop-media-card__meta,
  .shop-media-card__actions,
  .shop-media-metadata-form {
    grid-column: 1;
  }

  .shop-nav-editor__actions {
    justify-content: flex-start;
  }

  .checkout-cart-price {
    justify-items: start;
  }
}
