/* SPU Thumbnails Styles */

/* Order Photos Block Styles */
.spu-order-photos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px 8px 8px;
    /*
    border: 1px solid #808080;
    */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .15);
    border-radius: 3px;
    vertical-align: middle;
    position: relative;
}

.spu-frontend-view-photos {
    min-width: 48px !important;
    height: 48px !important;
    background: #f0f0f0 !important;
    border: 1px solid #cfcdcd !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    position: relative !important;
    z-index: var(--spu-z-ui) !important;
}

.spu-frontend-view-photos--fallback {
    padding: 6px 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    font-size: 14px;
}

.spu-photos-overlay {
    position: absolute;
    inset: 0;
    z-index: var(--spu-z-ui);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Анімація завантаження при кліку на overlay */
.spu-photos-overlay-loading {
    background: rgba(0, 123, 255, 0.5) !important;
    border: 2px solid rgba(0, 123, 255, 0.8) !important;
    animation: spuOverlayFlash 1.2s ease-out;
}

@keyframes spuOverlayFlash {
    0% {
        background: rgba(0, 123, 255, 0.5);
        border-color: rgba(0, 123, 255, 0.8);
        box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.8), 0 0 0 0 rgba(0, 123, 255, 0.6);
    }
    25% {
        background: rgba(0, 123, 255, 0.7);
        border-color: rgba(0, 123, 255, 1);
        box-shadow: inset 0 0 30px 15px rgba(255, 255, 255, 0.9), 0 0 20px 10px rgba(0, 123, 255, 0.8);
    }
    50% {
        background: rgba(0, 123, 255, 0.6);
        border-color: rgba(0, 123, 255, 0.9);
        box-shadow: inset 0 0 20px 10px rgba(255, 255, 255, 0.8), 0 0 15px 7px rgba(0, 123, 255, 0.7);
    }
    75% {
        background: rgba(0, 123, 255, 0.7);
        border-color: rgba(0, 123, 255, 1);
        box-shadow: inset 0 0 25px 12px rgba(255, 255, 255, 0.9), 0 0 18px 9px rgba(0, 123, 255, 0.8);
    }
    100% {
        background: rgba(0, 123, 255, 0.5);
        border-color: rgba(0, 123, 255, 0.8);
        box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.8), 0 0 0 0 rgba(0, 123, 255, 0.6);
    }
}

/* Order Photos Thumbnail Styles */
.spu-order-thumbnail {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    overflow: hidden;
    position: relative;
}

/* Order Thumbnail Clip - динамічні стилі через inline (bg-color, width, height, position) */
.spu-order-thumbnail-clip {
    position: absolute;
    overflow: hidden;
}

/* Order Thumbnail Image - динамічні стилі через inline (object-fit, object-position, width, height) */
.spu-order-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    display: block;
}

.spu-gallery-box {
    width: 100%;
    max-width: 100%;
    display: block;
    position: relative;
    z-index: var(--spu-z-base);
}

