/* XCHAT_DESKTOP_GIFTS_SHOP_V1_1 */

.xgift-launcher {
  cursor: pointer;
}

.xgift-overlay {
  position: fixed;
  inset: 0;
  z-index: 160000;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  padding: 24px;

  background: rgba(11, 14, 31, 0.62);
  backdrop-filter: blur(3px);
}

.xgift-dialog {
  width: min(880px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid #9da8cf;
  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      #fafbff,
      #eef2ff
    );

  box-shadow:
    0 24px 70px
    rgba(6, 9, 28, 0.42);
}

.xgift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 17px 19px 14px;

  border-bottom:
    1px solid #d3d9ed;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #eef2ff
    );
}

.xgift-head h2,
.xgift-head p,
.xgift-section-title h3 {
  margin: 0;
}

.xgift-head h2 {
  color: #303b6a;
  font-size: 21px;
}

.xgift-head p {
  margin-top: 4px;

  color: #7f86a3;
  font-size: 12px;
}

.xgift-close {
  width: 34px;
  height: 34px;

  border: 1px solid #bcc5e0;
  border-radius: 8px;

  background: #fff;
  color: #46517f;

  font-size: 24px;
  line-height: 28px;

  cursor: pointer;
}

.xgift-body {
  min-height: 0;
  overflow: auto;

  padding: 18px;
}

.xgift-section + .xgift-section {
  margin-top: 24px;
  padding-top: 20px;

  border-top:
    1px solid #d7dced;
}

.xgift-section-title {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 12px;
}

.xgift-section-title h3 {
  color: #333e6a;
  font-size: 16px;
}

.xgift-section-title > span {
  padding: 3px 7px;

  border-radius: 999px;

  background: #e5e9ff;
  color: #6670b7;

  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.xgift-section-title small {
  margin-left: auto;

  color: #858ba5;
}

.xgift-catalog {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(180px, 1fr)
    );

  gap: 12px;
}

.xgift-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  padding: 12px;

  border: 1px solid #d9deef;
  border-radius: 12px;

  background: #fff;

  box-shadow:
    0 5px 15px
    rgba(48, 58, 104, .06);
}

.xgift-picture {
  height: 116px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 9px;

  background:
    linear-gradient(
      145deg,
      #f7f8ff,
      #e9edff
    );
}

.xgift-picture img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}

.xgift-placeholder {
  font-size: 53px;
}

.xgift-copy {
  min-height: 48px;
  margin-top: 10px;
}

.xgift-copy strong {
  display: block;

  color: #333d67;

  overflow-wrap: anywhere;
}

.xgift-copy small {
  display: block;

  margin-top: 4px;

  color: #858ba6;
  line-height: 1.35;
}

.xgift-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  margin-top: auto;
  padding-top: 10px;
}

.xgift-card-footer b {
  color: #655aab;
  font-size: 12px;
}

.xgift-card-footer button,
.xgift-bottom button {
  border: 1px solid #656eb7;
  border-radius: 8px;

  background:
    linear-gradient(
      180deg,
      #7d84d0,
      #6169b5
    );

  color: #fff;

  cursor: pointer;
}

.xgift-card-footer button {
  padding: 6px 10px;

  font-size: 12px;
}

.xgift-card-footer button:hover,
.xgift-bottom button:hover {
  filter: brightness(1.06);
}

.xgift-card-footer button:disabled,
.xgift-star:disabled {
  opacity: .5;
  cursor: default;
}

.xgift-received {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(205px, 1fr)
    );

  gap: 9px;
}

.xgift-received-card {
  min-width: 0;

  display: grid;

  grid-template-columns:
    52px minmax(0, 1fr) 34px;

  align-items: center;

  gap: 9px;

  padding: 9px;

  border: 1px solid #dde1f0;
  border-radius: 10px;

  background: #fff;
}

.xgift-received-card.is-favorite {
  border-color: #d6b65a;

  box-shadow:
    inset 0 0 0 1px
    rgba(221, 180, 56, .18);
}

.xgift-received-picture {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 8px;

  background: #f1f3ff;

  font-size: 27px;
}

.xgift-received-picture img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}

.xgift-received-copy {
  min-width: 0;
}

