﻿.ic-acc {
  min-height: calc(100dvh - 12px);
  padding-bottom: 16px;
  background: #f6f9fd;
}

body.ic-account {
  background: #f6f9fd;
}

.ic-acc-title {
  margin: 16px 0 20px;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  color: #919aaf;
}

.ic-acc-profile {
  margin: 0 20px 10px;
  padding: 12px 16px 8px;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.ic-acc-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 12px auto 8px;
}

.ic-acc-avatar {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 0;
  border-radius: 40px;
  background: #ececec;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #2d3a4a;
  font-family: inherit;
  font-size: 28px;
}

.ic-acc-avatar-wrap.is-empty .ic-acc-avatar {
  background-color: #ececec;
}

.ic-acc-avatar-wrap.is-uploading .ic-acc-avatar {
  opacity: 0.45;
}

.ic-acc-avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 0;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

.ic-acc-avatar-overlay[hidden],
.ic-acc-avatar-wrap.has-photo .ic-acc-avatar-overlay {
  display: none !important;
  pointer-events: none;
}

.ic-acc-avatar-overlay-text {
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.ic-acc-avatar-file {
  display: none;
}

.ic-acc-name-wrap {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.ic-acc-name-wrap .ic-acc-name {
  margin: 0;
}

.ic-acc-diamond {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 3px;
  color: #a1b6ed;
}

.ic-acc-diamond[hidden] {
  display: none !important;
}

.ic-acc-name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-acc-phone {
  margin: 0 0 8px;
  font-size: 14px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: #919aaf;
}

.ic-acc-wallet {
  display: flex;
  direction: ltr;
  align-items: center;
  margin: 0 20px;
  padding: 16px 8px;
  border-radius: 15px;
  background: #fff;
}

.ic-acc-wallet-item {
  flex: 1;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 4px 8px;
  background: transparent;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ic-acc-wallet-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11.5px;
  color: #2d3a4a;
  text-align: right;
}

.ic-acc-wallet-copy [data-acc-wallet] {
  text-align: right;
}

.ic-acc-wallet-copy .is-blue {
  color: #007aff;
}

.ic-acc-wallet-icon-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.ic-acc-mis-badge {
  position: absolute;
  bottom: 1px;
  right: -2px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 20px;
  background: #72d17b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  line-height: 1;
  box-sizing: border-box;
}

.ic-acc-mis-badge[hidden] {
  display: none !important;
}

.ic-acc-wallet-sep {
  width: 1.5px;
  height: 38px;
  margin: 0 10px;
  background: #e5e5ea;
}

.ic-acc-menu {
  margin: 10px 20px;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.ic-acc-row {
  display: flex;
  direction: ltr;
  align-items: center;
  width: 100%;
  padding: 16px 12px;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.ic-acc-logout-wrap .ic-acc-row {
  padding-top: 20px;
  padding-bottom: 20px;
}

.ic-acc-chevron {
  margin-left: 8px;
  color: #919aaf;
}

.ic-acc-row.is-sub .ic-acc-chevron {
  color: #4e91e6;
}

.ic-acc-row-text {
  flex: 1;
  padding-right: 8px;
  font-size: 12px;
  color: #2d3a4a;
  text-align: right;
}

.ic-acc-sub-menu {
  display: inline;
}

.ic-acc-sub-menu.is-active,
.ic-acc-sub-menu.is-active .ic-acc-sub-label,
.ic-acc-sub-menu.is-active .ic-acc-sub-sep {
  color: #4e91e6;
  font-weight: 700;
}

.ic-acc-row.is-sub .ic-acc-sub-label {
  color: #4e91e6;
  font-weight: 700;
}

.ic-acc-sub-menu.has-remaining {
  direction: rtl;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  unicode-bidi: isolate;
}

.ic-acc-sub-remaining {
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.ic-acc-sub-sep {
  direction: rtl;
  unicode-bidi: isolate;
  white-space: pre;
}

.ic-acc-sub-remaining[hidden],
.ic-acc-sub-sep[hidden] {
  display: none !important;
}

.ic-acc-sub-label.is-manage,
[data-acc-sub-label].is-manage {
  color: #4e91e6;
}

.ic-acc-row-icon {
  width: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #919aaf;
}

.ic-acc-png,
.ic-acc-wallet-png {
  display: block;
  object-fit: contain;
}

.ic-acc-wallet-png {
  transform: translateX(8px);
}

.ic-acc-version {
  margin: 15px 0 4px;
  font-size: 11px;
  color: #b9bec7;
  text-align: center;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-acc-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}

.ic-acc-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(45, 58, 74, .45);
  cursor: pointer;
}

.ic-acc-modal-card {
  position: relative;
  z-index: 1;
  width: min(320px, calc(100% - 48px));
  padding: 28px 20px 20px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.ic-acc-modal-card p {
  margin: 0 0 22px;
  font-size: 14px;
  color: #2d3a4a;
}

.ic-acc-modal-actions {
  display: flex;
  gap: 10px;
}

.ic-acc-modal-no,
.ic-acc-modal-yes {
  flex: 1;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.ic-acc-modal-no {
  background: #f1f3f6;
  color: #2d3a4a;
}

.ic-acc-modal-yes {
  background: #4e91e6;
  color: #fff;
}

.ic-acc-modal[hidden] {
  display: none !important;
}

.ic-acc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(45, 58, 74, 0.92);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.ic-acc-toast.is-warn {
  background: rgba(230, 71, 71, 0.94);
}

.ic-acc-toast[hidden] {
  display: none !important;
}

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

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

@media (max-width: 800px), (min-width: 801px) {
  body.ic-category .ic-header,
  body.ic-category .ic-footer,
  body.ic-list .ic-header,
  body.ic-list .ic-footer,
  body.ic-forum .ic-header,
  body.ic-forum .ic-footer,
  body.ic-cart .ic-header,
  body.ic-cart .ic-footer,
  body.ic-account .ic-header,
  body.ic-account .ic-footer,
  body.ic-search .ic-header,
  body.ic-search .ic-footer {
    display: none;
  }
}

.ic-mis {
  min-height: calc(100dvh - 12px);
  padding-bottom: 24px;
  background: #fff;
}