/* Gallery Modal Styles */
.spu-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--spu-z-modals);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.spu-gallery-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    height: 90%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.spu-gallery-modal-title {
    margin: 0px;
    padding-right: 30px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.spu-gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.spu-gallery-modal-close:hover {
    color: #333;
}

.spu-gallery-modal-body {
    flex: 1;
    overflow: visible;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.spu-loading-spinner {
    text-align: center;
}

.spu-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spuSpin 1s linear infinite;
    margin: 0 auto 10px;
}

.spu-loading-spinner p {
    color: #666;
    margin: 0;
}

.spu-gallery-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    height: 90%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.spu-gallery-modal-title {
    margin: 0 0 15px 0;
    padding-right: 30px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.spu-gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.spu-gallery-modal-close:hover {
    color: #333;
}

.spu-gallery-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.spu-gallery-modal-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 15px 0 5px 0;
}

.spu-gallery-modal-close-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.spu-gallery-modal-close-btn:hover {
    background: #005177;
}

/* Progress container for gallery modal */
.spu-gallery-progress-container {
    position: sticky;
    top: 0;
    z-index: var(--spu-z-progress);
    display: none;
    /*
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 10px;
    */
}

/* Bulk actions for gallery modal */
.spu-gallery-bulk-actions {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Bulk actions in modal */
.spu-gallery-modal .spu-bulk-actions,
.spu-gallery-modal .spu-gallery-bulk-actions {
    position: sticky;
    top: 0;
    z-index: var(--spu-z-bulk-actions);
    flex-wrap: nowrap;
}

/* Іконки в модалці */
.spu-gallery-bulk-actions .spu-svg-button img {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
}

/* Gallery items container for modal */
.spu-gallery-modal-items {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

/* Progress container for gallery modal */
.spu-progress-container {
    position: sticky;
    top: 0;
    z-index: inherit;
    display: none;

    /*
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 10px;
    */

}

/* Bulk actions for gallery modal */
.spu-bulk-actions {
    position: sticky;
    top: 0;
    z-index: var(--spu-z-bulk-actions);
    /*
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    */
}

/* Gallery items container */
.spu-gallery-items {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(var(--thumbnail-size, 150px) + 10px), 1fr));
    gap: 10px;
    justify-items: center;
    align-items: start;
    margin: 1px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Error item styles */
.spu-gallery-item.spu-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.spu-error-message {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive adjustments for gallery modal */
@media (max-width: 768px) {
    .spu-gallery-modal-content {
        width: 95%;
        height: 95%;
        padding: 15px;
    }

    .spu-gallery-modal-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .spu-gallery-modal-content {
        width: 98%;
        height: 98%;
        padding: 10px;
    }

    .spu-gallery-modal-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .spu-gallery-modal-body {
        padding: 5px 0;
    }
}

.spu-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 0;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Toolbar для модалки - фіксований вгорі */
.spu-modal-toolbar {
    position: sticky;
    top: 0;
    z-index: var(--spu-z-progress);
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* Toolbar в readonly режимі - прихований */
.spu-modal-toolbar-readonly {
    display: none !important;
}

/* Gallery modal body - з прокруткою для всієї галереї */
.spu-gallery-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Editable режим модалки (дефолтний) */
.spu-gallery-modal-editable .spu-gallery-items {
    max-height: calc(100vh - 200px);
    margin-bottom: 20px;
}

/* Readonly режим модалки - збільшена висота, без toolbar */
.spu-gallery-modal-readonly .spu-gallery-items {
    max-height: calc(100vh - 100px);
    margin-bottom: 0;
}

/* Gallery items - базові стилі */
.spu-gallery-modal-body .spu-gallery-items {
    overflow-y: auto;
}

.spu-bulk-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 0;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-wrap: nowrap;
}


.spu-bulk-actions img {
    width: 24px;
    height: 24px;
}

/* SVG кнопки з кольоровими іконками */
.spu-svg-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border: 1px solid #ddd !important;
    background: #f9f9f9 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin: 0 2px !important;
    transition: all 0.2s ease !important;
    z-index: calc(var(--spu-z-progress) + 100) !important;
}

.spu-svg-button svg {
    max-width: 24px !important;
    max-height: 24px !important;
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* Загальний hover ефект для всіх кнопок */
.spu-svg-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Зелена кнопка (плюс) - змінюємо колір SVG через CSS */
.spu-add-more-button svg * {
    stroke: #22c55e !important;
}
.spu-add-more-button:hover {
    background: #d9fce6 !important;
    border-color: #22c55e !important;
}

/* Червона кнопка (мінус) - змінюємо колір SVG через CSS */
.spu-delete-selected svg * {
    stroke: #ef4444 !important;
}
.spu-delete-selected:hover {
    background: #ffd4d4 !important;
    border-color: #ef4444 !important;
}

/* Сині кнопки (вибір) - змінюємо колір SVG через CSS */
.spu-select-all svg *,
.spu-deselect-all svg *,
.spu-invert-selection svg * {
    stroke: #3b82f6 !important;
}
.spu-select-all:hover,
.spu-deselect-all:hover,
.spu-invert-selection:hover {
    background: #d2e3ff !important;
    border-color: #3b82f6 !important;
}

/* Сині кнопки (вибір) - змінюємо колір SVG через CSS */
.spu-bg-toggle svg *,
.spu-fit-toggle svg *,
.spu-orientation-toggle svg *,
.spu-bg-toggle-all svg *,
.spu-fit-toggle-all svg *,
.spu-orientation-toggle-all svg * {
    stroke: #f97316 !important;
    color: #f97316 !important;
}
.spu-bg-toggle:hover,
.spu-fit-toggle:hover,
.spu-orientation-toggle:hover,
.spu-bg-toggle-all:hover,
.spu-fit-toggle-all:hover,
.spu-orientation-toggle-all:hover {
    background: #ffe5d2 !important;
    border-color: #f97316 !important;
}

.spu-thumbnail-delete:hover {
    background: #ffb5b5 !important;
    border-color: #fc0000 !important;
}


.spu-gallery-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 2px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
    width: 100%;
    max-width: calc(var(--thumbnail-size, 150px) + 10px);
    box-sizing: border-box;
    position: relative;
    z-index: var(--spu-z-base);
}

.spu-gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.spu-thumbnail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
    border-radius: 6px 6px 0px 0px;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    height: 32px;
}

.spu-thumbnail-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.spu-thumbnail-filename {
    flex: 1;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.spu-filename-line-left {
    text-align: left;
    display: block;
}

.spu-filename-line-right {
    text-align: right;
    display: block;
}

/* Стилі для мініатюри завантаження */
.spu-uploading .spu-thumbnail-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #dee2e6;
    width: 100%;
    height: calc(var(--thumbnail-size, 150px) + 8px);
    box-sizing: border-box;
}

.spu-uploading .spu-thumbnail-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 8px;
}

.spu-circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spu-circular-progress-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#007cba 0deg, #e0e0e0 0deg);
    transition: background 0.3s ease;
}

.spu-circular-progress-center {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--spu-z-ui);
}

.spu-circular-progress-text {
    font-size: 14px;
    font-weight: bold;
    color: #007cba;
    transition: color 0.3s ease;
}