.xgift-received-copy strong,
.xgift-received-copy small {
  display: block;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xgift-received-copy strong {
  color: #353e66;
}

.xgift-received-copy small {
  margin-top: 3px;

  color: #8a90a7;
  font-size: 11px;
}

.xgift-star {
  width: 32px;
  height: 32px;

  border: 1px solid #d4d8eb;
  border-radius: 8px;

  background: #f8f9ff;
  color: #c49922;

  font-size: 21px;

  cursor: pointer;
}

.xgift-star:hover {
  background: #fff8dc;
}

.xgift-empty {
  grid-column: 1 / -1;

  padding: 28px 15px;

  border: 1px dashed #cdd3e9;
  border-radius: 10px;

  color: #898fa8;

  text-align: center;
}

.xgift-bottom {
  display: flex;
  align-items: center;

  gap: 14px;

  min-height: 50px;
  padding: 10px 18px;

  border-top:
    1px solid #d3d9eb;

  background: #f8f9ff;
}

.xgift-status {
  min-width: 0;
  flex: 1 1 auto;

  color: #777e9b;
  font-size: 12px;
}

.xgift-status[data-kind="ok"] {
  color: #41744c;
}

.xgift-status[data-kind="error"] {
  color: #a13d48;
}

.xgift-bottom button {
  flex: 0 0 auto;

  padding: 7px 16px;
}

.xgift-overlay.is-busy {
  cursor: progress;
}

@media (max-width: 720px) {
  .xgift-overlay {
    padding: 10px;
  }

  .xgift-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .xgift-catalog {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

/*
 * XCHAT_INFO_GIFTS_PRESENTATION_V1
 *
 * Presentation for the Gifts shelf inside desktop INFO.
 */

#xchatInfoPopup .xip-gifts {
  margin-top: 10px;
  margin-bottom: 10px;

  padding: 8px;

  border:
    1px solid
    rgba(103, 127, 225, .29);

  border-radius: 9px;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(79, 101, 214, .13),
      transparent 54%
    ),
    linear-gradient(
      180deg,
      rgba(28, 38, 88, .94),
      rgba(12, 18, 48, .97)
    );

  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, .035);
}

#xchatInfoPopup .xip-gifts-title {
  margin-bottom: 8px;

  color: #f4f6ff;

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .04em;
}

#xchatInfoPopup .xip-gifts-grid {
  display: flex;

  flex-wrap: nowrap;

  gap: 5px;

  overflow-x: auto;
  overflow-y: hidden;

  padding:
    1px 0 3px;

  scrollbar-width:
    thin;

  scrollbar-color:
    rgba(115, 137, 220, .38)
    transparent;
}

#xchatInfoPopup .xip-gift-card {
  position: relative;

  flex:
    0 0 118px;

  width: 118px;
  min-width: 118px;

  display: grid;

  grid-template-columns:
    42px minmax(0, 1fr);

  align-items: center;

  gap: 6px;

  min-height: 60px;

  padding: 6px;

  box-sizing: border-box;

  overflow: visible;

  border:
    1px solid
    rgba(255, 255, 255, .085);

  border-radius: 9px;

  background:
    radial-gradient(
      ellipse at 25% 48%,
      rgba(255, 255, 255, .10),
      rgba(255, 255, 255, .02) 48%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(38, 49, 105, .90),
      rgba(16, 23, 61, .97)
    );

  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, .04),
    0 6px 16px
    rgba(0, 0, 0, .25);
}

#xchatInfoPopup .xip-gift-card.is-favorite {
  width: 118px;

  border-color:
    rgba(242, 194, 70, .74);

  background:
    radial-gradient(
      ellipse at 25% 48%,
      rgba(244, 199, 82, .15),
      rgba(255, 255, 255, .02) 50%,
      transparent 73%
    ),
    linear-gradient(
      180deg,
      rgba(44, 47, 96, .94),
      rgba(18, 22, 58, .98)
    );

  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, .04),
    0 6px 16px
    rgba(0, 0, 0, .25),
    0 0 16px
    rgba(235, 186, 59, .10);
}

#xchatInfoPopup .xip-gift-picture {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;

  border-radius: 7px;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, .11),
      rgba(255, 255, 255, .025) 57%,
      transparent 74%
    );

  font-size: 22px;
}

