[data-backend-product] [hidden],
[data-backend-checkout-modal][hidden],
[data-product-lightbox][hidden] {
  display: none !important;
}

[data-backend-product] .product-runtime-cover {
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

[data-backend-product] .product-runtime-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-backend-product] .stars svg.off,
[data-backend-product] .t515-st svg.off {
  color: #c8cfdc;
}

[data-backend-product] .g-meta button[data-product-tab-link="reviews"] {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: #268bf3;
  cursor: pointer;
}

[data-backend-product] .g-ptabs button[data-product-tab] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-bottom: -1px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
}

[data-backend-product] .g-ptabs button[data-product-tab].is-on {
  color: var(--tx);
  border-bottom-color: var(--blue);
}

[data-backend-product] .g-ptabs button[data-product-tab] small {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px;
  background: #eef1f6;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  color: var(--mut);
}

[data-backend-product] .g-ptabs button[data-product-tab].is-on small {
  background: #e9f3fe;
  color: #268bf3;
}

html[data-theme="dark"] [data-backend-product] .g-ptabs button[data-product-tab] small {
  background: var(--in, #262d3a);
}

html[data-theme="dark"] [data-backend-product] .g-ptabs button[data-product-tab].is-on small {
  background: #1b2a3d;
  color: var(--blue, #268bf3);
}

@media (max-width: 767px) {
  [data-backend-product] .g-ptabs button[data-product-tab] {
    flex: none;
    white-space: nowrap;
  }
}

[data-backend-product] .g-ed {
  overflow: hidden;
}

[data-backend-product] .product-variant-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-height: 40px;
  overflow: hidden;
  line-height: 20px;
  text-align: center;
}

[data-backend-product] .g-ed small {
  flex: 0 0 auto;
  white-space: nowrap;
}

[data-backend-product] .product-runtime-panel[hidden] {
  display: none !important;
}

[data-backend-product] .product-runtime-description:not(.is-collapsed) {
  max-height: none;
  overflow: visible;
}

[data-backend-product] .product-runtime-description :is(h1, h2, h3, h4, h5, h6) {
  margin: 24px 0 12px;
  line-height: 1.25;
}

[data-backend-product] .product-runtime-description > :first-child {
  margin-top: 0;
}

[data-backend-product] .product-runtime-description :is(img, video) {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

[data-backend-product] .product-runtime-description.is-collapsed {
  position: relative;
  max-height: 150px;
  overflow: hidden;
}

[data-backend-product] .product-runtime-description.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 80%);
}

[data-backend-product] .product-runtime-restriction {
  margin-top: 18px;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff4e8;
  color: #9a5517;
}

[data-backend-product] .product-runtime-restriction p {
  margin: 6px 0 0;
}

[data-backend-product] .product-runtime-message,
[data-backend-product] [data-promo-message] {
  margin: 8px 0 0;
  color: #e5484d;
  font-size: 13px;
  font-weight: 600;
}

[data-backend-product] .product-runtime-message.is-success,
[data-backend-product] [data-promo-message].is-success {
  color: #2f9e44;
}

[data-backend-product] .product-runtime-empty,
[data-backend-product] .product-runtime-empty-list {
  color: #929cae;
  text-align: center;
}

[data-backend-product] .product-runtime-empty {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 56px 24px;
}

[data-backend-product] .product-runtime-empty h1 {
  margin: 0;
}

[data-backend-product] .product-runtime-promo .g-promo {
  width: 100%;
}

[data-backend-product] .product-runtime-promo .g-promo.is-open > svg,
[data-backend-product] .product-runtime-promo [data-promo-toggle][aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

[data-backend-product] .product-runtime-promo form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

[data-backend-product] .product-runtime-promo .t572-pin {
  position: relative;
  display: flex;
  min-width: 0;
}

[data-backend-product] .product-runtime-promo .t572-pin > .t572-gift {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  pointer-events: none;
}

[data-backend-product] .product-runtime-promo input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #e3e7ed;
  border-radius: 10px;
  padding: 0 12px 0 42px;
  background: #f6f8fb;
  color: #2c3242;
  font: inherit;
  font-weight: 600;
  outline: none;
}

html[data-theme="dark"] [data-backend-product] .product-runtime-promo input {
  border-color: var(--line, #2c3442);
  background: var(--in, #262d3a);
  color: var(--tx, #f4f7fb);
}

html[data-theme="dark"] [data-backend-product] .product-runtime-promo input::placeholder {
  color: var(--mut, #8f9cb0);
}

[data-backend-product] .product-runtime-promo form .g-btn {
  min-width: 112px;
  height: 44px;
  border: 0;
}

[data-backend-product] .product-runtime-promo p {
  grid-column: 1 / -1;
}

[data-backend-product] .t515-pick button.on {
  color: #268bf3;
}

.product-runtime-lightbox {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 32px;
}

.product-runtime-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 18, 30, 0.82);
}

.product-runtime-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  width: min(1060px, calc(100vw - 64px));
}

.product-runtime-lightbox__viewport {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.product-runtime-lightbox__viewport > img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 64px);
  border-radius: 16px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  transition: transform 180ms ease;
}

