﻿.ic-cart {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 12px);
  max-height: 100dvh;
  overflow: hidden;
}

.ic-cart-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 calc(184px + env(safe-area-inset-bottom, 0px));
}

.ic-cart-item {
  position: relative;
  margin: 5px 16px;
  padding: 20px;
  border-radius: 24px;
  background: #f9f9f9;
  overflow: hidden;
}

.ic-cart-item-main {
  display: flex;
  direction: ltr;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.ic-cart-item-info {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
  margin-top: -3px;
}

.ic-cart-item-title {
  display: block;
  font-size: 12px;
  color: #2d3a4a;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-cart-item-sub {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: #919aaf;
  text-align: right;
}

.ic-cart-item-price {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: #2d3a4a;
  text-align: right;
}

.ic-cart-file {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex-shrink: 0;
}

.ic-cart-file span {
  font-size: 22px;
  font-weight: 700;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-cart-qty {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-top: 12px;
}

.ic-cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #eeeeee;
  color: #919aaf;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ic-cart-qty-btn.is-delete {
  background: #fbe2e2;
  color: #ed8080;
}

.ic-cart-qty-trash {
  display: none;
}

.ic-cart-qty-trash img,
.ic-cart-del img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(58%) sepia(45%) saturate(638%) hue-rotate(314deg) brightness(98%) contrast(95%);
}

.ic-cart-qty-trash img {
  width: 14px;
  height: 14px;
}

.ic-cart-qty-btn.is-delete .ic-cart-qty-minus {
  display: none;
}

.ic-cart-qty-btn.is-delete .ic-cart-qty-trash {
  display: grid;
  place-items: center;
}

.ic-cart-qty-num {
  min-width: 28px;
  margin: 0 10px;
  text-align: center;
  font-size: 13px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: #2d3a4a;
}

.ic-cart-del {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  border-top-right-radius: 24px;
  background: #fbe2e2;
  color: #ed8080;
  cursor: pointer;
  box-sizing: border-box;
}

.ic-cart-del img {
  position: absolute;
  left: 11px;
  bottom: 12px;
  display: block;
  margin: 0;
}

.ic-cart-item:has(.ic-cart-del) .ic-cart-item-price {
  padding-left: 44px;
}

.ic-cart-empty {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 40px 16px calc(148px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: #919aaf;
  text-align: center;
}

.ic-cart-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-shrink: 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #fff;
}

.ic-cart-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  gap: 4px;
}

.ic-cart-total span {
  font-size: 11px;
  color: #919aaf;
}

.ic-cart-total strong {
  font-size: 16px;
  font-weight: 400;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: #2d3a4a;
}

.ic-cart-checkout {
  width: 100%;
  border: 0;
  border-radius: 24px;
  padding: 20px;
  background: #4e91e6;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ic-cart-checkout:disabled {
  background: #bfccd4;
  cursor: default;
}

.ic-cart-empty[hidden],
.ic-cart-list[hidden] {
  display: none !important;
}

