.gift-picker {
  width: 100%;
}

.gift-picker {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  font-family: Onest, sans-serif;
  color: #fff;
}

.gift-picker-block {
  display: grid;
  gap: 10px;
}

.gift-picker-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.gift-picker-title span {
  color: rgba(255, 92, 103, 1);
}

.gift-region-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}

.gift-region-box {
  position: relative;
}

.gift-region-box .gift-region-tiles {
  overflow: hidden;
  padding-top: 3px;
  margin-top: -3px;
  transition: max-height .35s ease;
}

.gift-region-box.is-collapsible:not(.is-open) .gift-region-tiles {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 64px), transparent);
}

.gift-region-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px auto 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(26, 27, 29, 1);
  color: rgba(255, 141, 40, 1);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gift-region-toggle:hover {
  border-color: rgba(255, 141, 40, .5);
}

.gift-region-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.gift-region-box.is-open .gift-region-toggle::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.gift-region-toggle[hidden] {
  display: none;
}

.gift-region-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(26, 27, 29, 1);
  color: #fff;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}

.gift-region-tile:hover {
  border-color: rgba(255, 141, 40, .5);
  color: #fff;
  transform: translateY(-1px);
}

.gift-region-tile.is-active {
  border-color: rgba(255, 141, 40, 1);
  background: linear-gradient(180deg, rgba(255, 141, 40, .14), rgba(255, 141, 40, .04)), rgba(26, 27, 29, 1);
  box-shadow: 0 0 0 1px rgba(255, 141, 40, 1) inset;
}

.gift-region-tile.is-out {
  opacity: .5;
}

.gift-region-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gift-region-flag {
  width: 22px;
  height: 16px;
  flex: none;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.gift-region-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gift-region-price {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 141, 40, 1);
}

.gift-region-tile.is-out .gift-region-price {
  color: rgba(139, 139, 150, 1);
  font-size: 13px;
  font-weight: 500;
}

.gift-editions {
  display: grid;
  gap: 8px;
}

.gift-edition {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(26, 27, 29, 1);
  color: #fff;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.gift-edition:hover {
  border-color: rgba(255, 141, 40, .5);
  color: #fff;
}

.gift-edition.is-active {
  border-color: rgba(255, 141, 40, 1);
  background: linear-gradient(90deg, rgba(255, 141, 40, .12), rgba(255, 141, 40, .02)), rgba(26, 27, 29, 1);
  box-shadow: 0 0 0 1px rgba(255, 141, 40, 1) inset;
}

.gift-edition.is-out {
  opacity: .5;
}

.gift-edition-cover {
  position: relative;
  flex: none;
  width: 120px;
  aspect-ratio: 460 / 215;
  border-radius: 8px;
  overflow: hidden;
  background: #101017;
}

.gift-edition-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gift-edition-discount {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(46, 204, 113, 1);
  color: #0c2a17;
  font-size: 12px;
  font-weight: 700;
}

.gift-edition-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gift-edition-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.gift-edition-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.gift-edition-price {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 141, 40, 1);
}

.gift-edition-old {
  color: rgba(139, 139, 150, 1);
  font-size: 13px;
}

.gift-edition-until {
  color: rgba(46, 204, 113, 1);
  font-size: 12px;
}

.gift-dlc-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(255, 141, 40, .35);
  border-radius: 12px;
  background: rgba(255, 141, 40, .08);
  font-size: 14px;
  line-height: 1.45;
}

.gift-dlc-note a {
  color: rgba(255, 141, 40, 1);
  text-decoration: underline;
}

.gift-dlc-note img {
  width: 20px;
  height: 20px;
  flex: none;
}

.gift-invite-status {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.gift-invite-status:empty {
  display: none;
}

.is-gift-invite-ok .gift-invite-status {
  color: rgba(46, 204, 113, 1);
}

.is-gift-invite-bad .gift-invite-status {
  color: rgba(255, 107, 91, 1);
}

.is-gift-invite-ok .input-field-product {
  border-color: rgba(46, 204, 113, .6);
}

.is-gift-invite-bad .input-field-product {
  border-color: rgba(255, 107, 91, .6);
}

.gift-invite-help {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(165, 165, 176, 1);
}

.gift-invite-help summary {
  width: fit-content;
  color: rgba(255, 141, 40, 1);
  cursor: pointer;
  list-style: none;
}

.gift-invite-help summary::-webkit-details-marker {
  display: none;
}

.gift-invite-help summary::after {
  content: " ›";
}

.gift-invite-help[open] summary::after {
  content: " ˅";
}

.gift-invite-help ol {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.45;
}

.product-info-header-data.gift-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 15px;
  row-gap: 22px;
}

.gift-layout-editions,
.gift-layout-regions {
  min-width: 0;
  font-family: Onest, sans-serif;
  color: #fff;
}

.gift-layout-editions,
.gift-layout-regions {
  grid-column: 1 / -1;
}

.gift-layout-regions {
  order: 1;
}

.gift-layout-editions {
  order: 2;
}

.gift-layout-regions .gift-region-tiles {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.gift-layout-editions .gift-editions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-layout-regions .gift-picker {
  margin-top: 0;
}

.gift-layout-editions .gift-edition {
  gap: 10px;
  padding: 8px;
}

.gift-layout-editions .gift-edition-cover {
  width: 84px;
}

.gift-layout-editions .gift-edition-name {
  font-size: 13px;
}

.gift-layout-editions .gift-edition-price {
  font-size: 15px;
}

@media (max-width: 1100px) {
  .gift-layout-regions .gift-region-tile {
    padding: 10px;
  }

  .gift-layout-regions .gift-region-name {
    font-size: 13px;
  }

  .gift-layout-regions .gift-region-price {
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  .product-info-header-data.gift-layout {
    display: flex;
  }
}

.gift-region-current {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 141, 40, 1);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 141, 40, .14), rgba(255, 141, 40, .04)), rgba(26, 27, 29, 1);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gift-region-current-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gift-region-current-price {
  color: rgba(255, 141, 40, 1);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.gift-region-current-change {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  color: rgba(165, 165, 176, 1);
  font-size: 13px;
}

.gift-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: Onest, sans-serif;
}

.gift-sheet[hidden] {
  display: none;
}

.gift-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.gift-sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  padding: 16px 16px 0;
  border-radius: 18px 18px 0 0;
  background: rgba(22, 23, 26, 1);
  color: #fff;
  animation: gift-sheet-in .22s ease-out;
}

.gift-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.gift-sheet-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gift-sheet-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(16, 16, 23, 1);
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.gift-sheet-list {
  display: grid;
  gap: 4px;
  margin: 0 -16px;
  padding: 0 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gift-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.gift-sheet-item[hidden] {
  display: none;
}

.gift-sheet-item:hover,
.gift-sheet-item.is-active {
  background: rgba(255, 141, 40, .12);
  color: #fff;
}

.gift-sheet-item.is-out {
  opacity: .5;
}

.gift-sheet-item-name {
  flex: 1 1 auto;
  font-size: 15px;
}

.gift-sheet-item-price {
  color: rgba(255, 141, 40, 1);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.gift-sheet-empty {
  margin: 12px 0;
  color: rgba(139, 139, 150, 1);
  text-align: center;
}

.gift-sheet-lock,
.gift-sheet-lock body {
  overflow: hidden;
}

@keyframes gift-sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .gift-region-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-edition-cover {
    width: 96px;
  }
}
