/* کامپوننت نتیجه سفارش — مشابه PurchaseResult.tsx */

.ic-purchase-result {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  background: #fff;
}

.ic-purchase-result--overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  max-height: none;
  height: 100dvh;
}

.ic-purchase-result-header.ic-cat-header {
  flex-shrink: 0;
  min-height: 56px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.ic-purchase-result-header .ic-cat-title {
  font-size: 14px;
  color: #2d3a4a;
}

.ic-purchase-result-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}

.ic-purchase-result-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 20px;
  text-align: center;
}

.ic-purchase-result-tick {
  width: 240px;
  height: 240px;
  margin: -40px auto -10px;
  line-height: 0;
}

.ic-purchase-result-tick svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ic-purchase-result-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #4caf50;
  text-align: center;
}

.ic-purchase-result-invoice {
  margin: 0 0 55px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  text-align: center;
}

.ic-purchase-result-invoice.is-wallet {
  margin-bottom: 60px;
}

.ic-purchase-result-info {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.ic-purchase-result-info p {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 24px;
  color: #333;
  text-align: center;
}

.ic-purchase-result-info p.is-last {
  margin-bottom: 0;
}

.ic-purchase-result-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #fff;
}

.ic-purchase-result-primary {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  padding: 20px 16px;
  border: 0;
  border-radius: 20px;
  background: #4e91e6;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.ic-purchase-result-primary:active {
  opacity: 0.88;
}

.ic-purchase-result-close {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 36px;
  padding: 16px 16px 8px;
  color: #4e91e6;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.ic-purchase-result-close:active {
  opacity: 0.75;
}

.ic-purchase-result-stores.ic-popup__stores {
  margin-top: 0;
  margin-bottom: 12px;
  gap: 10px;
  width: 100%;
}

.ic-purchase-result-stores .ic-popup__store-btn {
  gap: 8px;
  height: 48px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
}

.ic-purchase-result-stores .ic-popup__store-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.ic-purchase-result-stores .ic-popup__store-btn--bazaar {
  background: #e7f6ec;
  color: #1f8a4c;
}

.ic-purchase-result-stores .ic-popup__store-btn--myket {
  background: #e7f3fc;
  color: #2b8fd8;
}

.ic-check-result.ic-purchase-result,
.ic-wal-result.ic-purchase-result {
  min-height: 0;
}

.ic-purchase-result[hidden] {
  display: none !important;
}

@media (min-width: 801px) {
  .ic-purchase-result-foot {
    left: 50%;
    right: auto;
    width: min(100%, var(--ic-phone-width, 430px));
    max-width: var(--ic-phone-width, 430px);
    transform: translateX(-50%);
  }
}