#xchatInfoPopup .xip-gift-card.is-favorite
.xip-gift-picture {
  background:
    radial-gradient(
      circle,
      rgba(244, 199, 82, .20),
      rgba(244, 199, 82, .055) 55%,
      transparent 76%
    );
}

#xchatInfoPopup .xip-gift-picture img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}

#xchatInfoPopup .xip-gift-copy {
  min-width: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: stretch;
}

#xchatInfoPopup .xip-gift-copy strong,
#xchatInfoPopup .xip-gift-copy small {
  display: block;

  margin-top: 4px;

  padding-top: 3px;

  border-top:
    1px solid
    rgba(132, 146, 199, .18);

  color: #a5b3df;

  font-size: 8px;

  line-height: 1.15;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

#xchatInfoPopup .xip-gift-copy strong {
  display: block;

  color: #b9ef5e;

  font-size: 10px;
  font-weight: 800;

  line-height: 1.18;

  white-space: normal;

  overflow: hidden;

  max-height: 2.36em;

  overflow-wrap: anywhere;
}

#xchatInfoPopup .xip-gift-copy small {
  margin-top: 3px;

  color: #8a8fa5;

  font-size: 9px;
}

#xchatInfoPopup .xip-gift-favorite {
  position: absolute;

  top: -7px;
  right: -5px;

  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(242, 194, 70, .76);

  border-radius: 50%;

  background:
    rgba(41, 31, 8, .96);

  color: #f1c75b;

  box-shadow:
    0 0 9px
    rgba(235, 186, 59, .24),
    0 2px 7px
    rgba(0, 0, 0, .34);

  font-size: 13px;
  line-height: 1;
}


/*
 * XCHAT_GIFTS_V2_USER_TO_USER_V1
 * Recipient picker.
 */

.xgift-recipient {
  display: grid;
  grid-template-columns:
    auto minmax(180px, 320px) 1fr;
  align-items: center;
  gap: 9px 12px;

  margin-bottom: 18px;
  padding: 12px 14px;

  border: 1px solid #d7dced;
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f2f5ff
    );
}

.xgift-recipient-label {
  color: #3d4776;
  font-weight: 700;
  white-space: nowrap;
}

.xgift-recipient-select {
  min-width: 0;
  height: 34px;

  box-sizing: border-box;
  padding: 0 34px 0 10px;

  border: 1px solid #b9c2df;
  border-radius: 8px;

  background: #fff;
  color: #303b6a;

  font: inherit;
}

.xgift-recipient small {
  color: #858ba5;
  line-height: 1.35;
}

.xgift-overlay.is-busy
.xgift-recipient-select {
  opacity: .65;
}

@media (max-width: 720px) {
  .xgift-recipient {
    grid-template-columns: 1fr;
  }

  .xgift-recipient-select {
    width: 100%;
  }
}

/* =========================================================
   XCHAT_GIFTS_NATIVE_ART_SIZE_V1
   Historical gift artwork is displayed at its intrinsic size.
   Do not miniaturize the original gift files.
   ========================================================= */

.xgift-picture {
  height: auto !important;
  min-height: 150px !important;

  overflow: visible !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.xgift-picture img {
  width: auto !important;
  height: auto !important;

  max-width: none !important;
  max-height: none !important;

  min-width: 0 !important;
  min-height: 0 !important;

  object-fit: none !important;
}

.xgift-card:hover .xgift-picture img {
  /*
   * Do not scale original pixels on hover either.
   */
  transform: none !important;
}


/* Received collection: same rule. */

.xgift-received-picture {
  width: auto !important;
  height: auto !important;

  min-width: 0 !important;
  min-height: 0 !important;

  overflow: visible !important;
}

.xgift-received-picture img {
  width: auto !important;
  height: auto !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: none !important;
}


/* =========================================================
   XCHAT_GIFTS_PUBLIC_XMAFIA_UI_V2
   Visual language inspired by our xMafia presents shop.
   Native historical gift dimensions remain untouched.
   ========================================================= */

.xgift-overlay {
  background:
    rgba(3, 6, 22, .78) !important;

  backdrop-filter:
    blur(5px);
}

.xgift-dialog {
  width:
    min(1100px, calc(100vw - 54px)) !important;

  max-height:
    calc(100vh - 36px) !important;

  border:
    1px solid rgba(102, 125, 229, .45) !important;

  border-radius:
    12px !important;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(79, 101, 214, .18),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      #111735,
      #080d22
    ) !important;

  color:
    #eef1ff !important;

  box-shadow:
    0 30px 90px rgba(0,0,0,.72),
    inset 0 1px rgba(255,255,255,.05) !important;
}

