#textareaContainer {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.textarea-wrapper {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center !important;
    gap: 9px !important;
}

.linked-textarea {
    width: 100%;
    min-height: 44px;
    position: relative;
    left: 0;
    top: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    resize: none;
    white-space: pre-wrap;
    word-break: break-word;
}

.wiadomosc-textarea {
    resize: vertical;
}

.absolute {
    position: absolute;
}

.left-50 {
    left: 50px;
}

.top-50 {
    top: 50px;
}

.textarea-auto {
    height: auto;
    overflow: hidden;
    resize: none;
}

.auto-size {
    width: auto !important;
    height: auto !important;
}

.resizing {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: var(--rsz-width) !important;
    height: var(--rsz-height) !important;
    padding: var(--rsz-padding, 13px) !important;
    overflow: hidden !important;
    resize: none !important;
    font-size: var(--rsz-font-size, 16px) !important;
    line-height: var(--rsz-line-height, 17.6px) !important;
}

.text-box--fit {
    width: fit-content;
    height: fit-content;
}

:root {
    --scale-factor: 1;
}

.text-box {
    position: absolute;
    z-index: 10;
    box-sizing: border-box;
    overflow: visible;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 50px;
    text-align: center;
    white-space: nowrap;
    cursor: move;
}

.text-content {
    display: inline;
    outline: none;
    white-space: inherit;
}

.text-box:hover {
    border-color: #1a1a1a;
    outline: none;
}

.resize-handle {
    width: 20px;
    height: 20px;
    min-width: 0;
    min-height: 0;
    position: absolute;
    right: 0;
    bottom: 0;
    display: none;
    border-radius: 2px;
    background: #808080;
    cursor: se-resize;
}

.resize-handle.visible {
    display: block !important;
}

.delete-button {
    width: 25px !important;
    height: 25px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    position: absolute;
    top: -12px;
    left: -12px;
    z-index: 1000;
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    color: #ffffff;
    background: #f3131b;
    box-shadow: none;
    cursor: pointer;
}

.delete-button:hover {
    background: #cf0c13;
    box-shadow: 0 3px 8px rgba(130, 0, 0, 0.24);
    transform: none;
}

.delete-button.visible {
    display: flex !important;
}

.delete-button-linked {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #c43131;
    box-shadow: none;
    cursor: pointer;
}

.delete-button-linked:hover {
    background: #9f2222;
    box-shadow: 0 4px 10px rgba(130, 0, 0, 0.20);
}

.delete-button-linked::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    transform: translate(-50%, -53%);
}

.font-athena {
    font-family: 'Athena', serif !important;
}

.font-vintage-moon {
    font-family: 'Vintage Moon', cursive !important;
}

.font-coldiac {
    font-family: 'Coldiac', serif !important;
}

.font-dancing-script {
    font-family: 'Dancing Script', cursive !important;
}

.font-great-vibes {
    font-family: 'Great Vibes', cursive !important;
}

.font-inter {
    font-family: 'Inter', sans-serif !important;
}

.font-lobster {
    font-family: 'Lobster', cursive !important;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

.font-open-sans {
    font-family: 'Open Sans', sans-serif !important;
}

.font-oswald {
    font-family: 'Oswald', sans-serif !important;
}

.font-pacifico {
    font-family: 'Pacifico', cursive !important;
}

.font-playfair-display {
    font-family: 'Playfair Display', serif !important;
}

.font-poppins {
    font-family: 'Poppins', sans-serif !important;
}
