.am-word-break {
    word-wrap: break-word;
    word-break: break-word
}

.ie11 .am-word-break {
    word-break: break-all
}

.amasty-label-container:not(.-preview) {
    max-width: 300px !important;
    max-height: 300px !important
}

.fotorama--fullscreen .amasty-label-container {
    display: none
}

.products-upsell .product-item .amlabel-text {
    padding: 0 !important;
    font-size: 12px !important
}

.fotorama .amlabel-text.-am-centered {
    top: 50%;
    left: 50%;
    width: auto !important;
    transform: translate(-50%, -50%)
}

.admin__field.-amlabel-hidden {
    margin: 0
}

.admin__field.-amlabel-hidden>.admin__field-label {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px
}

.amlabel-image-preview {
    position: absolute;
    right: 0;
    z-index: 99;
    display: flex;
    width: calc(100% * .25 - 30px);
    border: 1px solid #ccc
}

.amlabel-image-preview .amlabel-text {
    word-wrap: break-word;
    word-break: break-word
}

.ie11 .amlabel-image-preview .amlabel-text {
    word-break: break-all
}

.amlabel-image-preview>.amlabel-image {
    width: 100%;
    height: 100%
}

.amlabel-image-preview .amlabel-position-wrapper {
    position: absolute;
    display: flex
}

.amlabel-image-preview .amasty-label-container {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 100%
}

.amlabel-image-preview .amlabel-preview-image+.amlabel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%)
}

.amlabel-position-wrapper {
    z-index: 995
}

.block-viewed-products-grid .amlabel-position-wrapper {
    z-index: 2
}

.amlabel-position-chooser {
    border-spacing: 2px;
    border-collapse: initial
}

.amlabel-position-chooser td {
    padding: 20px;
    border: 2px solid;
    cursor: pointer
}

.amlabel-position-chooser td[data-amlabel-position-enabled='0'] {
    background-color: #ced4de;
    cursor: not-allowed
}

.amlabel-position-chooser td[data-amlabel-position-selected='1'] {
    background-color: #ffa726
}

.amlabel-position-chooser td:hover:not([data-amlabel-position-enabled='0']) {
    background-color: rgba(255,167,38,0.5)
}

.amlabel-position-chooser.amlabel-visual-chooser {
    border-spacing: 6px
}

.amlabel-position-chooser.amlabel-visual-chooser td {
    padding: 5px
}

.amlabel-position-chooser.amlabel-visual-chooser td[data-amlabel-position-selected='1'] {
    border-color: #007bdb;
    background-color: #007bdb;
    color: #fff
}

.amlabel-position-chooser.amlabel-visual-chooser td:hover:not([data-amlabel-position-enabled='0']):not([data-amlabel-position-selected='1']) {
    border-color: #000;
    background-color: #e8f5ff;
    color: #000
}

.amlabel-shapes-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: start
}

.amlabel-shapes-container>.amlabel-shape {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0 10px 10px 0;
    padding: 0 10px;
    width: 115px;
    height: 55px;
    border: 1px solid #eee;
    vertical-align: top
}

.amlabel-shapes-container>.amlabel-shape:hover {
    border-color: #c4c4c4
}

.amlabel-shapes-container>.amlabel-shape.-am-checked {
    border-color: #000
}

.amlabel-shapes-container .amlabel-image {
    height: 40px
}
