:root {
  --vod-msg-overlay-bg: rgba(0, 0, 0, 0.55);
  --vod-msg-box-bg: var(--dz-bgc, #2a2a2e);
  --vod-msg-box-border: var(--dz-borderb, rgba(255, 255, 255, 0.12));
  --vod-msg-text: var(--dz-nvbg, #5ca8ff);
  --vod-msg-link: var(--dz-nvbg, #5ca8ff);
  --vod-msg-link-hover: #8fc4ff;
  --vod-msg-close: rgba(215, 227, 244, 0.55);
  --vod-msg-close-hover: #d7e3f4;
}

.fabuba-vod-msg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: var(--vod-msg-overlay-bg);
}

.fabuba-vod-msg-overlay:not([hidden]) {
  display: flex;
}

.fabuba-vod-msg-box {
  position: relative;
  width: 100%;
  min-width: 280px;
  max-width: 420px;
  max-height: 85vh;
  overflow: auto;
  padding: 28px 28px 24px;
  box-sizing: border-box;
  text-align: center;
  background: var(--vod-msg-box-bg);
  border: 1px solid var(--vod-msg-box-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.fabuba-vod-msg-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--vod-msg-close);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.fabuba-vod-msg-close:hover,
.fabuba-vod-msg-close:focus {
  color: var(--vod-msg-close-hover);
  background: rgba(255, 255, 255, 0.06);
}

.fabuba-vod-msg-text {
  margin: 0;
  padding: 4px 12px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--vod-msg-text);
  word-break: break-word;
  white-space: pre-line;
}

.fabuba-vod-msg-text a,
.fabuba-vod-msg-text a:link,
.fabuba-vod-msg-text a:visited {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--vod-msg-link) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.fabuba-vod-msg-text a:hover,
.fabuba-vod-msg-text a:focus {
  color: var(--vod-msg-link-hover) !important;
  text-decoration: underline !important;
}

.fabuba-vod-msg-actions {
  margin-top: 16px;
  padding: 0 12px 4px;
}

.fabuba-vod-msg-actions[hidden] {
  display: none !important;
}

.vod-msg-modal__copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(92, 168, 255, 0.45);
  border-radius: 8px;
  background: rgba(92, 168, 255, 0.12);
  color: var(--vod-msg-link);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vod-msg-modal__copy-btn:hover,
.vod-msg-modal__copy-btn:focus {
  background: rgba(92, 168, 255, 0.22);
  border-color: rgba(92, 168, 255, 0.7);
  color: var(--vod-msg-link-hover);
}

.vod-msg-modal__copy-btn:disabled {
  cursor: default;
  opacity: 0.95;
}