.product-runtime-lightbox__viewport.is-interacting > img {
  transition: none;
}

.product-runtime-lightbox__close,
.product-runtime-lightbox__nav {
  border: 0;
  color: #fff;
  background: rgba(20, 27, 39, 0.8);
  cursor: pointer;
}

.product-runtime-lightbox__close {
  position: absolute;
  top: 12px;
  right: 60px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
}

.product-runtime-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 58px;
  padding: 0;
  border-radius: 12px;
  transform: translateY(-50%);
}

.product-runtime-lightbox__nav > svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-runtime-lightbox__nav.prev {
  left: 60px;
}

.product-runtime-lightbox__nav.next {
  right: 60px;
}

body.checkout-modal-open,
body.product-lightbox-open {
  overflow: hidden;
}

.checkout-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(31, 41, 55, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.checkout-modal-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.checkout-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(485px, 100%);
  margin: auto;
  border-radius: 26px;
  padding: 35px 20px 30px;
  background: #fff;
  color: #2c3242;
  box-shadow: 0 30px 70px rgba(20, 29, 44, 0.28);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s ease;
}

.checkout-modal-layer.is-open .checkout-modal-dialog {
  transform: none;
}

.checkout-close {
  position: absolute;
  top: 30px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: #f1f3f5;
  cursor: pointer;
}

.checkout-modal-dialog h2 {
  margin: 0;
  color: #2c3242;
  font-size: 24px;
}

.checkout-product {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-top: 36px;
  border-radius: 12px;
  padding: 12px;
  background: #f8f9fb;
}

.checkout-product > img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-product > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.checkout-product > div:nth-child(2) strong,
.checkout-product > div:nth-child(2) span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-product > div:nth-child(2) strong {
  font-size: 15px;
}

.checkout-product > div:nth-child(2) span {
  color: #929cae;
  font-size: 13px;
  font-weight: 600;
}

.checkout-product-price {
  white-space: nowrap;
  font-size: 18px;
}

