.ru-desktop-constructor-guide {
  display: none;
}

@media (min-width: 769px) {
  .ru-desktop-guide-source {
    display: none !important;
  }

  .ru-desktop-constructor-guide {
    display: block;
    max-width: min(660px, 46vw);
    margin: 0;
    color: #102a27;
    text-align: left;
  }

  .ru-desktop-constructor-guide h3 {
    margin: 0 0 5px;
    font-size: clamp(1.05rem, 1.18vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
  }

  .ru-desktop-constructor-guide p {
    margin: 0 0 4px;
    font-size: clamp(0.78rem, 0.82vw, 0.94rem);
    line-height: 1.25;
  }

  .ru-desktop-constructor-guide ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: clamp(0.72rem, 0.76vw, 0.88rem);
    line-height: 1.25;
  }

  .ru-desktop-constructor-guide li {
    position: relative;
    padding-left: 14px;
  }

  .ru-desktop-constructor-guide li::before {
    content: '';
    position: absolute;
    top: 0.52em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #07685e;
  }

  .main-configurator .swiper-slide:has(img.stone-icon) .swiper-label-text {
    gap: 5px;
    white-space: normal;
  }

  .main-configurator .swiper-slide:has(img.stone-icon) .swiper-label-text-link {
    max-width: calc(100% - 21px);
    overflow: visible;
    color: #173c36;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .main-configurator .natural-stone-disclaimer--summary {
    min-height: 0;
    margin-top: 12px;
    padding: 8px 18px;
  }
}

.bracelet-canvas-wrapper .bracelet-select-all-toggle,
.bracelet-canvas-wrapper .bracelet-training-toggle,
.bracelet-canvas-wrapper .bracelet-watch-toggle {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 5px 3px !important;
  text-align: center !important;
}

.bracelet-canvas-wrapper .bracelet-select-all-toggle > .bracelet-select-all-toggle__label,
.bracelet-canvas-wrapper .bracelet-training-toggle > span:not(.MuiTouchRipple-root),
.bracelet-canvas-wrapper .bracelet-watch-toggle > span:not(.MuiTouchRipple-root) {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: normal;
}

.ru-checkout-field-error .MuiOutlinedInput-notchedOutline,
.ru-checkout-field-error fieldset {
  border-color: #c62828 !important;
  border-width: 2px !important;
}

.ru-checkout-field-error label,
.ru-checkout-field-error .MuiInputLabel-root {
  color: #a51f18 !important;
}

.ru-checkout-field-message,
.ru-checkout-delivery-message {
  margin: 7px 4px 0;
  color: #a51f18;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.ru-checkout-delivery-error {
  border-color: #d64f45 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12) !important;
}

.ru-checkout-delivery-message {
  display: inline-flex;
  border: 1px solid #efb4af;
  border-radius: 10px;
  padding: 8px 11px;
  background: #fff3f2;
}

.ru-checkout-validation-summary {
  position: fixed;
  z-index: 200100;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  width: min(460px, calc(100vw - 32px));
  gap: 2px;
  border: 1px solid #efaaa3;
  border-radius: 16px;
  padding: 13px 16px;
  color: #742018;
  background: rgba(255, 247, 246, 0.98);
  box-shadow: 0 14px 36px rgba(18, 50, 45, 0.18);
  font: inherit;
  transform: translateX(-50%);
}

.ru-checkout-validation-summary strong,
.ru-checkout-validation-summary span {
  line-height: 1.3;
}

