/* Ücretsiz kargo sayacı: mağaza bileşeni (.mds-*) ve panel önizlemesi (.ship-*) */

/* ---- Mağaza bileşeni ---- */
.mds-bar {
  --mds-accent: #b8a36b;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ece7df;
  color: #2b2733;
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
}
.mds-bar * {
  box-sizing: border-box;
}
.mds-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--mds-accent);
  background: #f5f1e8;
  background: color-mix(in srgb, var(--mds-accent) 14%, #fff);
}
.mds-icon svg {
  width: 18px;
  height: 18px;
}
.mds-body {
  flex: 1;
  min-width: 0;
}
.mds-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}
.mds-bar .mds-text {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #5d5868;
  overflow-wrap: anywhere;
}
.mds-bar .mds-text strong {
  color: #2b2733;
  font-weight: 700;
  white-space: nowrap;
}
.mds-left {
  display: inline-block;
}
.mds-track {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: #efebe4;
  background: color-mix(in srgb, var(--mds-accent) 18%, #f2f0ec);
}
.mds-track span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--mds-accent);
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mds-bar.is-reached {
  border-color: var(--mds-accent);
}
.mds-bar.is-reached .mds-icon {
  color: #fff;
  background: var(--mds-accent);
}
@media (max-width: 480px) {
  .mds-bar {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .mds-icon {
    width: 30px;
    height: 30px;
  }
  .mds-title {
    font-size: 12.5px;
  }
  .mds-bar .mds-text {
    font-size: 12px;
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mds-track span {
    transition: none;
  }
}

/* ---- Panel önizlemesi ---- */
.preview-window.ship-preview {
  max-width: 420px;
  padding: 16px;
  text-align: left;
}
.ship-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: #f3eff8;
  margin-bottom: 14px;
}
.ship-toggle button {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #8a789d;
}
.ship-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #5e407122;
}
.ship-device {
  margin: 0 auto;
  border: 1px solid #ece6f2;
  border-radius: 14px;
  background: #faf9fc;
  padding: 10px;
  transition: max-width 0.25s ease;
}
.ship-device.mobile {
  max-width: 260px;
}
.ship-device.desktop {
  max-width: 100%;
}
.ship-store-top {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.ship-store-top span {
  height: 6px;
  border-radius: 99px;
  background: #e8e2ef;
  flex: 1;
}
.ship-store-top span:first-child {
  flex: 0 0 34px;
  background: #ddd3ea;
}
.ship-store-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ship-device.desktop .ship-store-body {
  grid-template-columns: repeat(4, 1fr);
}
.ship-store-body i {
  aspect-ratio: 1 / 1.1;
  border-radius: 8px;
  background: #efebf4;
}
.ship-device.desktop .ship-store-body i {
  aspect-ratio: 1 / 0.8;
}
.ship-device.mobile .mds-bar {
  gap: 10px;
  padding: 10px 12px;
}
.ship-device.mobile .mds-icon {
  width: 30px;
  height: 30px;
}
.ship-device.mobile .mds-bar .mds-text {
  font-size: 12px;
}
.ship-invalid {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff6ed;
  color: #9a6a3a !important;
  font-size: 11px;
}
.ship-controls {
  margin-top: 16px;
}
.ship-slider {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6f6480;
}
.ship-slider strong {
  float: right;
  color: var(--ink);
}
.ship-slider input {
  display: block;
  width: 100%;
  margin: 10px 0 12px;
  accent-color: var(--accent, var(--purple));
}
.ship-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ship-chip {
  padding: 7px 10px;
  border-radius: 99px;
  border: 1px solid #e3ddea;
  background: #fff;
  font-size: 11px;
  color: #5f526e;
}
.ship-chip:hover {
  border-color: var(--accent, var(--purple));
}
.ship-chip.ghost {
  background: transparent;
  color: #9b8aaa;
}
.ship-hint {
  display: block;
  margin-top: 8px;
  font-weight: 450;
  font-size: 10.5px;
  line-height: 1.6;
  color: #8a789d;
}
.ship-hint.ship-warning {
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff6ed;
  border: 1px solid #f3dfc6;
  color: #8a5a2b;
}
.ship-hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f3eff8;
  color: #5f526e;
}
.ship-token {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #e3ddea;
  font-size: 10.5px;
  color: var(--purple);
}
@media (max-width: 600px) {
  .preview-window.ship-preview {
    padding: 12px;
  }
}