.checkout-product-badge {
  position: absolute;
  top: -16px;
  right: 12px;
  height: 24px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 8px;
  background: #5bbf55;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.checkout-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.checkout-field > span,
.checkout-label {
  color: #929cae;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-field input {
  width: 100%;
  height: 54px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 18px;
  background: #f1f3f5;
  color: #2c3242;
  font: inherit;
  font-weight: 600;
  outline: none;
}

.checkout-field.is-invalid input {
  border-color: #ff5454;
  background: #fff4f4;
}

.checkout-field small {
  color: #ff4545;
  font-size: 12px;
  font-weight: 700;
}

.checkout-dynamic-fields:not([hidden]) {
  display: grid;
  gap: 0;
}

html[data-device="desktop"] .ppm .checkout-dynamic-fields:not([hidden]) {
  display: grid;
  gap: 0;
}

html[data-device="desktop"] .ppm .checkout-field.is-invalid input {
  border-color: #ff5454;
  background: #fff4f4;
}

html[data-device="desktop"][data-theme="dark"] .ppm .checkout-field.is-invalid input {
  border-color: #ff5454;
  background: #38262d;
}

.checkout-bonuses {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  border-radius: 13px;
  padding: 14px;
  background: #f8f9fb;
}

.checkout-bonuses__head,
.checkout-bonuses__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-bonuses__head span,
.checkout-bonuses small {
  color: #929cae;
  font-size: 12px;
  font-weight: 800;
}

.checkout-bonuses__head strong {
  color: #ff8d28;
}

.checkout-bonuses__control input,
.checkout-bonuses__control button {
  height: 46px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
}

.checkout-bonuses__control input {
  min-width: 0;
  width: 100%;
  background: #fff;
}

.checkout-bonuses__control button {
  flex: 0 0 auto;
  background: rgba(38, 139, 243, 0.12);
  color: #268bf3;
  cursor: pointer;
}

.checkout-bonuses__control :disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-payments {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.checkout-payment-list {
  display: grid;
  gap: 10px;
}

.checkout-payment-option {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  background: #f4f5f7;
  cursor: pointer;
}

.checkout-payment-option.is-selected {
  border-color: #5bbf55;
}

.checkout-payment-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-payment-option .modal__payment-left,
.checkout-payment-option .modal__payment-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-payment-option .modal__payment-logo img {
  width: 36px;
  max-height: 36px;
}

.checkout-payment-option .modal__payment-info {
  display: grid;
  gap: 4px;
  text-align: left;
}

.checkout-payment-option .modal__payment-name {
  font-weight: 800;
}

.checkout-payment-option .modal__payment-commission {
  color: #929cae;
  font-size: 12px;
}

.checkout-payment-option .modal__payment-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dce2e9;
}

.checkout-payment-option.is-selected .modal__payment-check {
  background: #5bbf55;
}

.checkout-payment-option .modal__payment-check img {
  width: 12px;
  height: 12px;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: #929cae;
  font-weight: 700;
}

.checkout-total strong {
  color: #2c3242;
  font-size: 22px;
}

.checkout-submit {
  width: 100%;
  height: 56px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: #268bf3;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.checkout-consent {
  margin: 10px 0 0;
  color: #a0a6ad;
  font-size: 12px;
  text-align: center;
}

html[data-theme="dark"] [data-backend-product] .product-runtime-description.is-collapsed::after {
  background: linear-gradient(180deg, rgba(30, 36, 47, 0), #1e242f 80%);
}

html[data-theme="dark"] .checkout-modal-dialog {
  background: #1e242f;
  color: #f4f7fb;
}

html[data-theme="dark"] .checkout-modal-dialog h2,
html[data-theme="dark"] .checkout-total strong {
  color: #f4f7fb;
}

html[data-theme="dark"] .checkout-product,
html[data-theme="dark"] .checkout-field input,
html[data-theme="dark"] .checkout-bonuses,
html[data-theme="dark"] .checkout-payment-option {
  background: #242c38;
  color: #f4f7fb;
}

html[data-theme="dark"] .checkout-bonuses__control input {
  background: #1e242f;
  color: #f4f7fb;
  color-scheme: dark;
}

[data-backend-product] .g-buybox [data-product-delivery-icon][hidden] {
  display: none !important;
}

html:not([data-theme="dark"]) [data-backend-product] .product-delivery-gift-icon--dark,
html[data-theme="dark"] [data-backend-product] .product-delivery-gift-icon--light {
  display: none;
}

@media (min-width: 768px) {
  html:not([data-device="mobile"]) body .page:has(> [data-backend-product]) {
    padding-bottom: 76px;
  }

  html:not([data-device="mobile"]) [data-backend-product] .g-buybox {
    position: sticky;
    top: 90px;
    align-self: start;
  }

  [data-backend-product] .g-buybox .g-chip > svg {
    width: 28px;
    flex: 0 0 28px;
  }

  [data-backend-product] .g-buybox .g-chip.gr > svg {
    height: 24px;
  }

  [data-backend-product] .g-buybox .g-chip > svg.product-delivery-gift-icon {
    height: 24px;
  }
}

@media (max-width: 767px) {
  html[data-device="mobile"] body .page:has(> [data-backend-product]) {
    padding-bottom: 134px !important;
  }

  html[data-device="mobile"] [data-backend-product] .g-bar {
    bottom: 66px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
  }

  html[data-device="mobile"] [data-backend-product] .g-bar.on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-ed {
    background: var(--in, #262d3a);
    color: var(--tx2, #c8d0dc);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-ed small {
    color: var(--mut, #8f9cb0);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-ed.is-on {
    background: #1f344e;
    box-shadow: inset 0 0 0 1px var(--blue, #268bf3);
    color: var(--tx, #f4f7fb);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-ed.is-on small {
    color: var(--link, #6fb2ff);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-ptabs button[data-product-tab] small {
    background: var(--in, #262d3a);
    color: var(--mut, #8f9cb0);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-ptabs button[data-product-tab].is-on small {
    background: #1b2a3d;
    color: var(--blue, #268bf3);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-more button {
    background: #20344d;
    color: var(--link, #6fb2ff);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-buybox .g-chip {
    background: var(--in, #262d3a);
    color: var(--tx, #f4f7fb);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-buybox .g-chip.gr {
    background: #1f2a1d;
    color: var(--price, #7fcf4e);
  }

  html[data-theme="dark"][data-device="mobile"] [data-backend-product] .g-bar {
    border-top: 1px solid var(--line, #2c3442);
    background: var(--card, #1e242f);
    box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.22);
  }

  [data-backend-product] .product-runtime-promo form {
    grid-template-columns: 1fr;
  }

  [data-backend-product] .product-runtime-promo p {
    grid-column: auto;
  }

  .product-runtime-lightbox {
    padding: 12px;
  }

  .product-runtime-lightbox__dialog {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    width: calc(100vw - 24px);
  }

  .product-runtime-lightbox__viewport,
  .product-runtime-lightbox__viewport > img {
    touch-action: none;
  }

  .product-runtime-lightbox__viewport {
    overscroll-behavior: contain;
  }

  .product-runtime-lightbox__close {
    top: 8px;
    right: 42px;
  }

  .product-runtime-lightbox__nav {
    width: 32px;
    height: 48px;
  }

  .product-runtime-lightbox__nav.prev {
    left: 44px;
  }

  .product-runtime-lightbox__nav.next {
    right: 44px;
  }

  .checkout-modal-layer {
    align-items: end;
    padding: 12px;
  }

  .checkout-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 20px;
    padding: 28px 16px 20px;
  }

  .checkout-close {
    top: 18px;
    right: 16px;
  }

  .checkout-modal-dialog h2 {
    margin-right: 48px;
    font-size: 20px;
  }

  .checkout-product {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .checkout-product > img {
    width: 42px;
    height: 42px;
  }

  .checkout-bonuses__control {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-bonuses__control button {
    width: 100%;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  html[data-device="mobile"] [data-backend-product] .g-bar {
    transform: translate(-50%, 100%);
  }

  html[data-device="mobile"] [data-backend-product] .g-bar.on {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 380px) {
  .product-runtime-lightbox__close {
    display: none;
  }
}
