.avCopyText, .fr-element .avCopyTextEditor { box-sizing: border-box; display: inline-flex; vertical-align: baseline; align-items: baseline; gap: 6px; max-width: 100%; min-height: 24px; padding: 1px 6px; margin: 0; border: 1px solid #e4c9b0; border-radius: 5px; background: #fff8ed; color: #985321; font: inherit; font-size: .875em; line-height: 1.4; text-align: left; cursor: pointer; text-decoration: none; }
/* Copy Text 1.0.1: public value stays literal; editor spaces are visible markers. */
.avCopyText-value { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.avCopyText > .avCopyText-value { -webkit-user-select: text; user-select: text; }
.avCopyText:before, .fr-element .avCopyTextEditor:before, .avCopyText-buttonIcon { content: ''; box-sizing: border-box; display: inline-block; flex: 0 0 12px; position: relative; width: 12px; height: 14px; margin: 5px 0 1px 3px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: -3px -3px 0 -1px #fff8ed, -3px -3px 0 0 currentColor; }
.avCopyText:hover, .fr-element .avCopyTextEditor:hover { background: #fff0db; border-color: #cc995c; }
.avCopyText:focus-visible, .fr-element .avCopyTextEditor:focus-visible, .avCopyText-dialog button:focus-visible, .avCopyText-dialog textarea:focus-visible { outline: 2px solid #d98946; outline-offset: 2px; }
.avCopyText.is-copied { color: #377149; border-color: #b4d0b8; background: #f0f7ee; }
.avCopyText-toast { position: fixed; z-index: 10000; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 11px 16px; color: #fff; background: #3c6949; border-radius: 8px; box-shadow: 0 4px 18px #20160b20; font-size: 14px; line-height: 1.4; pointer-events: none; }
.avCopyText-toast.is-error { background: #84533a; }
.avCopyText-toast[hidden], .avCopyText-dialog [hidden] { display: none !important; }
.avCopyText-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e7d5c6; background: #fffaf5; }
.avCopyText-mark.button { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.avCopyText-buttonIcon { margin-top: 2px; margin-bottom: 0; }
.avCopyText-dialog { box-sizing: border-box; width: 570px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; margin: auto; padding: 20px; border: 1px solid #e0c9b6; border-radius: 12px; color: #49382c; background: #fffcf8; box-shadow: 0 18px 60px #0003; font-family: inherit; font-size: 14px; line-height: 1.5; }
.avCopyText-dialog::backdrop { background: #23180f70; }
.avCopyText-dialogHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avCopyText-dialogHeader h2 { margin: 0; font-size: 21px; font-weight: 600; color: #583c29; }
.avCopyText-close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #856c5c; cursor: pointer; font-size: 28px; flex: 0 0 44px; }
.avCopyText-dialog p { margin: 6px 0 16px; color: #826855; }
.avCopyText-dialog textarea.input { box-sizing: border-box; display: block; width: 100%; min-height: 100px; max-height: 50vh; resize: vertical; padding: 10px 12px; border: 1px solid #d5bda9; border-radius: 6px; background: #fff; color: #49382c; font: inherit; line-height: 1.5; }
.avCopyText-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.avCopyText-actions .button { min-height: 44px; padding: 9px 16px; font: inherit; cursor: pointer; border: 1px solid #dec2ad; border-radius: 6px; background: #fff; color: #865330; }
.avCopyText-actions .button--primary { border-color: #ba6630; background: #bf6a32; color: #fff; }
.avCopyText-dialog p.avCopyText-error { color: #a6392e; margin-top: 8px; }
@media (max-width: 480px) {
    .avCopyText { min-height: 40px; padding: 8px; }
    .avCopyText-mark.button { min-height: 40px; }
    .avCopyText-dialog { padding: 16px; }
    .avCopyText-actions .button { flex: 1 1 auto; }
}
/* Text supplies the inline baseline; the decorative icon does not. */
.avCopyText:before, .fr-element .avCopyTextEditor:before { align-self: center; flex-basis: 10px; width: 10px; height: 12px; margin: 1px 0 1px 3px; }