.spu-circular-progress-complete .spu-circular-progress-bg {
    background: conic-gradient(#4CAF50 360deg, #e0e0e0 360deg);
}

.spu-circular-progress-complete .spu-circular-progress-text {
    color: #4CAF50;
}

.spu-thumbnail-cancel-container {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: #f8f9fa;
    border-top: 1px solid #e1e1e1;
    width: 100%;
    box-sizing: border-box;
}

.spu-thumbnail-cancel-bottom {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spu-thumbnail-cancel-bottom:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

.spu-thumbnail-file-ext {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    padding: 2px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.spu-thumbnail-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    background: #dee2e6;
    width: 100%;
    height: calc(var(--thumbnail-size, 150px) + 8px);
    box-sizing: border-box;
}

.spu-thumbnail-bleed {
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.spu-thumbnail-trim {
    border: 1px solid #bbb;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.spu-thumbnail-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* background встановлюється динамічно через JavaScript */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.spu-thumbnail-image {
    /* width: 100%; - видалено, щоб дозволити object-fit працювати правильно */
    /* height: 100%; - видалено, щоб дозволити object-fit працювати правильно */
    display: block;
    border-radius: 2px;
    /* object-fit буде встановлено динамічно через JavaScript */
}

.spu-thumbnail-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: #f8f9fa;
    border-top: 1px solid #e1e1e1;
    width: 100%;
    box-sizing: border-box;
}

.spu-thumbnail-action {
    width: 26px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #666;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.spu-thumbnail-action:hover {
    border-color: #007cba;
    background: #f0f8ff;
    color: #007cba;
}

.spu-thumbnail-action img {
    width: 16px;
    height: 16px;
    /*
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    */
}

.spu-thumbnail-action.active {
    background: #e9ecef;
    border-color: #6c757d;
}

.spu-thumbnail-dpi {
    text-align: center;
    padding: 1px 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0px 0px 6px 6px;
}

.spu-dpi-good,
.good-quality {
    background: #d4edda;
    color: #155724;
    border-top: 1px solid #c3e6cb;
}

.spu-dpi-medium,
.medium-quality {
    background: #ffe38c;
    color: #856404;
    border-top: 1px solid #ffc304;
}

.spu-dpi-low,
.poor-quality {
    background: #f8d7da;
    color: #721c24;
    border-top: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .spu-bulk-actions {
        gap: 1px;
        flex-wrap: nowrap;
        justify-content: space-evenly;
    }


    /* На планшетах всі кнопки залишаються в один ряд */

    .spu-gallery-items {
        gap: 15px;
    }

    .spu-thumbnail-preview {
        padding: calc(var(--thumbnail-size, 150px) * 0.0667);
    }

    .spu-thumbnail-actions {
        gap: 4px;
        padding: 4px;
    }

    .spu-thumbnail-action {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    /* Фіксоване розміщення кнопок на сторінці товару в режимі телефону */
    .spu-bulk-actions {
        position: sticky;
        top: 0;
        z-index: var(--spu-z-bulk-actions);
    }
}

@media (max-width: 480px) {
    .spu-bulk-actions {
        gap: 1px;
        flex-wrap: nowrap;
        justify-content: center;
    }


    .spu-gallery-items {
        gap: 10px;
    }

    .spu-thumbnail-preview {
        padding: calc(var(--thumbnail-size, 150px) * 0.0533);
    }

    .spu-thumbnail-header {
        padding: 2px 4px;
        gap: 6px;
    }

    .spu-thumbnail-filename {
        font-size: 10px;
    }

    .spu-thumbnail-file-ext {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* Заблокований стан кількості для SPU товарів */
.spu-quantity-disabled-wrapper {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* Специфічно для блокових тем WooCommerce */
.spu-quantity-disabled-wrapper.wc-block-components-quantity-selector {
    pointer-events: none;
    opacity: 0.7;
}

.spu-quantity-disabled-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.8);
    z-index: 10;
    pointer-events: none;
}

.spu-quantity-disabled-wrapper input,
.spu-quantity-disabled-wrapper select,
.spu-quantity-disabled-wrapper button,
.spu-quantity-disabled-wrapper .wc-block-components-quantity-selector__input,
.spu-quantity-disabled-wrapper .wc-block-components-quantity-selector__button {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    border-color: #dee2e6 !important;
}

.spu-quantity-disabled-wrapper input:focus,
.spu-quantity-disabled-wrapper select:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Flow-bar spinner styles */
.flow-bar {
    width: 100%;
    height: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-image: repeating-linear-gradient(
        -45deg,
        #d1d6de 0,
        #d1d6de 10px,
        #e1e4e9 10px,
        #e1e4e9 20px
    );
    background-size: 30px 30px;
    animation: flow 1.5s linear infinite;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

@keyframes flow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 30px 0;
    }
}

/* Position text over flow-bar */
.spu-loading {
    position: relative !important;
}

.spu-loading p,
.spu-loading-spinner p {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #383838 !important;
    font-size: 14px !important;
    margin: 0 !important;
    z-index: 1 !important;
    white-space: nowrap !important;
}