.xgift-head {
  background:
    linear-gradient(
      180deg,
      rgba(46, 60, 139, .72),
      rgba(19, 27, 67, .50)
    ) !important;

  border-bottom:
    1px solid rgba(119, 142, 236, .22) !important;
}

.xgift-head h2 {
  color:
    #fff !important;
}

.xgift-head p,
.xgift-section-title small {
  color:
    #8998d1 !important;
}

.xgift-section-title h3 {
  color:
    #f4f6ff !important;
}

.xgift-section-title > span {
  color:
    #9ca8d7 !important;
}

.xgift-close {
  color:
    #e7ebff !important;

  background:
    rgba(255,255,255,.05) !important;

  border-color:
    rgba(255,255,255,.14) !important;
}

.xgift-body {
  background:
    transparent !important;
}


/* Recipient */

.xgift-recipient {
  border:
    1px solid rgba(103, 127, 225, .29) !important;

  background:
    linear-gradient(
      180deg,
      rgba(35, 47, 108, .76),
      rgba(19, 26, 67, .78)
    ) !important;
}

.xgift-recipient-label {
  color:
    #e5eaff !important;
}

.xgift-recipient-select {
  color:
    #fff !important;

  border:
    1px solid rgba(120, 145, 240, .45) !important;

  background:
    #0c1230 !important;
}

.xgift-recipient small {
  color:
    #8391c4 !important;
}


/* Main catalog */

.xgift-catalog {
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(190px, 1fr)
    ) !important;

  gap:
    13px !important;

  align-items:
    stretch;
}

.xgift-card {
  min-width:
    0 !important;

  min-height:
    270px !important;

  padding:
    12px !important;

  display:
    flex !important;

  flex-direction:
    column !important;

  border:
    1px solid rgba(255,255,255,.085) !important;

  border-radius:
    10px !important;

  background:
    radial-gradient(
      ellipse at 50% 40%,
      rgba(255,255,255,.10),
      rgba(255,255,255,.02) 48%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(38, 49, 105, .90),
      rgba(16, 23, 61, .97)
    ) !important;

  box-shadow:
    inset 0 1px rgba(255,255,255,.04),
    0 8px 24px rgba(0,0,0,.27) !important;

  overflow:
    visible !important;

  transition:
    transform .14s ease,
    border-color .14s ease,
    box-shadow .14s ease !important;
}

.xgift-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(240, 194, 77, .52) !important;

  box-shadow:
    inset 0 1px rgba(255,255,255,.05),
    0 13px 30px rgba(0,0,0,.38),
    0 0 24px rgba(239, 192, 70, .07) !important;
}


/*
 * IMPORTANT:
 * NO width/height/max-* declarations on gift img here.
 * XCHAT_GIFTS_NATIVE_ART_SIZE_V1 remains authoritative.
 */
.xgift-picture {
  min-height:
    160px !important;

  padding:
    8px !important;

  overflow:
    visible !important;

  border:
    0 !important;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.11),
      rgba(255,255,255,.025) 57%,
      transparent 74%
    ) !important;
}

.xgift-picture img {
  filter:
    drop-shadow(
      0 8px 12px rgba(0,0,0,.34)
    ) !important;
}

.xgift-copy {
  text-align:
    center !important;
}

.xgift-copy strong {
  color:
    #b9ef5e !important;

  font-size:
    13px !important;

  font-weight:
    800 !important;
}

.xgift-copy small {
  color:
    #8492c7 !important;
}

.xgift-card-footer {
  margin-top:
    auto !important;

  padding-top:
    10px !important;

  border-top:
    1px solid rgba(255,255,255,.06) !important;
}

.xgift-card-footer b {
  color:
    #f1c75b !important;
}

.xgift-card-footer button {
  min-height:
    32px;

  border:
    1px solid rgba(122, 148, 242, .52) !important;

  border-radius:
    7px !important;

  background:
    linear-gradient(
      180deg,
      #6378dc,
      #4558bb
    ) !important;

  color:
    #fff !important;

  font-weight:
    700 !important;

  cursor:
    pointer;
}

