.pb-center-column #product_reference .rm-product-reference-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  margin-left: 5px;
  padding: 0;
  border: 1px solid #cfd8e1;
  border-radius: 5px;
  background: #fff;
  color: #60717f;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}

.pb-center-column #product_reference .rm-product-reference-copy:hover,
.pb-center-column #product_reference .rm-product-reference-copy:focus {
  border-color: #1688e8;
  color: #1688e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 136, 232, 0.1);
}

.pb-center-column #product_reference .rm-product-reference-copy.is-copied {
  border-color: #72b985;
  background: #f0fbf2;
  color: #168f3a;
}

.rm-product-reference-copy__status {
  display: inline-block;
  margin-left: 6px;
  color: #168f3a;
  font-size: 11px;
  line-height: 1.2;
  vertical-align: middle;
}

.rm-staff-product-panel .rm-staff-product-panel__menu {
  position: static;
}

.rm-staff-product-panel .rm-product-copy-popover {
  left: 10px;
  top: calc(100% + 8px);
  box-sizing: border-box;
  width: 350px;
  max-width: calc(100vw - 36px);
  max-height: 70vh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #cedae4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(28, 43, 58, 0.22);
}

.rm-product-copy-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #e6edf2;
  background: #f8fbfd;
  color: #263746;
  font-size: 13px;
  font-weight: 700;
}

.rm-product-copy-popover__header > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rm-product-copy-popover__header > span i {
  color: #1688e8;
  font-size: 15px;
}

.rm-staff-product-panel .rm-product-copy-popover__header .rm-product-copy-popover__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7d8993;
  font-size: 13px;
  text-align: center;
}

.rm-staff-product-panel .rm-product-copy-popover__header .rm-product-copy-popover__close:hover,
.rm-staff-product-panel .rm-product-copy-popover__header .rm-product-copy-popover__close:focus {
  background: #e8f2fa;
  color: #167ac6;
  outline: none;
}

.rm-product-copy-popover__hint {
  padding: 10px 12px 0;
  color: #6f7b85;
  font-size: 11px;
  line-height: 1.35;
}

.rm-product-copy-popover__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px 12px;
}

.rm-staff-product-panel .rm-product-copy-popover__choices button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  background: #fff;
  color: #3d4d5a;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
}

.rm-staff-product-panel .rm-product-copy-popover__choices button i {
  flex: 0 0 14px;
  color: #1688e8;
  text-align: center;
}

.rm-staff-product-panel .rm-product-copy-popover__choices button:hover,
.rm-staff-product-panel .rm-product-copy-popover__choices button:focus,
.rm-staff-product-panel .rm-product-copy-popover__choices button.is-active {
  border-color: #1688e8;
  background: #eef6fd;
  color: #166fae;
  outline: none;
}

.rm-product-copy-popover__result {
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid #dbe5ed;
  border-radius: 7px;
  background: #f8fafc;
}

.rm-product-copy-popover__result-label {
  margin-bottom: 6px;
  color: #526270;
  font-size: 11px;
  font-weight: 700;
}

.rm-product-copy-popover__value {
  box-sizing: border-box;
  max-height: 124px;
  margin-bottom: 9px;
  padding: 9px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d5dfe7;
  border-radius: 5px;
  background: #fff;
  color: #2f3d48;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  user-select: text;
}

.rm-product-copy-popover__value--link {
  color: #156eaf;
  font-family: Consolas, "Courier New", monospace;
}

.rm-staff-product-panel .rm-product-copy-popover__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #1688e8;
  border-radius: 6px;
  background: #1688e8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.rm-staff-product-panel .rm-product-copy-popover__copy:hover,
.rm-staff-product-panel .rm-product-copy-popover__copy:focus {
  border-color: #0d71c2;
  background: #0d71c2;
  color: #fff;
  outline: none;
}

.rm-staff-product-panel .rm-product-copy-popover__copy.is-copied {
  border-color: #249749;
  background: #249749;
}

.rm-staff-product-panel .rm-product-copy-popover__copy[disabled] {
  border-color: #b8c4ce;
  background: #b8c4ce;
  color: #fff;
  cursor: default;
  opacity: 0.75;
}

.rm-product-copy-popover__feedback {
  min-height: 17px;
  padding: 0 12px 10px;
  color: #168f3a;
  font-size: 11px;
  line-height: 1.35;
}

.rm-product-copy-popover__feedback.is-error {
  color: #b44848;
}

@media (max-width: 480px) {
  .rm-staff-product-panel .rm-product-copy-popover {
    left: 6px;
    width: calc(100% - 12px);
    max-width: none;
    max-height: 62vh;
  }

  .rm-product-copy-popover__choices {
    grid-template-columns: 1fr;
  }

  .rm-staff-product-panel .rm-product-copy-popover__choices button,
  .rm-staff-product-panel .rm-product-copy-popover__copy {
    min-height: 44px;
  }

  .rm-product-copy-popover__value {
    max-height: 110px;
  }
}
