/* ==========================================================================
   FRAMER — Основні стилі
   ========================================================================== */

/* ---- Base ---- */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background: #f5f5f7;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.global-preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.global-preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-content { text-align: center; }

.dots-loader {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.dot {
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    animation: bounce-dot 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -.32s; }
.dot:nth-child(2) { animation-delay: -.16s; }

@keyframes bounce-dot {
    0%, 80%, 100% { transform: scale(0); }
    40%           { transform: scale(1); }
}

.preloader-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.framer-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid #EBE7E7;
}
.header-left, .header-right { flex: 0 0 60px; }
.header-center { flex: 1; display: flex; justify-content: center; }

.header-icon-btn {
    background: transparent;
    border: none;
    color: black;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: color .2s;
}
.header-icon-btn:hover { color: #007bff; }

.cart-count {
    position: absolute;
    top: 0; right: 0;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.header-logo { color: #000; text-decoration: none; font-size: 24px; font-weight: bold; letter-spacing: 2px; }
.header-logo:hover { color: #007bff; }

/* ==========================================================================
   SIDEBAR (меню + кошик)
   ========================================================================== */
.sidebar-menu, .sidebar-cart {
    position: fixed;
    top: 0; bottom: 0;
    width: 300px;
    background: #2a2a2a;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease-in-out;
}
.sidebar-menu  { left: 0;  transform: translateX(-100%); }
.sidebar-cart  { right: 0; transform: translateX(100%);  }
.sidebar-menu.active  { transform: translateX(0); }
.sidebar-cart.active  { transform: translateX(0); }

@media (max-width: 768px) {
    .sidebar-menu, .sidebar-cart { width: 100%; }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #444;
}
.sidebar-header h3 { margin: 0; color: #fff; font-size: 20px; }

.close-btn { background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 5px; transition: color .2s; }
.close-btn:hover { color: #dc3545; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.nav-item:hover { background: #333; color: #fff; border-left-color: #007bff; }
.nav-item i { margin-right: 15px; font-size: 18px; width: 20px; text-align: center; }

.sidebar-footer { padding: 20px; border-top: 1px solid #444; }
.contact-info p { margin: 8px 0; color: #999; font-size: 14px; }
.contact-info i { margin-right: 10px; color: #007bff; }

/* ---- Backdrop ---- */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.sidebar-backdrop.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   ORDER WIDGET
   ========================================================================== */
.order-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    min-width: 280px;
    padding: 5px 20px 5px 0;
}
.order-widget li { list-style: none; }

.widget-price {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.price-label { color: black; font-size: 16px; }
.price-value  { 
    font-weight: 500;
    color: black;
    font-size: 14px;
    padding-right: 15px;
}

.btn-widget {
    width: 100%;
    background-color: black;
    border-radius: 30px;
    padding: 15px;
    border: 1px solid black;
}

@media (max-width: 768px) {
    .order-widget {
        position: fixed;
        top: 60px;
        right: 0; left: 0; bottom: auto;
        border-radius: 0;
        border: none;
        border-bottom: 2px solid #007bff;
        min-width: auto;
        padding: 12px 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,.3);
    }
    .price-label { font-size: 14px; }
    .price-value  { font-size: 18px; }
    .btn-widget   { padding: 10px; font-size: 14px; }
    #framer-app   { margin-top: 140px; }
}

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */
.notification-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: max-content;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.notification {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp .3s ease-out;
    border-left: 4px solid;
    pointer-events: auto;
}
.notification.success { border-left-color: #28a745; background: #d4edda; }
.notification.error   { border-left-color: #dc3545; background: #f8d7da; }
.notification i { font-size: 24px; }
.notification.success i { color: #28a745; }
.notification.error   i { color: #dc3545; }
.notification-text { flex: 1; color: #333; font-weight: 500; }
.notification-close {
    background: transparent; border: none; color: #666; font-size: 20px; cursor: pointer;
    padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}
.notification-close:hover { color: #000; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .notification-container {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */
#framer-app {
    width: 100vw;
    height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---- Upload screen ---- */
#upload-screen { text-align: center; }

.upload-box {
    width: 150px; height: 150px;
 
    background-color: #fd3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 auto 20px;
    transition: all .2s ease-in-out;
}
.upload-box:hover, .upload-box.drag-over { background-color: #333; border-color: #777; }
.upload-box i { font-size: 30px; color: black; }
#upload-screen p { 
    color: #aaa;
font-size: 12px;
line-height: 1.2;


}

/* ---- Editor screen ---- */
#editor-screen {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: row;
}

#gallery-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: auto;
}

#image-gallery {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-width: min-content;
    margin: 0 auto; /* центрує коли влазить; колапсується до 0 при overflow → scroll тільки вправо */
}

.nav-btn { display: none !important; }

/* ==========================================================================
   IMAGE ITEMS & OVERLAYS
   ========================================================================== */
.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.thumb-wrap {
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .4s ease-in-out; /* плавна зміна розмірів */
    box-shadow: rgba(0, 0, 0, 0.07) -2px -2px 20px 0px, rgba(0, 0, 0, 0.11) 23.01px 23.006px 17.869px 0px, rgba(0, 0, 0, 0.09) 12.9px 12.897px 10.017px 0px, rgba(0, 0, 0, 0.07) 6.85px 6.85px 5.32px 0px, rgba(0, 0, 0, 0.05) 2.85px 2.85px 2.214px 0px;
}

.preview-img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay-frame {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.thumb-wrap .frame-white,
.thumb-wrap .frame-black   { z-index: 7; }
.thumb-wrap .passpartout   { z-index: 4; }
.thumb-wrap .glass-overlay-img { z-index: 6; }

.framer-custom-badge {
    position: absolute;
    top: 6px; left: 6px;
    z-index: 9;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ---- Controls row under image ---- */


.edit-b img, .delete-b img { width: 25px; height: 25px; }

.controls-row{
  position: absolute;
  left: 15px;
  top: 15px;
  z-index: 50;
opacity: 0;
  display: flex;
  flex-direction: column; /* ← головне */
  gap: 5px;  
}

.thumb-wrap:hover .controls-row{
  opacity: 1;
  pointer-events: auto;
}
.delete-b, .edit-b{
    background-color: black;
    padding: 10px;
    border-radius: 30px;
    opacity: 0.4;
    border:none;
}

/* ---- Low-resolution warning badge (under edit/delete buttons) ---- */
.controls-row .low-res-warn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.95); /* amber */
    color: #fff;
    cursor: help;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    opacity: 1;
    margin-top: 2px;
}
.controls-row .low-res-warn svg { display: block; }
.controls-row .low-res-warn .low-res-tip {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 260px;
    white-space: normal;
    width: max-content;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 60;
}
.controls-row .low-res-warn:hover .low-res-tip,
.controls-row .low-res-warn:focus .low-res-tip {
    opacity: 1;
}
/* ==========================================================================
   BOTTOM CONTROLS (панель інструментів)
   ========================================================================== */
.bottom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 18px;
    display: flex;
    gap: 15px;
    box-shadow: 2px 4px 12px #00000014;
    z-index: 100;
    border: 0.1px solid #F2E9E9;
}

@media (max-width: 490px) {
    .bottom-controls {
        bottom: 0;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,.3);
        width: 100%;
    }
    .control-item span {
        font-size: 10px;
        font-weight: 400;
        text-transform: uppercase;
        margin-top: 5px;
        }
}

.control-item {
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color .2s;
}
.control-item:hover { background-color: #EBE7E7; }
.control-item.active { background-color: #EBE7E7; }
.control-item:last-child:hover { background-color: transparent; }
.control-item i { font-size: 22px; margin-bottom: 5px; }
.control-item span { 
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 5px;
}

.add-style {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 30px;
    background: #0271e3;
    transition: background-color .2s;
}

/* ==========================================================================
   EDIT CONTROLS (панель інструментів)
   ========================================================================== */
.bottom-controls-edit{
    display: inline-flex;
}
.framer-toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 15px;
    border-radius: 18px;
    display: flex;
    gap: 15px;
    box-shadow: 2px 4px 12px #00000014;
    z-index: 100;
    border: 0.1px solid #F2E9E9;
}

@media (max-width: 490px) {
    .framer-toolbar {
        bottom: 0;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,.3);
        width: 100%;
    }
    #size-modal h5{
        color: black;
    }
    .size-option-btn {
        font-size: 12px;
        padding: 0px 0px 10px 0px;
        white-space: nowrap;
        min-width: 90px;
    }
    .framer-modal-content{
         height: 180px !important;
    }
    
    .passepartout-options{
        margin-top: 0;
    }
    #passepartout-modal h5{
        color: black;
    }
    .framer-modal-content{
        padding-top: 0 !important;
    }
}

.framer-toolbar .control-item {
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color .2s;
}
.framer-toolbar .control-item:hover { background-color: #EBE7E7; }
.framer-toolbar .control-item.active { background-color: #EBE7E7; }
.framer-toolbar .control-item:last-child:hover { background-color: transparent; }
.framer-toolbar .control-item i { font-size: 22px; margin-bottom: 5px; }
.framer-toolbar .control-item span { font-size: 12px; }


/* ==========================================================================
   FRAMER MODALS (bottom-sheet)
   ========================================================================== */
.framer-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    inset: 0;
    background: rgba(0,0,0,0);
    justify-content: center;
    align-items: center;
}

.framer-modal-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    max-width: 600px;
    bottom: 20px;
    position: absolute;
    box-shadow: 0 5px 25px rgba(0,0,0,.5);
}

.framer-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* ---- Внутрішні модалки в #editModal ---- */
.framer-modal-inner {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2050;
}
.framer-modal-inner .framer-modal-content {
position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);   /* <-- головне */
    width: auto;
    max-width: 600px;              /* підкрути під свій дизайн */
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    max-height: 70%;
    overflow: auto;
}
.framer-modal-inner .framer-modal-close {
    position: absolute;
    top: 10px; right: 14px;
    font-size: 24px;
    cursor: pointer;
}

/* ---- Frame modal list ---- */
#frame-modal ul { padding-left: 0; }
#frame-modal li { list-style: none; }
#frame-modal-edit li { list-style: none; }
.framer-modal-content h5{
    color: black;
}

/* ==========================================================================
   OPTIONS LISTS
   ========================================================================== */

/* Size */
.size-option-btn {
    font-weight: 500;
    font-size: 14px;
    background: white;
    border: 1px solid #EBE7E7;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.size-option-btn:hover,
.size-option-btn.selected { background-color: transparent; border-color: #007bff; color: #007bff; }

/* Frame */
.frame-color-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.frame-color-option {
    cursor: pointer;
    text-align: center;
    border-radius: 13px;
    transition: all .2s;
    border: 2px solid #F2E9E9;
}
.frame-color-option img {
    width: 140px;
    border-radius: 12px;
  
}
.frame-color-option.selected { border-color: rgb(235,35,113); }

/* Passepartout */
.passepartout-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.passepartout-option {
    color: black;
    cursor: pointer;
    text-align: center;
    padding: 8px 6px;
    border-radius: 6px;
    transition: all .2s;
    border: 1px solid lightgrey;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.passepartout-option .option-preview {
    width: 60px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}
.passepartout-option .option-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pass-name {
    font-size: 11px;
    color: #555;
    line-height: 1.2;
    text-align: center;
}
.passepartout-option:hover { background-color: #f0f0f0; }
.passepartout-option.selected { background-color: #007bff; border-color: #007bff; }
.passepartout-option.selected .pass-name { color: #fff; }
.passepartout-option div:last-child { font-size: 13px; color: #ccc; }
.passepartout-option.selected div:last-child { color: #fff; }

/* Glass */
.glass-options {
    list-style: none;
    display: flex;              /* краще ніж inline-flex */
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;          /* ❗ забороняємо перенос */
    margin-top: 15px;
    padding: 0;
    color: black;
}


.glass-option .option-preview{
    width: 60px;
}

.glass-option {
    display: flex;             /* робимо колонку */
    flex-direction: column;
    align-items: center;       /* центруємо по горизонталі */
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all .2s;
}

.option-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;        /* відступ між картинкою і текстом */
}


.glass-option:hover { }
.glass-option.selected { background-color: #007bff; border-color: #007bff; }
.glass-option div:last-child { font-size: 13px;}
.glass-option.selected div:last-child { color: #fff; }

/* Edit modal inner option buttons */
.size-option-btn.selected-per { outline: 2px solid #111; border-radius: 10px; }
.frame-color-option.selected-per,
.passepartout-option.selected-per,
.glass-option.selected-per      { outline: 2px solid #111; border-radius: 10px; }

/* ==========================================================================
   SWIPER
   ========================================================================== */
.size-swiper { width: 100%; }

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.swiper-slide img { width: 100%; max-width: 150px; height: auto; border-radius: 8px; }

.swiper-button-next,
.swiper-button-prev {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 20px rgba(0,0,0,.07), 0 4px 13px rgba(43,5,20,.06);
    user-select: none;
    transition: transform .1s ease;
    border: 1px solid #EBE7E7;
    color: rgb(149,130,137);
}
.swiper-button-next::after { content: 'next'; font-size: 12px; }
.swiper-button-prev::after { font-size: 12px; }

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled { opacity: 0; pointer-events: none; }

.swiper-pagination-bullet-active { background: #333; }

/* ==========================================================================
   CROP / EDIT MODAL (#editModal)
   ========================================================================== */


/* Додай в style.css */
.cropper-container * {
  transition: none !important;
  animation: none !important;
}

.cropper-crop-box,
.cropper-view-box,
.cropper-canvas,
.cropper-drag-box {
  transition: none !important;
}


#editModal .modal-dialog {
    max-width: 100% !important;
    width: 100%;
    height: 100vh;
    margin: 0; padding: 0;
}
#editModal .modal-content {
    height: 100vh;
    border-radius: 0; border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    color: inherit;
}
#editModal .modal-header,
#editModal .modal-footer { background: white; flex-shrink: 0; border-color: transparent; }
#editModal .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


#editModal .cropper-container {
    max-height: calc(100vh - 200px) !important;
    height: calc(100vh - 200px) !important;
    width: 100% !important;
}

.cropper-modal { background-color: white; opacity: 1; }

/* ==========================================================================
   CROP MODAL — OVERLAYS (frame / passepartout / glass)
   ========================================================================== */

/* CropperJS crop-box має position:absolute, нам потрібний overflow:visible
   щоб overlay не обрізався (CropperJS сам кліпає зображення через .cropper-canvas) */
#editModal .cropper-crop-box {
    margin-top: -70px; 
    overflow: visible;
    transition: none !important; /* ⭐ ВИМКНЕНО transition щоб не було дьоргання */
}

/* Самі оверлеї */
.crop-preview-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    object-fit: fill;   /* fill = розтягуємо на весь кроп-бокс, як і на thumb */
    user-select: none;
    transition: opacity 0.2s ease; /* плавна поява */
}

.framer-edit-footer{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top row: controls left, save right */
.framer-edit-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.framer-edit-topbar .btn-group .btn{
  padding: 6px 10px;
  line-height: 1;
}

/* Keep save button from jumping */
.framer-save-crop{
  white-space: nowrap;
}

/* Crop loader */
#crop-loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
}
#crop-loader .spinner {
    width: 50px; height: 50px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
#cropper-image.loading { opacity: 0; }

.edit-controls {
    display: flex;
    justify-content: center;
    margin-right: 10px;

}
.edit-zoom{
    display: flex;
    justify-content: center;
        position: absolute;
    bottom: 115px;
}


.cropper-view-box {
display: block;
height: 100%;
outline:none; 
 outline-color: none;
overflow: hidden;
width: 100%;
}


/* Bootstrap overrides for crop modal */
.modal { z-index: 2000; }
.modal-content { border: none; border-radius: 8px; }
.btn { padding: 6px 12px; border-radius: 4px; border: 1px solid #555; background: #444; color: #fff; cursor: pointer; }
.btn-success { 
    background:  #0271e3; 
    
    border-color: #0271e3; }


.btn-success:hover{
     background:  #0271e3; 
     border-color: #0271e3;
}
.btn-primary  { background: #007bff; border-color: #007bff; }
.btn:hover { opacity: .9; }


/* ==============================
   FIX: center crop controls in #editModal footer
   (markup unchanged)
   ============================== */

/* Make footer a real layout container */
#editModal .modal-footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
}

/* Your .edit-zoom was absolute => it will never center well */
#editModal .modal-footer .edit-zoom{
  position: absolute!important;
  bottom: 115px ;
  left: auto !important;
  transform: none !important;

  width: 100%;
  margin: 0 !important;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Bootstrap .row adds negative margins — kill them here */
#editModal .modal-footer .edit-zoom.row{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Center the whole topbar block as a unit */
#editModal .framer-edit-topbar{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start; /* compact, not stretched to edges */
  gap: 12px;
  width: auto;
  margin: 0 auto;
}

/* (Optional) make the controls buttons look tight and consistent */
#editModal .framer-edit-topbar .btn-group .btn{
  padding: 6px 10px;
  line-height: 1;
}

/* Ensure the save button doesn't wrap and keeps nice spacing */
#editModal .framer-save-crop{
  white-space: nowrap;
}
/* ======================================
   FIX: center framer modal content
   ====================================== */

/* ======================================
   NO ANIMATIONS - дьоргання вимкнено
   ====================================== */

/* ⭐ Всі transitions вимкнені щоб не було дьоргання */
#editModal .cropper-crop-box {
    transition: none !important;
}

#editModal .cropper-canvas {
    transition: none !important;
}

/* Overlay можна залишити плавним (він не дьоргається) */
#editModal .crop-preview-overlay {
    transition: opacity 0.3s ease;
}

@media (min-width: 769px){
  #editModal .framer-edit-topbar{
    display:flex !important;
    width:100% !important;
    margin:0 !important;
    justify-content:space-between !important;
    align-items:center !important;
      position: relative;
bottom: 80;
  }

  /* Твій рядок size + save */
  #editModal .size-save-row{
    display:flex !important;
    flex-direction:row !important;
    width:100% !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px;
      
  }

  #editModal .size-save-row .left{
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
       left: -74px;
        position: relative;
        font-size: 14px;
        font-weight: 500; 
    }
  #editModal .size-save-row .right{flex: 0 0 auto;
        text-align: right;
        right: -76px;
        position: relative;
        font-size: 12px !important;
    }
  #editModal .framer-save-crop{ white-space:nowrap; }