.help-text-limited {
    max-width: 100%; /* Set your preferred width */
    word-wrap: break-word;
    white-space: normal; /* Ensures that the text wraps */
    line-height: 1.5;
}

.container-scale-size:not(.breadcrumb-container):has(#center-wrapper) {
    max-width: var(--extra-small-container);
}

.input-field-stack {
    display: flex;
    flex-flow: column;
    gap: var(--scl-spacing-12);
}

.bottom-button-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/*
Mimic scale component styles
These are just values taken from the scale text field, they may change over time
*/
span.select2.select2-container span.select2-selection {
    border: 0.0625rem solid hsla(0, 0%, 0%, 0.44);
    border-radius: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem calc(2rem - 0.0625rem) 0.25rem 0.5rem;
    font-family: TeleNeo, sans-serif;
    font-size: 1rem;
}

span.select2.select2-container span.select2-selection:hover {
    border-color: hsla(0, 0%, 0%, 0.71);
    background-color: hsla(0, 0%, 0%, 0.07);
}

span.select2.select2-container.select2-container--focus span.select2-selection {
    border-color: hsla(0, 0%, 0%, 0.71);
    outline-color: rgb(34, 56, 223);
    outline-offset: 1px;
    outline-style: solid;
    outline-width: 2px;
    transition-behavior: normal;
    transition-delay: 0s;
    transition-duration: 0.2s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

.scale-file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: TeleNeo, sans-serif;
    font-size: 1rem;
}

.scale-file-input-wrapper:hover {
    background-color: transparent;
}

.scale-file-input-wrapper--invalid {
    color: var(--telekom-color-functional-danger-standard, #d40511);
}

.scale-field .scale-file-input-wrapper input.scale-file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.scale-file-choose-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--telekom-color-ui-border-standard, #ccc);
    border-radius: var(--telekom-radius-medium, 8px);
    background: #fff;
    color: var(--telekom-color-text-and-icon-standard);
    font-family: TeleNeo, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease;
    line-height: 1.25;
}

.scale-file-choose-button:hover {
    background-color: var(--telekom-color-ui-background-hovered, #f2f2f2);
    border-color: currentColor;
}

.scale-file-input-hidden:focus + .scale-file-choose-button,
.scale-file-input-hidden:focus-visible + .scale-file-choose-button {
    outline: 2px solid var(--telekom-color-functional-focus-standard, #0d6efd);
    outline-offset: 2px;
}

.scale-file-name {
    font-family: TeleNeo, sans-serif;
    font-size: 1rem;
    color: var(--telekom-color-text-and-icon-standard, #333);
}

.errorlist {
    display: none;
}

.scale-field {
    margin-top: 1rem;
}

/* Select2 override */
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    cursor: not-allowed !important;
    border-color: var(--telekom-color-ui-border-disabled) !important;
    color: var(--telekom-color-text-and-icon-disabled) !important;
    background: transparent !important;
}

span.select2.select2-container.select2-container--disabled.select2-container--focus span.select2-selection {
    outline: none !important;
}

.select2-container--default.select2-container--disabled .select2-search--inline .select2-search__field {
    cursor: not-allowed !important;
}