.ic-check {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.ic-check-form-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ic-check-result.ic-purchase-result {
  flex: 1 1 auto;
  min-height: 0;
}

body.ic-checkout .ic-phone-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

body.ic-checkout .ic-site {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body.ic-checkout .ic-site > .ic-check {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.ic-check-banner {
  display: block;
  margin: 8px 16px 24px;
  padding: 16px;
  border-radius: 16px;
  background: #edf3ff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.ic-check-banner:active {
  opacity: 0.88;
}

.ic-check-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #5c9ae7;
}

.ic-check-banner span {
  display: block;
  font-size: 11px;
  line-height: 18px;
  color: #3e4d5b;
}

.ic-check-field {
  position: relative;
  display: block;
  margin: 0 16px 12px;
  min-height: 65px;
  border-radius: 15px;
  background: #f8f8f8;
  direction: ltr;
}

.ic-check-field--area {
  min-height: 140px;
}

.ic-check-field.is-error {
  background: #fceeee;
  box-shadow: inset 0 0 0 1px #f1b3b3;
}

.ic-check-field.is-error-shake {
  animation: ic-check-field-error-shake 320ms ease 220ms 1;
}

@keyframes ic-check-field-error-shake {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.ic-check-field input[readonly],
.ic-check-field textarea[readonly] {
  cursor: default;
}

.ic-check-field input,
.ic-check-field textarea {
  display: block;
  width: 100%;
  height: 65px;
  padding: 15px 15px 15px 45px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  font-family: inherit;
  font-size: 11.5px;
  color: #2d3a4a;
  direction: rtl;
  text-align: right;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.ic-check-field input:focus,
.ic-check-field input:focus-visible,
.ic-check-field textarea:focus,
.ic-check-field textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

.ic-check-field input[type="tel"],
.ic-check-field input[data-check-phone],
.ic-check-field input[data-check-postal] {
  font-size: 12.5px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-check-field--area textarea {
  height: 140px;
  padding-top: 18px;
}

.ic-check-ph {
  position: absolute;
  top: 0;
  right: 15px;
  left: 45px;
  bottom: 0;
  display: block;
  padding-top: 0;
  font-size: 10.5px;
  line-height: 65px;
  color: #a6a6a6;
  text-align: right;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-check-field--area .ic-check-ph {
  line-height: 1.5;
  padding-top: 18px;
  white-space: normal;
}

.ic-check-field.is-error .ic-check-ph {
  color: #fe8080;
}

.ic-check-field.is-filled .ic-check-ph {
  display: none;
}

.ic-check-clear {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #919aaf;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ic-check-field--area .ic-check-clear {
  top: 18px;
  margin-top: 0;
}

.ic-check-discount-link {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4e91e6;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.ic-check-discount {
  margin: 2px 16px 0;
  animation: ic-check-discount-in 0.25s ease;
}

@keyframes ic-check-discount-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ic-check-discount-row {
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.ic-check-discount-field {
  position: relative;
  flex: 1;
  display: block;
}

.ic-check-discount-field input {
  width: 100%;
  box-sizing: border-box;
  height: 65px;
  border: 0;
  border-radius: 14px;
  padding: 20px 20px 20px 45px;
  background: #f8f8f8;
  font-family: inherit;
  font-size: 12px;
  color: #2d3a4a;
  text-align: right;
}

.ic-check-discount-field input:focus {
  outline: none;
}

.ic-check-discount-field.is-error input {
  border: 1px solid #e58c8c;
  background: #ffe8ea;
}

.ic-check-discount-field.is-filled .ic-check-discount-ph {
  display: none;
}

.ic-check-discount-field.is-error .ic-check-discount-ph {
  display: block;
  color: #fe8080;
}

.ic-check-discount-ph {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #b7b7b7;
  font-size: 12px;
  pointer-events: none;
}

.ic-check-discount-clear {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 25px;
  height: 25px;
  margin-top: -12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #919aaf;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ic-check-discount-apply {
  flex-shrink: 0;
  min-width: 76px;
  height: 65px;
  border: 0;
  border-radius: 12px;
  padding: 0 28px;
  background: #bfccd4;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ic-check-discount-apply.is-active {
  background: #4e91e6;
  cursor: pointer;
}

.ic-check-discount-apply.is-busy {
  opacity: 0.85;
  cursor: default;
}

.ic-check-discount-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ic-spin 0.8s linear infinite;
}

.ic-check-discount-close {
  display: block;
  width: 100%;
  margin: -4px 0 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4e91e6;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.ic-check-discount-block {
  margin: -12px 0 24px;
  color: red;
  font-family: inherit;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ic-check-discount-block.is-visible {
  opacity: 1;
}

.ic-check-discount-remove {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.ic-check-discount-ok {
  margin: 12px 16px 28px;
  text-align: center;
}

.ic-check-promo-prices {
  margin-bottom: 8px;
}

.ic-check-promo-final {
  display: block;
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 700;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: #4e91e6;
}

.ic-check-promo-save {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.ic-check-promo-save s {
  color: #b2b8c5;
  text-decoration: line-through;
}

.ic-check-promo-save .is-sep {
  color: #bdc8d5;
  margin: 0 4px;
}

.ic-check-promo-save .is-green {
  color: #16a34a;
}

.ic-check-ship-opts {
  margin: 0 16px 16px;
}

.ic-check-ship-opts.is-ship-error.is-error-blink {
  background: rgba(230, 71, 71, 0.1);
  border-radius: 12px;
}

.ic-check-ship {
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.ic-check-ship.is-selected {
  background: #f0f7ff;
}

.ic-check-ship span:last-child {
  flex: 1;
}

.ic-check-ship strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 400;
}

.ic-check-ship small {
  display: block;
  font-size: 11.5px;
  color: #919aaf;
  direction: rtl;
  text-align: right;
}

.ic-check-ship-num {
  display: inline-block;
  unicode-bidi: isolate;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-check-radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid #919aaf;
  border-radius: 50%;
  box-sizing: border-box;
}

.ic-check-ship.is-selected .ic-check-radio {
  border-color: #4e91e6;
  background: radial-gradient(circle, #4e91e6 0 5px, transparent 6px);
}

.ic-check-sep {
  height: 1px;
  margin: 0 24px 16px;
  border: 0;
  background: #dbdee5;
  opacity: .5;
}

.ic-check-totals {
  margin: 12px 16px 16px;
  padding: 0 14px;
}

.ic-check-row {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: #919aaf;
}

.ic-check-row span:last-child,
.ic-check-row-label {
  text-align: right;
  direction: rtl;
  unicode-bidi: isolate;
}

.ic-check-row span:first-child {
  font-size: 14px;
  color: #2d3a4a;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  text-align: left;
}

.ic-check-row--off span:first-child {
  color: #e64747;
}

.ic-check-row--final span:first-child {
  color: #000;
}

.ic-check-pay {
  padding: 0 16px calc(48px + env(safe-area-inset-bottom, 0px));
}

.ic-check-pay-error {
  margin: 0 16px 12px;
  color: #e64747;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.ic-check-gateway {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  height: 66px;
  margin-bottom: 9px;
  border: 0;
  border-radius: 24px;
  padding: 22px 16px;
  background: #4e91e6;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  box-sizing: border-box;
}

.ic-check-gateway:disabled,
.ic-check-gateway.is-loading {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}

.ic-check-wallet-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 11px;
  padding: 0;
}

.ic-check-wallet-line-bar {
  flex: 1;
  height: 1px;
  margin: 0 8px;
  background: #dbdee5;
  opacity: 0.5;
}

.ic-check-wallet-balance {
  flex-shrink: 0;
  margin: 12px 0;
  padding: 0;
  border: 0;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #919aaf;
  text-align: center;
  direction: rtl;
  unicode-bidi: isolate;
}

.ic-check-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  height: 66px;
  border: 0;
  border-radius: 24px;
  padding: 22px 16px;
  background: #ebf2ff;
  color: #4e91e6;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ic-check-wallet.is-low {
  background: #ffebeb;
  color: #fe8080;
}

.ic-check-wallet:disabled,
.ic-check-wallet.is-loading {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}

.ic-check-wallet-soon {
  margin: 10px 0 0;
  font-size: 11px;
  color: #919aaf;
  text-align: center;
}

.ic-check-tick {
  width: 88px;
  height: 88px;
  margin: 12px auto 20px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #2e9e5b;
  display: grid;
  place-items: center;
  font-size: 42px;
}

.ic-check-form-wrap[hidden],
.ic-check-result[hidden],
.ic-check-discount[hidden],
.ic-check-discount-ok[hidden],
.ic-check-discount-link[hidden],
.ic-check-discount-clear[hidden],
.ic-check-discount-block[hidden],
.ic-check-discount-spinner[hidden],
.ic-check-promo-save[hidden],
.ic-check-wallet-soon[hidden],
.ic-check-clear[hidden],
.ic-check-row[hidden],
[data-check-physical][hidden] {
  display: none !important;
}

/* سبد فقط فایل رایگان — بخش کیف پول حذف می‌شود */
.ic-check-wallet-line[hidden],
.ic-check-wallet[hidden] {
  display: none !important;
}

.ic-check-pay:has(.ic-check-wallet[hidden]) .ic-check-gateway {
  margin-bottom: 0;
}

@media (max-width: 800px), (min-width: 801px) {
  .ic-cart {
    min-height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px));
  }
}

