.cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1a1a2e;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  transition: background border-color 0.15s, background 0.15s, color 0.15s, color border-color 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.cart-nav-btn i {
  line-height: 1;
  display: block;
}
.cart-nav-btn:hover {
  background: #f0f2f8;
  color: #3b66f5;
}
.cart-nav-btn + .cart-nav-btn {
  margin-left: 4px;
}
.cart-nav-btn--wish:hover {
  color: #ff3b50;
  background: #fff1f3;
}
.cart-nav-btn--wish #wishBadge {
  background: #ff3b50;
}
.cart-nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #3b66f5;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.auth-modal--visible {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal--visible .auth-modal__box {
  transform: translateY(0);
}
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.auth-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.2s;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
}
.auth-modal__icon {
  font-size: 2.5rem;
  color: #3b66f5;
  margin-bottom: 12px;
}
.auth-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.auth-modal__text {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 24px;
}
.cart-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
}
.cart-title__count {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 400;
}
.cart-card {
  background: #fff;
  border: 1.5px solid #e4e8f0;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.cart-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px 14px;
  border-bottom: 1px solid #f0f2f7;
}
.cart-card__avatar-wrap {
  flex-shrink: 0;
}
.cart-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f6fb;
  display: block;
}
.cart-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #229ed9;
  font-size: 1.4rem;
}
.cart-card__head-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
}
.cart-card__name:hover {
  color: #3b66f5;
}
.cart-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.cart-card__stats:empty {
  display: none;
}
.cart-card__formats {
  display: flex;
  flex-direction: column;
}
.cart-card__format-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  border-bottom: 1px solid #f0f2f7;
}
.cart-card__format-row:last-child {
  border-bottom: none;
}
.cart-card__format-name {
  flex: 1;
  font-size: 0.95rem;
  color: #1a1a2e;
}
.cart-card__format-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}
.cart-card__format-req {
  font-size: 0.95rem;
  font-weight: 400;
  color: #6c757d;
}
.cart-card__remove {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color border-color 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cart-card__remove:hover {
  color: #dc3545;
}
.cart-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.2;
}
.cart-stat__lbl {
  color: #6c757d;
}
.cart-stat__val {
  color: #1a1a2e;
  font-weight: 600;
}
.cart-summary-box {
  background: #fff;
  border: 1.5px solid #e4e8f0;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 20px;
}
.cart-summary-box__mascot {
  text-align: center;
  margin-bottom: 20px;
}
.cart-summary-box__mascot img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}
.cart-summary-box__phrase {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  margin: 0;
}
.cart-summary-box__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-summary-box__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 1rem;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f2f7;
}
.cart-summary-box__row:last-child {
  border-bottom: none;
}
.cart-summary-box__row strong {
  font-weight: 700;
}
.cart-summary-box__divider {
  height: 1px;
  background: #f0f2f7;
  margin: 16px 0;
}
.cart-summary-box__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #1a1a2e;
  padding: 4px 0;
}
.cart-summary-box__total-row--big {
  font-size: 1.1rem;
  margin-top: 6px;
}
.cart-summary-box__total-row--big span,
.cart-summary-box__total-row--big strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3b66f5;
}
.cart-creative {
  background: #fff;
  border: 1.5px solid #e4e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 18px;
}
.cart-creative__head {
  margin-bottom: 14px;
}
.cart-creative__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.cart-creative__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.cart-creative__expanded {
  margin-bottom: 14px;
}
.cart-creative__expanded:empty {
  display: none;
}
.cart-creative__add-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.cart-creative__add {
  min-width: 240px;
}
.cart-creative__empty {
  grid-column: 1/-1;
  background: #f4f6fb;
  border-radius: 8px;
  padding: 16px;
  color: #6c757d;
  font-size: 0.95rem;
  text-align: center;
}
.cart-creative__tile {
  position: relative;
  aspect-ratio: 1/1;
  border: 2px solid #e4e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6fb;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: border-color border-color 0.15s, background 0.15s, color 0.15s;
}
.cart-creative__tile:hover {
  border-color: #3b66f5;
}
.cart-creative__tile--has-img .cart-creative__tile-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
}
.cart-creative__tile--has-img .cart-creative__tile-title {
  color: #fff;
}
.cart-creative__tile--has-img .cart-creative__tile-text {
  color: rgba(255,255,255,0.92);
}
.cart-creative__tile--selected {
  border-color: #3b66f5;
}
.cart-creative__tile--selected .cart-creative__tile-check {
  opacity: 1;
  transform: scale(1);
}
.cart-creative__tile-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}
.cart-creative__tile-content {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-creative__tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-creative__tile-text {
  flex: 1;
  color: #1a1a2e;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}
.cart-creative__tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3b66f5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all border-color 0.15s, background 0.15s, color 0.15s;
  pointer-events: none;
}
.tg-chat {
  background: #e7ebf0;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  justify-content: flex-start;
}
.tg-post {
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
}
.tg-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px;
}
.tg-post__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f6fb;
  flex-shrink: 0;
}
.tg-post__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b66f5;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.tg-post__author {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.tg-post__name {
  font-weight: 600;
  color: #229ed9;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-post__meta {
  color: #6c757d;
  font-size: 0.8rem;
}
.tg-post__media {
  display: grid;
  gap: 2px;
}
.tg-post__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.tg-post__media--single img {
  max-height: 360px;
  object-fit: cover;
}
.tg-post__media--double {
  grid-template-columns: 1fr 1fr;
}
.tg-post__media--double img {
  height: 200px;
}
.tg-post__body {
  padding: 10px 14px 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1a1a1a;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-family: inherit;
}
.tg-post__body a {
  color: #229ed9;
}
.tg-post__empty {
  color: #6c757d;
  font-style: italic;
}
.creatives-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.creatives-head .cart-title {
  margin-bottom: 0;
}
.creatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.creative-card {
  background: #fff;
  border: 1.5px solid #e4e8f0;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: border-color border-color 0.15s, background 0.15s, color 0.15s, transform border-color 0.15s, background 0.15s, color 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.creative-card:hover {
  border-color: #3b66f5;
  transform: translateY(-2px);
}
.creative-card__images {
  display: flex;
  gap: 4px;
  height: 140px;
}
.creative-card__images img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f6fb;
}
.creative-card__images:empty {
  display: none;
}
.creative-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.creative-card__title {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 1rem;
}
.creative-card__preview {
  color: #6c757d;
  font-size: 0.88rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}
