﻿body.ic-wallet {
  background: #fff;
}

.ic-wal {
  min-height: calc(100dvh - 12px);
  background: #fff;
}

.ic-wal-form[hidden],
.ic-wal-result[hidden],
.ic-wal-loading[hidden],
.ic-wal-error[hidden] {
  display: none !important;
}

.ic-wal-body {
  padding: 8px 20px calc(96px + env(safe-area-inset-bottom, 0px));
}

.ic-wal-preset .ic-toman {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 12px;
  font-weight: inherit;
}

.ic-wal-preset.is-active .ic-toman-num,
.ic-wal-preset.is-active .ic-toman-unit {
  color: #fff;
}

.ic-wal-card {
  width: 100%;
  aspect-ratio: 1.7;
  margin-top: 10px;
  padding: 16px;
  border-radius: 32px;
  background: #6c8ff8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ic-wal-card-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #fff;
}

.ic-wal-card-amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: #fff;
}

.ic-wal-preset-title {
  margin: 22px 0 30px;
  font-size: 13px;
  color: #919aaf;
  text-align: center;
}

.ic-wal-presets,
.ic-wal-step {
  position: relative;
  direction: ltr;
  display: flex;
  align-items: center;
}

.ic-wal-presets {
  width: 100%;
  justify-content: flex-start;
}

.ic-wal-preset {
  flex: 1;
  height: 52px;
  margin: 0 4px;
  padding: 0 6px;
  border: 1px solid #d9e1ee;
  border-radius: 16px;
  background: #fff;
  color: #2d3a4a;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ic-wal-preset.is-active {
  background: #4e91e6;
  border-color: #4e91e6;
  color: #fff;
}

.ic-wal-step {
  justify-content: space-between;
  margin: 25px 0 20px;
  padding: 0 10px;
}

.ic-wal-adj {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  border-radius: 24px;
  background: #f6f5fb;
  color: #4e91e6;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ic-wal-amount {
  flex: 1;
  height: 56px;
  margin: 0 10px;
  border-radius: 16px;
  background: #f8f9fb;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #4e91e6;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-wal-tip {
  position: absolute;
  top: -60px;
  z-index: 4;
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 20px;
  background: #2d3a4a;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.ic-wal-tip--center {
  left: 50%;
  transform: translateX(-50%);
}

.ic-wal-tip.is-cart {
  background: #10b981;
}

.ic-wal-tip-arrow {
  position: absolute;
  bottom: -7px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #2d3a4a;
  border-bottom: 0;
}

.ic-wal-tip.is-cart .ic-wal-tip-arrow {
  border-top-color: #10b981;
}

.ic-wal-tip--center .ic-wal-tip-arrow {
  left: 50%;
  margin-left: -8px;
}

.ic-wal-tip[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .ic-wal-presets > .ic-wal-tip,
  .ic-wal-step > .ic-wal-tip {
    top: -48px;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 24px);
    white-space: nowrap;
    padding: 12px 18px;
    box-sizing: border-box;
  }
}

.ic-wal-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 35%);
}

.ic-wal-charge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: #4e91e6;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ic-wal-charge:disabled {
  background: #bfccd4;
  cursor: default;
}

.ic-wal-result {
  min-height: calc(100dvh - 12px);
  display: flex;
  flex-direction: column;
}

.ic-wal-result-body {
  flex: 1;
  padding: 24px 24px 16px;
  text-align: center;
}

.ic-wal-result-body h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #4caf50;
}

.ic-wal-result-body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #919aaf;
}

.ic-wal-result-foot {
  padding: 8px 20px 24px;
}

.ic-wal-result-foot .ic-check-wallet {
  margin-top: 8px;
}

@media (max-width: 800px), (min-width: 801px) {
  .ic-wal,
  .ic-wal-result {
    min-height: calc(100dvh - 12px);
  }
}