.xgift-card-footer button:hover {
  filter:
    brightness(1.11);
}


/* Received */

.xgift-received {
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    ) !important;

  gap:
    10px !important;
}

.xgift-received-card {
  overflow:
    visible !important;

  border:
    1px solid rgba(102, 126, 215, .23) !important;

  background:
    linear-gradient(
      180deg,
      rgba(31, 42, 93, .84),
      rgba(17, 24, 62, .92)
    ) !important;

  color:
    #edf0ff !important;
}

.xgift-received-card.is-favorite {
  border-color:
    rgba(242, 194, 70, .74) !important;

  box-shadow:
    0 0 20px rgba(235, 186, 59, .10) !important;
}

.xgift-received-picture {
  overflow:
    visible !important;

  background:
    rgba(255,255,255,.045) !important;
}

.xgift-received-copy strong {
  color:
    #eef1ff !important;
}

.xgift-received-copy small {
  color:
    #909ccb !important;
}

.xgift-star {
  color:
    #ffd35a !important;

  background:
    rgba(255,210,74,.06) !important;

  border-color:
    rgba(242,195,67,.30) !important;
}


/* Inline confirmation */

.xgift-confirm-layer {
  position:
    absolute;

  inset:
    0;

  z-index:
    40;

  display:
    grid;

  place-items:
    center;

  padding:
    24px;

  overflow:
    auto;

  background:
    rgba(2, 5, 21, .82);

  backdrop-filter:
    blur(6px);
}

.xgift-confirm-card {
  width:
    min(520px, calc(100vw - 56px));

  padding:
    22px;

  text-align:
    center;

  border:
    1px solid rgba(235, 188, 66, .42);

  border-radius:
    12px;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(227, 177, 58, .11),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      #192147,
      #0a102a
    );

  box-shadow:
    0 28px 90px rgba(0,0,0,.72),
    inset 0 1px rgba(255,255,255,.05);
}

.xgift-confirm-kicker {
  color:
    #efc961;

  font-size:
    11px;

  font-weight:
    900;

  letter-spacing:
    .15em;
}

.xgift-confirm-recipient-label {
  margin-top:
    18px;

  color:
    #7f8dc0;

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    .13em;
}

.xgift-confirm-recipient {
  margin-top:
    3px;

  color:
    #fff;

  font-size:
    20px;

  font-weight:
    800;
}

.xgift-confirm-art {
  min-height:
    160px;

  margin:
    16px 0 7px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  overflow:
    visible;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.10),
      transparent 68%
    );
}


/*
 * Again: native dimensions.
 * Deliberately no width/height/max-width/max-height here.
 */
.xgift-confirm-art img {
  filter:
    drop-shadow(
      0 9px 14px rgba(0,0,0,.38)
    );
}

.xgift-confirm-art span {
  font-size:
    70px;
}

.xgift-confirm-title {
  color:
    #b9ef5e;

  font-size:
    17px;

  font-weight:
    800;
}

.xgift-confirm-price {
  margin-top:
    4px;

  color:
    #f1c75b;

  font-size:
    13px;

  font-weight:
    800;
}

.xgift-confirm-question {
  margin-top:
    18px;

  padding-top:
    15px;

  border-top:
    1px solid rgba(255,255,255,.07);

  color:
    #e9edff;
}

.xgift-confirm-actions {
  display:
    flex;

  justify-content:
    center;

  gap:
    10px;

  margin-top:
    14px;
}

.xgift-confirm-actions button {
  min-width:
    120px;

  min-height:
    38px;

  border-radius:
    7px;

  font-weight:
    800;

  cursor:
    pointer;
}

.xgift-confirm-back {
  border:
    1px solid rgba(157, 169, 217, .28);

  background:
    rgba(255,255,255,.05);

  color:
    #bac4e7;
}

.xgift-confirm-send {
  border:
    1px solid rgba(124, 150, 245, .52);

  background:
    linear-gradient(
      180deg,
      #667bdd,
      #4659bd
    );

  color:
    #fff;
}

.xgift-status[data-kind="ok"] {
  color:
    #90e66c !important;
}