.Toastify__toast-container,
.Toastify__toast-container--top-right,
.Toastify__toast-container--top-center {
  position: fixed !important;
  z-index: 200000 !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  right: auto !important;
  left: 50% !important;
  width: min(460px, calc(100vw - 32px)) !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

.Toastify__toast {
  min-height: 58px !important;
  margin: 0 0 10px !important;
  border: 1px solid #b9d9cf !important;
  border-radius: 16px !important;
  padding: 13px 46px 13px 15px !important;
  color: #12322d !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 14px 36px rgba(18, 50, 45, 0.18) !important;
  font-family: inherit !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  pointer-events: auto !important;
  backdrop-filter: blur(12px);
}

.Toastify__toast--success { border-color: #8dc7b5 !important; background: #f5fcf8 !important; }
.Toastify__toast--error { border-color: #efaaa3 !important; background: #fff7f6 !important; }
.Toastify__toast--warning { border-color: #e8cd83 !important; background: #fffaf0 !important; }
.Toastify__toast--info { border-color: #a8cce8 !important; background: #f6faff !important; }
.Toastify__toast-icon { width: 22px !important; color: #087466 !important; }
.Toastify__close-button { position: absolute !important; top: 50% !important; right: 14px !important; color: #50635f !important; transform: translateY(-50%) !important; opacity: 0.8 !important; }
.Toastify__progress-bar { height: 4px !important; border-radius: 0 0 16px 16px !important; }
.Toastify__progress-bar--success { background: #087466 !important; }

body.ru-storefront-parity-v35-open {
  overflow: hidden;
}

.ru-storefront-parity-v35-engraving-info {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  place-items: center;
  border: 1.5px solid #0a6a5e;
  border-radius: 50%;
  padding: 0;
  color: #0a6a5e;
  background: #fff;
  font: 800 17px/1 Georgia, serif;
  vertical-align: middle;
  cursor: pointer;
}

.ru-storefront-parity-v35-engraving-info:hover,
.ru-storefront-parity-v35-engraving-info:focus-visible {
  color: #fff;
  background: #0a6a5e;
  outline: 3px solid rgba(10, 106, 94, 0.18);
  outline-offset: 2px;
}

.ru-storefront-parity-v35-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(12, 28, 25, 0.68);
  backdrop-filter: blur(5px);
}

.ru-storefront-parity-v35-modal__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.ru-storefront-parity-v35-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dce4e1;
  border-radius: 50%;
  padding: 0 0 3px;
  color: #14322e;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 17px rgba(0, 0, 0, 0.12);
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.ru-storefront-parity-v35-modal__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px 24px 0 0;
  object-fit: contain;
  background: #fff;
}

.ru-storefront-parity-v35-modal__copy {
  padding: 20px 24px 24px;
}

.ru-storefront-parity-v35-modal__copy h2 {
  margin: 0;
  color: #0b6258;
  font-size: 24px;
  line-height: 1.15;
}

.ru-storefront-parity-v35-modal__copy p {
  margin: 10px 0 0;
  color: #52625e;
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .Toastify__toast-container,
  .Toastify__toast-container--top-right,
  .Toastify__toast-container--top-center {
    top: max(10px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 20px) !important;
  }
  .Toastify__toast { min-height: 54px !important; border-radius: 14px !important; padding: 11px 42px 11px 13px !important; font-size: 0.9rem !important; }
  .ru-storefront-parity-v35-modal__panel { border-radius: 20px; }
  .ru-storefront-parity-v35-modal__image { border-radius: 20px 20px 0 0; }
  .ru-storefront-parity-v35-modal__copy { padding: 17px 19px 20px; }
  .ru-storefront-parity-v35-modal__copy h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .ru-checkout-field-error,
  .ru-checkout-delivery-error,
  .ru-storefront-parity-v35-modal *,
  .ru-storefront-parity-v35-engraving-info {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* RU: keep the birth-date caption compact beside the bracelet on desktop. */
@media (min-width: 769px) {
  .cart-page .history-card-details > .ru-birth-date,
  .confirm-page .history-card-details > .ru-birth-date {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* RU storefront v48: centered authenticity confirmation toast. */
.verified-toast {
  width: min(420px, calc(100vw - 32px)) !important;
  margin-left: 0 !important;
  border: 1px solid rgba(13, 98, 89, 0.22) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 14px 40px rgba(24, 61, 56, 0.16) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.verified-toast .Toastify__toast-body {
  width: 100%;
  margin: 0 !important;
  padding: 14px 18px !important;
  justify-content: center;
  text-align: center;
}

.verified-toast-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--color-primary, #0d6259);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.verified-toast-content span:first-child {
  font-size: 0.92rem;
  font-weight: 700;
}

.verified-toast-content span:last-child {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
}

/* RU storefront v49: reserve the bracelet stage before canvas/image sizing settles. */
.bracelet-canvas-wrapper {
  min-height: clamp(300px, 42vw, 454px) !important;
}

@media (max-width: 768px) {
  .bracelet-canvas-wrapper {
    min-height: clamp(280px, 72vw, 430px) !important;
  }
}

/* RU storefront v50: match BY first-paint canvas sizing. */
.bracelet-canvas-wrapper canvas {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
  height: auto !important;
  display: block;
}

@media (max-width: 768px) {
  .bracelet-canvas-wrapper canvas {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* RU storefront v51: improve 3D toggle legibility without resizing the button. */
.bracelet-watch-toggle svg {
  font-size: 1.75rem !important;
}

.bracelet-watch-toggle span {
  font-size: 0.86rem !important;
  font-weight: 800;
  line-height: 1 !important;
  letter-spacing: 0.01em;
}

/* RU storefront v52: extra-large 3D icon and label, fixed button size. */
.bracelet-watch-toggle svg {
  font-size: 2.08rem !important;
}

.bracelet-watch-toggle span {
  font-size: 1rem !important;
  font-weight: 850;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

/* RU storefront v53: target the actual Material UI icon node used by 3D. */
.bracelet-watch-toggle.bracelet-watch-toggle--open .arrow {
  width: 44px !important;
  height: 44px !important;
  font-size: 44px !important;
  flex: 0 0 44px;
}

.bracelet-watch-toggle.bracelet-watch-toggle--open > span {
  font-size: 1.16rem !important;
  font-weight: 900 !important;
  line-height: 0.86 !important;
  letter-spacing: -0.02em !important;
}

/* RU storefront v54: balanced 3D toggle scale. */
.bracelet-watch-toggle.bracelet-watch-toggle--open .arrow {
  width: 30px !important;
  height: 30px !important;
  font-size: 30px !important;
  flex: 0 0 30px;
}

.bracelet-watch-toggle.bracelet-watch-toggle--open > span {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

/* RU storefront v55: exact BY constructor control sizing and spacing. */
.bracelet-canvas-wrapper .bracelet-watch-toggle {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 5px 3px !important;
  text-align: center !important;
}

.bracelet-canvas-wrapper .bracelet-watch-toggle .arrow {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  font-size: 1.4375rem !important;
}

.bracelet-canvas-wrapper .bracelet-watch-toggle > span:not(.MuiTouchRipple-root) {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: normal;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}
/* RU v56: align the desktop bracelet image with BY first paint. */
@media (min-width: 769px) {
  .bracelet-canvas-wrapper canvas {
    transform: translateY(-22px) !important;
  }
}
/* RU v57: raise the 3D label toward the BY arrow. */
@media (min-width: 769px) {
  .bracelet-canvas-wrapper .bracelet-watch-toggle > span:not(.MuiTouchRipple-root) {
    transform: translateY(-3px) !important;
  }
}
/* RU v58: exact BY 3D label spacing, no custom transform. */
.bracelet-canvas-wrapper .bracelet-watch-toggle > span:not(.MuiTouchRipple-root) {
  transform: none !important;
  margin-top: -2px !important;
  font-weight: inherit !important;
}
/* RU v59: copy the BY 3D control rules exactly. */
.bracelet-canvas-wrapper .bracelet-watch-toggle {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 5px 3px !important;
  text-align: center !important;
}
.bracelet-canvas-wrapper .bracelet-watch-toggle svg {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  font-size: 1.4375rem !important;
  margin: 0 !important;
}
.bracelet-canvas-wrapper .bracelet-watch-toggle > span:not(.MuiTouchRipple-root) {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  margin: -2px 0 0 !important;
  text-align: center !important;
  white-space: normal !important;
  font-size: .75rem !important;
  font-weight: inherit !important;
  line-height: normal !important;
  letter-spacing: 0 !important;
  transform: none !important;
}
/* RU v60: missing BY rules copied verbatim. */
.bracelet-canvas-wrapper .bracelet-training-toggle svg,
.bracelet-canvas-wrapper .bracelet-watch-toggle svg {
  font-size: 25px !important;
}

.bracelet-canvas-wrapper .bracelet-select-all-toggle *,
.bracelet-canvas-wrapper .bracelet-training-toggle *,
.bracelet-canvas-wrapper .bracelet-watch-toggle * {
  color: #111 !important;
}

.by-3d-enhanced svg,
.by-3d-enhanced img {
  width: 1.52em !important;
  height: 1.52em !important;
  stroke-width: 2.4 !important;
}
/* RU v61: apply the BY enhanced 3D button sizing directly to the RU control. */
.bracelet-canvas-wrapper .bracelet-watch-toggle {
  font-size: 1.35em !important;
  font-weight: 700 !important;
}

.bracelet-canvas-wrapper .bracelet-watch-toggle svg,
.bracelet-canvas-wrapper .bracelet-watch-toggle img {
  width: 1.52em !important;
  height: 1.52em !important;
  stroke-width: 2.4 !important;
}

.bracelet-canvas-wrapper .bracelet-watch-toggle svg {
  font-size: 25px !important;
}

.bracelet-canvas-wrapper .bracelet-watch-toggle * {
  color: #111 !important;
}
/* RU v62: match the BY computed sizes while overriding older, stronger RU rules. */
.bracelet-canvas-wrapper .bracelet-watch-toggle .arrow {
  width: 1.52em !important;
  height: 1.52em !important;
  flex: 0 0 auto !important;
  font-size: 25px !important;
  stroke-width: 2.4 !important;
}

.bracelet-canvas-wrapper .bracelet-watch-toggle > span:not(.MuiTouchRipple-root) {
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
  margin-top: -2px !important;
  transform: none !important;
}
/* The RU demo uses RuTube's playable /play/embed/ URL for a portrait Short.
   Scope the portrait modal to this video; other demo videos keep 16:9. */
.fullscreen-popup--video:has(.youtube-player__iframe[src*="16fe0958e36032c6f0627a13ce0c4e05"]) {
  width: min(420px, calc(100vw - 24px), calc(56.25dvh - 42.75px)) !important;
}

.fullscreen-popup--video .youtube-player:has(> .youtube-player__iframe[src*="16fe0958e36032c6f0627a13ce0c4e05"]) {
  aspect-ratio: 9 / 16;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* The date caption is informational; only the input should look editable. */
button.configurator-panel-item-btn:has(.configurator-date-row),
.configurator-date-row,
.configurator-date-copy,
.configurator-date-copy__label {
  cursor: default !important;
}

button.configurator-panel-item-btn .configurator-date-picker-slot input {
  cursor: text !important;
}