.creative-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.creative-card__action {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  cursor: pointer;
  transition: all border-color 0.15s, background 0.15s, color 0.15s;
  padding: 0;
  font-size: 0.85rem;
}
.creative-card__action:hover {
  color: #3b66f5;
  border-color: #3b66f5;
}
.creative-card__action--danger:hover {
  color: #dc3545;
  border-color: #dc3545;
}
.creative-editor {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.creative-editor--visible {
  opacity: 1;
  pointer-events: auto;
}
.creative-editor--visible .creative-editor__box {
  transform: translateY(0);
}
.creative-editor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.creative-editor__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  width: 92%;
  max-width: 720px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.2s;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}
.creative-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f7;
}
.creative-editor__head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}
.creative-editor__close {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.creative-editor__close:hover {
  color: #1a1a2e;
}
.creative-editor__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.creative-editor__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #f0f2f7;
  background: #fafbfd;
}
.creative-field {
  margin-bottom: 18px;
}
.creative-field__lbl {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.creative-field__hint {
  color: #6c757d;
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 6px;
}
.creative-textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a1a2e;
  resize: vertical;
  min-height: 240px;
}
.creative-textarea:focus {
  color: #1a1a2e;
}
.creative-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.creative-image-slot {
  position: relative;
  aspect-ratio: 16/10;
  background: #f4f6fb;
  border: 1.5px dashed #e4e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.creative-image-slot__preview {
  position: absolute;
  inset: 0;
  display: none;
}
.creative-image-slot__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.creative-image-slot__upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6c757d;
  cursor: pointer;
  width: 100%;
  height: 100%;
  transition: all border-color 0.15s, background 0.15s, color 0.15s;
  margin: 0;
}
.creative-image-slot__upload i {
  font-size: 1.6rem;
}
.creative-image-slot__upload span {
  font-size: 0.85rem;
}
.creative-image-slot__upload:hover {
  color: #3b66f5;
  background: #eef2ff;
}
.creative-image-slot__upload.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.creative-image-slot__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.creative-image-slot__remove:hover {
  background: rgba(0,0,0,0.85);
}
.cart-order-wrap {
  position: relative;
}
.cart-order-wrap:has(button[disabled]) {
  cursor: pointer;
}
.cart-alert {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cart-alert--visible {
  opacity: 1;
  pointer-events: auto;
}
.cart-alert--visible .cart-alert__box {
  transform: translateY(0);
}
.cart-alert__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,24,40,0.55);
  backdrop-filter: blur(2px);
}
.cart-alert__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 92%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.2s;
  box-shadow: 0 12px 50px rgba(0,0,0,0.18);
}
.cart-alert__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.05rem;
  color: #6c757d;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  border-radius: 50%;
  transition: all border-color 0.15s, background 0.15s, color 0.15s;
}
.cart-alert__close:hover {
  color: #1a1a2e;
  background: #f4f6fb;
}
.cart-alert__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2ff;
  color: #3b66f5;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.cart-alert--danger .cart-alert__icon {
  background: #fde9eb;
  color: #dc3545;
}
.cart-alert--success .cart-alert__icon {
  background: #e6f7ec;
  color: #1aa055;
  font-size: 2.2rem;
}
.cart-alert__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}
.cart-alert__text {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0 0 24px;
}
.cart-alert__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cart-alert__actions .btn {
  min-width: 140px;
}
.tg-user-dropdown {
  position: relative;
}
.tg-user-dropdown .tg-user {
  background: none;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  transition: all border-color 0.15s, background 0.15s, color 0.15s;
}
.tg-user-dropdown .tg-user:hover,
.tg-user-dropdown .tg-user[aria-expanded="true"] {
  background: #f4f6fb;
  border-color: #e4e8f0;
}
.tg-user-dropdown .tg-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f6fb;
}
.tg-user-dropdown .tg-user__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1rem;
}
.tg-user-dropdown .tg-user__name {
  color: #1a1a2e;
  font-size: 0.95rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-user-dropdown .tg-user__caret {
  color: #6c757d;
  font-size: 0.75rem;
  transition: transform border-color 0.15s, background 0.15s, color 0.15s;
}
.tg-user-dropdown .tg-user[aria-expanded="true"] .tg-user__caret {
  transform: rotate(180deg);
}
.tg-user-dropdown__menu {
  border: 1.5px solid #e4e8f0;
  border-radius: 16px;
  padding: 8px;
  margin-top: 8px;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(20,24,40,0.1);
}
.tg-user-dropdown__menu .dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: #1a1a2e;
  display: flex;
  align-items: center;
}
.tg-user-dropdown__menu .dropdown-item:hover,
.tg-user-dropdown__menu .dropdown-item:focus {
  background: #f4f6fb;
  color: #3b66f5;
}
.tg-user-dropdown__menu .dropdown-item.text-danger:hover,
.tg-user-dropdown__menu .dropdown-item.text-danger:focus {
  background: #fde9eb;
  color: #dc3545 !important;
}
.tg-user-dropdown__menu .dropdown-divider {
  margin: 6px 4px;
  border-color: #f0f2f7;
}
.tg-user-dropdown__handle {
  padding: 4px 12px 6px;
  color: #6c757d;
  font-size: 0.82rem;
  text-align: left;
}