.xgift-status[data-kind="error"] {
  color:
    #ff819e !important;
}


/* =========================================================
   XCHAT_GIFT_COLLECTION_HIDE_V1_1
   ========================================================= */

.xgift-received-card {
  grid-template-columns:
    auto minmax(0, 1fr) 34px 34px !important;
}

.xgift-star,
.xgift-delete {
  width:
    32px;

  height:
    32px;

  padding:
    0 !important;
}

.xgift-delete {
  display:
    grid;

  place-items:
    center;

  border:
    1px solid rgba(238, 88, 119, .34);

  border-radius:
    7px;

  background:
    rgba(200, 41, 74, .08);

  color:
    #ff7896;

  font-size:
    20px;

  line-height:
    1;

  cursor:
    pointer;

  transition:
    background .12s ease,
    border-color .12s ease,
    transform .12s ease;
}

.xgift-delete:hover {
  border-color:
    rgba(255, 106, 137, .72);

  background:
    rgba(214, 48, 83, .18);

  transform:
    translateY(-1px);
}

.xgift-delete:disabled {
  opacity:
    .45;

  cursor:
    default;

  transform:
    none;
}

.xgift-delete-confirm-card {
  border-color:
    rgba(238, 80, 112, .38);
}

.xgift-delete-kicker {
  color:
    #ff7897 !important;
}

.xgift-delete-sender {
  margin-top:
    5px;

  color:
    #9ca8d3;

  font-size:
    12px;
}

.xgift-delete-warning {
  margin-top:
    18px;

  padding-top:
    15px;

  border-top:
    1px solid rgba(255,255,255,.075);

  color:
    #f0f2ff;

  font-size:
    14px;

  font-weight:
    700;
}

.xgift-delete-note {
  margin-top:
    6px;

  color:
    #8d98c5;

  font-size:
    11px;
}

.xgift-delete-confirm-yes {
  min-width:
    120px;

  min-height:
    38px;

  border:
    1px solid rgba(245,87,121,.58);

  border-radius:
    7px;

  background:
    linear-gradient(
      180deg,
      #c84063,
      #982944
    );

  color:
    #fff;

  font-weight:
    800;

  cursor:
    pointer;
}

.xgift-delete-confirm-yes:hover {
  filter:
    brightness(1.1);
}


/*
 * Bottom area is now only status.
 * No duplicate close button.
 */
.xgift-bottom {
  min-height:
    0 !important;

  padding:
    8px 14px !important;
}

.xgift-bottom:has(
  .xgift-status:empty
) {
  display:
    none;
}


/* =========================================================
   XCHAT_GIFT_RESALE_20_V2_1
   ========================================================= */

.xgift-received-card {
  grid-template-columns:
    auto minmax(0, 1fr) 34px auto !important;
}

.xgift-sell {
  min-width:
    66px;

  height:
    32px;

  padding:
    0 9px;

  border:
    1px solid rgba(235,190,69,.38);

  border-radius:
    7px;

  background:
    rgba(218,167,36,.09);

  color:
    #f2ca58;

  font-size:
    11px;

  font-weight:
    800;

  cursor:
    pointer;
}

.xgift-sell:hover {
  border-color:
    rgba(248,207,90,.72);

  background:
    rgba(218,167,36,.18);
}

.xgift-sale-kicker {
  color:
    #f3ca58 !important;
}

.xgift-sale-sender {
  margin-top:
    5px;

  color:
    #9ca8d3;

  font-size:
    12px;
}

.xgift-sale-warning {
  margin-top:
    18px;

  padding-top:
    15px;

  border-top:
    1px solid rgba(255,255,255,.075);

  color:
    #f4f5ff;

  font-size:
    15px;

  font-weight:
    800;
}

.xgift-sale-price,
.xgift-sale-payout {
  margin-top:
    8px;

  color:
    #9ca8d3;

  font-size:
    12px;
}

.xgift-sale-payout strong {
  color:
    #f4cb58;

  font-size:
    16px;
}

.xgift-sale-note {
  margin-top:
    9px;

  color:
    #858fbc;

  font-size:
    11px;
}

.xgift-sale-confirm-yes {
  min-width:
    175px;

  min-height:
    38px;

  border:
    1px solid rgba(235,190,67,.58);

  border-radius:
    7px;

  background:
    linear-gradient(
      180deg,
      #c69a32,
      #9b7022
    );

  color:
    #fff;

  font-weight:
    800;

  cursor:
    pointer;
}


/* ============================================================
 * XCHAT_GIFTS_STATUSBAR_VISUAL_FIX_V1
 *
 * Problem:
 *   resale / status message is displayed over a light footer
 *   and green text becomes unreadable.
 *
 * Fix:
 *   dark footer/status area
 *   readable success text
 *   no white strip effect
 * ============================================================ */

.xgift-modal__footer,
.gifts-modal__footer,
.gift-shop__footer,
.xgifts-modal__footer,
[data-xgift-footer] {
    background:
        linear-gradient(
            180deg,
            rgba(10, 22, 70, 0.96) 0%,
            rgba(5, 12, 42, 0.98) 100%
        ) !important;
    border-top: 1px solid rgba(132, 154, 255, 0.28) !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

.xgift-status,
.gifts-status,
.gift-shop-status,
[data-xgift-status] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #97ff97 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-shadow:
        0 0 6px rgba(80, 255, 80, 0.25),
        0 1px 0 rgba(0, 0, 0, 0.65) !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.xgift-status--success,
.gifts-status--success,
[data-xgift-status].is-success {
    color: #9cff9c !important;
}

.xgift-status--error,
.gifts-status--error,
[data-xgift-status].is-error {
    color: #ff9e9e !important;
    text-shadow:
        0 0 6px rgba(255, 110, 110, 0.22),
        0 1px 0 rgba(0, 0, 0, 0.65) !important;
}



/* =========================================================
   XCHAT_GIFTS_BOTTOM_STATUS_EXACT_FIX_V2
   Real shop footer owner = .xgift-bottom
   ========================================================= */

.xgift-bottom {
  min-height:
    30px !important;

  padding:
    6px 12px !important;

  display:
    flex !important;

  align-items:
    center !important;

  justify-content:
    flex-start !important;

  box-sizing:
    border-box !important;

  background:
    linear-gradient(
      180deg,
      #10183b 0%,
      #090f29 100%
    ) !important;

  border-top:
    1px solid rgba(112, 137, 230, .28) !important;

  color:
    #dfe6ff !important;
}


/* Status text */

.xgift-bottom .xgift-status {
  width:
    100% !important;

  margin:
    0 !important;

  padding:
    0 !important;

  background:
    transparent !important;

  border:
    0 !important;

  color:
    #d9e1ff !important;

  font-size:
    12px !important;

  line-height:
    18px !important;

  font-weight:
    600 !important;

  text-shadow:
    none !important;
}


/* Success */

.xgift-bottom .xgift-status[data-kind="ok"] {
  color:
    #80e89a !important;
}


/* Error */

.xgift-bottom .xgift-status[data-kind="error"] {
  color:
    #ff8fa8 !important;
}


/*
 * When status is empty there is no reason to keep
 * a visible footer strip at all.
 */
.xgift-bottom:has(.xgift-status:empty) {
  display:
    none !important;
}


/* XCHAT_GIFT_ART_NATIVE_V2_3 */
#xchatInfoPopup .xip-gift-card {
  width: 118px;

  grid-template-columns:
    42px minmax(0, 1fr);
}

#xchatInfoPopup .xip-gift-picture {
  width: 42px;
  height: 42px;

  overflow: visible;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, .11),
      rgba(255, 255, 255, .025) 57%,
      transparent 74%
    );
}

#xchatInfoPopup .xip-gift-card.is-favorite .xip-gift-picture {
  background:
    radial-gradient(
      circle,
      rgba(244, 199, 82, .20),
      rgba(244, 199, 82, .055) 55%,
      transparent 76%
    );
}

#xchatInfoPopup .xip-gift-picture img {
  width: auto;
  height: auto;

  max-width: 42px;
  max-height: 42px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 5px 8px
      rgba(0, 0, 0, .34)
    );

  opacity: 1;
}

#xchatInfoPopup .xip-gift-card.is-favorite {
  box-shadow:
    inset 0 1px
    rgba(255, 255, 255, .04),
    0 8px 24px
    rgba(0, 0, 0, .27),
    0 0 20px
    rgba(235, 186, 59, .18);
}
