


/* ================= LOADER ================== */

.brand-loader-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
    display: flex;
    align-items: center;
    justify-content: center
}

.brand-loader-wrap.hide {
    display: none !important;
}

.brand-loader {
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    -webkit-animation: thebrandSpin 1s infinite linear;
    animation: thebrandSpin 1s infinite linear
}
.brand-title  {
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color var(--motion-duration-base) var(--motion-ease-out);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    padding-top: 0px;
    padding-right: 5px;
    padding-left: 10px;
    padding-bottom: 8px;
    cursor: pointer;
}

.brand-title2  {
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color var(--motion-duration-base) var(--motion-ease-out);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    padding: 8px 5px 8px 10px;
    cursor: pointer;
    margin-bottom: 14px;

}
.brand-title .accordion-icon  {


    font-size: 24px!important;

}
@-webkit-keyframes thebrandSpin {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes thebrandSpin {
    100% {
        transform: rotate(360deg)
    }
}

/* ================= GENERAL STYLES ================== */

:root {
    --motion-duration-fast: 150ms;
    --motion-duration-base: 180ms;
    --motion-duration-slow: 220ms;
    --motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 14px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 20px;
}


html,
body {
    padding: 0;
    margin: 0;
}




h1,
h2,
h3,
h4,
h5,
h6 {

    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2rem
}

h2 {
    font-size: 1.85rem
}

h3 {
    font-size: 1.7rem
}

h4 {
    font-size: 1.55rem
}

h5 {
    font-size: 1.4rem
}

h6 {
    font-size: 1.05rem
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

select:disabled,
input:disabled,
button:disabled {
    pointer-events: none !important;
}

.input-hidden {
    position: absolute;
    left: -9999px;
}

#brand-icon-panel hr {
    display: block;
    border: none;
    margin: 25px 0;
}

.d-none {
    display: none !important;
}

#brand-custom-element-options,
#brand-noframes,
#brand-noelements,
#brand-noicons,
#brand-text-settings,
#brand-image-settings,
#brand-image-settings2,
#brand-shape-settings,
#shape-gradient-settings,
#text-gradient-settings,
#element-gradient-settings,
#brand-custom-shape,
#brand-brush-pattern-width,
#brand-brush-pattern-distance,
#shape-custom-width-wrap,
#brand-overlay-wrap,
#brand-noiconfinder {
    display: none;
}

#brand-overlay-preview {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

#brand-noicons {
    margin-top: 0;
}

.notice {
    display: block;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: 700;
    margin: 15px 0;
}

.notice h6 {
    margin-bottom: 0.5rem;
}

.brand-img-wrap {
    position: relative;
    min-height: 120px;
    width: 100%;
}

.brand-frame .brand-img-wrap {
    min-height: 60px;
}

.brand-img-loader {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    -webkit-animation: thebrandSpin 1s infinite linear;
    animation: thebrandSpin 1s infinite linear;
    z-index: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    content: '';
    margin: -15px 0 0 -15px;
}

textarea {
    max-width: 90%;
}

/* ================= PAGE STRUCTURE ================== */

#brand-body {
    position: relative;
    height: 100vh;
    margin: 0;
  /*  padding: 60px 200px 0 415px;*/
}

body.panel-closed #brand-body {
    padding-left: 0px;
}

body.layers-closed #brand-body {
    padding-right: 0;
}

.brand-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.brand-inner-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    position: relative;
    z-index: 1;
}


#brand-toggle-right {
    position: fixed;
    height: 60px;
    bottom: 100px;
    transform: translateY(-30px);
    z-index: 10;
    width: 22px;
    cursor: pointer;
    text-align: center;
    display: block;
}

/* #brand-toggle-left {
    position: fixed;
    height: 60px;
    top: 300px;
    transform: translateY(-30px);
    z-index: 999999999999999999 !important;
    width: 22px;
    cursor: pointer;
    text-align: center;
    background-color: #ffffff;
    padding: 3px;
    opacity: 0.7;
      border-radius: 10px;
} */

 #brand-toggle-left {
    position: fixed;
    height: 60px;
    bottom: 5px;
    transform: translateY(-30px);
    z-index: 999999999999999999 !important;
    width: 22px;
    cursor: pointer;
    text-align: center;
    background-color: #ffffff;
    padding: 3px;
    opacity: 0.7;
    border-radius: 10px;
}

#brand-toggle-right {
    right: 315px;
    border-right: none !important;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    z-index: 999999;
}

#brand-toggle-left.closed {
   bottom: 5px;
    left: 0px;
    opacity:0.4 ;
     

}

  /* #brand-toggle-left {
        left: 327px;
        top: 300px;
    } */
#brand-toggle-left {
    left: 307px;
    bottom: 5px;
}
#brand-toggle-right.closed {
    right: 0;
}

#brand-toggle-left .material-icons ,
#brand-toggle-right .material-icons {
    font-size: 22px;
    line-height: 60px;
    text-align: center;
    transition: color var(--motion-duration-base) var(--motion-ease-out);

}


 #brand-toggle-left .texter  {
    font-size: 14px;
    line-height: 14px;
    text-align: center;

     transform: rotate(-90deg);
     transform-origin: left top;
}


 /* Professional font for toolbar, excluding icons */
.brand-tool-nav-toolbar,
.brand-tool-nav-toolbar input,
.brand-tool-nav-toolbar select,
.brand-tool-nav-toolbar textarea,
.brand-tool-nav-toolbar label,
.brand-tool-nav-toolbar button {
    font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #0F172A;
}

/* Ensure Material Icons keep their icon font */
.brand-tool-nav-toolbar .material-icons {
    font-family: 'Material Icons';
    font-size: 18px;
    color: #64748B;
}


/* -----------------------------------
   FLOATING GLASS TOOLBAR
----------------------------------- */
.brand-tool-nav-toolbar {
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 12px 28px -8px rgba(15, 23, 42, 0.22),
        0 4px 10px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 3px 8px;
    color: #0F172A;
    width: clamp(360px, 90vw, 650px);
    max-height: 42px;
    white-space: nowrap;
}
/* Avoid blocking canvas in gaps while keeping controls clickable */
.brand-tool-nav-toolbar { pointer-events: none; }
.brand-tool-nav-toolbar .brand-tool-nav-toolbar-inner > * { pointer-events: auto; }

/* Inner container */
.brand-tool-nav-toolbar .brand-tool-nav-toolbar-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}
/* Limit range slider width */
.brand-tool-range {
    width: 100%;        /* allow it to shrink with container */
    max-width: 80px;   /* maximum width */
    height: 28px;       /* match other toolbar controls */
}

/* -------------------------------
   SHARED FORM CONTROLS
--------------------------------- */
.brand-tool-select,
.brand-tool-input,
.brand-tool-textarea,
.brand-tool-file,
.brand-tool-range {
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0 6px;
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
    color: #0f172a;
    outline: none;
    white-space: nowrap;
    vertical-align: middle;
}

/* Select dropdown arrow */
.brand-tool-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 8l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 26px;
}

/* Range slider */
.brand-tool-range {
    width: 80px;
}

/* -------------------------------
   TOGGLE BUTTONS
--------------------------------- */
.brand-tool-toggle {
    height: 28px;
    width: 28px;
    padding-right:4px!important; padding-left:4px!important;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: transform var(--motion-duration-fast) var(--motion-ease-out), background-color var(--motion-duration-fast) var(--motion-ease-out), border-color var(--motion-duration-fast) var(--motion-ease-out), box-shadow var(--motion-duration-fast) var(--motion-ease-out);
}
/* Center icons inside toggle buttons (Bold, Italic, Underline, Align) */
.brand-tool-toggle .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
}

.brand-tool-toggle:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: scale(1.05);
}

.brand-tool-toggle.active {
    background: rgba(226,232,240,0.9);
    border-color: #94a3b8;
}
/* Wrapper for label + input alignment */
.brand-tool-label-wrapper {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    height: 28px;
    white-space: nowrap;
}

/* Label styling */
.brand-tool-label {
    display: inline-flex;
    align-items: center;
    height: 28px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.brand-tool-nav-toolbar label.brand-tool-label {
    margin-top: 6px;
}
/* -------------------------------
   COLOR PICKER
--------------------------------- */
.brand-tool-color {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 1px solid rgba(148,163,184,0.35);
    overflow: hidden;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background: #ffffff;
}

.brand-tool-color input { display: none; }

/* -------------------------------
   DIVIDERS
--------------------------------- */
.brand-tool-divider {
    width: 1px;
    height: 22px;
    background: rgba(100, 116, 139, 0.25);
    margin: 0 4px;
}
.brand-tool-input {
    max-width: 60px;
    width: auto;       /* Let small numbers shrink naturally */
    box-sizing: border-box;
    text-align: center; /* Optional: center numbers/text inside */
}

/* ================= TOP BAR ================== */

#brand-top-bar {
    display: flex;
    width: 100%;
    height: 60px;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    align-items: center;
    z-index: 99;
}

.brand-top-bar-menu {
    margin-left: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.brand-top-bar-menu>div {
    margin-left: 10px;
}

.brand-logo {
    padding: 15px;
    height: 60px;
}

.brand-logo img {
    height: 100%;
    width: auto;
}
#brand-text-toolbar {
    position: fixed;
    z-index: 99999;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    display: none;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
   
    padding: 0 6px 2px 6px;
    padding-bottom: 9px;;
    color: #0F172A;
    height: 44px;
    width: clamp(360px, 60vw, 1600px);
    scroll-behavior:smooth ;
    overflow-x: hidden;
    white-space: nowrap;
    overflow-x: visible;  
}
#brand-text-toolbar .brand-text-toolbar-inner {
    display: inline-flex;
    align-items: center;
    height: 100%;
    width: 100%;
    gap: 4px;
}
#brand-text-toolbar .material-icons {
    font-size: 18px;
    color: #0F172A;
}
#brand-text-toolbar .brand-toolbar-label {
    font-weight: 700;
    font-size: 13px;
}

.brand-logo img.logo-desktop {
    display: block;
}

.brand-logo img.logo-mobile {
    display: none;
}

/* ================= DROPDOWN ================== */

#brand-user-menu {
    display: flex;
    align-items: center;
}

#brand-user-menu img {
    width: 32px;
    height: auto;
    vertical-align: bottom;
    border-radius: 100%;
}

.brand-dropdown-wrap {
    position: relative;
    cursor: pointer;
}

ul.brand-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    /* width: 200px; */
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 9;
    border-radius: 4px;
    display: none;
}

ul.brand-dropdown li {
    padding: 10px;
}

ul.brand-dropdown li:last-child {
    border: none !important;
}

ul.brand-dropdown li a {
    display: block;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color var(--motion-duration-base) var(--motion-ease-out), transform var(--motion-duration-base) var(--motion-ease-out);
}
ul.brand-dropdown li a:hover {
    transform: translateX(2px);
}

ul.brand-dropdown li a .material-icons {
    font-size: 15px;
    width: 22px;
}

#brand-dropdown-wrap>.material-icons {
    transition: transform var(--motion-duration-base) var(--motion-ease-out);
    transform: rotate(0);
}

.brand-dropdown-wrap.opened>.material-icons {
    transform: rotate(180deg);
}

/* ================= CONTENT BAR ================== */

.brand-content-bar {

    position: fixed;
    display: flex;
    bottom: 20px;
    right: 20px;
    padding: 0 25px;
    border-radius: 100px;
    align-items: center;
    overflow: hidden;
    z-index: 999999999999999999999999;
    visibility: hidden;
}

body.layers-closed .brand-content-bar {
    right: 20px;
}

.brand-content-bar .brand-img-size {
    line-height: 40px;
    padding-right: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.brand-img-size .material-icons {
    font-size: 10px;
}

.brand-content-bar .brand-counter {
    align-items: center;
    margin-left: 0;
    max-width: 105px;
    padding: 0 20px 0 10px;
    position: relative;
    height: 40px;
}

.brand-content-bar .brand-counter .brand-btn,
.brand-content-bar .brand-counter .brand-btn:hover,
.brand-content-bar .brand-counter .brand-btn:focus {
    min-width: 15px;
}

.brand-content-bar .brand-counter .brand-btn .material-icons {
    font-size: 16px;
}

.brand-counter .brand-btn:disabled {
    opacity: 1;
}

.brand-content-bar .brand-counter .brand-form-field {
    border: none !important;
    background: transparent !important;
    font-weight: 700
}

.brand-content-bar .brand-counter:after {
    font-family: 'Material Icons';
    content: 'percent';
    position: absolute;
    right: -25px;
    line-height: 40px;
    top: 0;
    bottom: 0;
    padding: 0 10px;
    font-size: 12px;
}

#brand-img-drag-proxy {
    padding: 0 10px;
    align-self: stretch;
    border-radius: 0;
}

#brand-img-drag-proxy .material-icons {
    margin: 0;
    font-size: 16px;
}

/* ================= PAGES ================== */
#brand-dragit {
    display: block;

    height: 18px;


    bottom: 13px;
    right:3px;
    z-index: 9999999999999999;
    position: absolute;
    font-size: 18px;





    padding: 0;
    height: 25px;
    width: 25px;



}




#brand-dragit>.material-icons {
    font-size: 16px;


}



#brand-pages {
    display: flex;
    margin-right: 20px;
    margin-bottom: 20px;
    gap: 10px;
    padding: 10px;
    min-height: 90px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    scrollbar-width: thin;
    border-radius: 12px;
       box-shadow: 0 8px 24px rgba(2, 8, 23, 0.08);
    backdrop-filter: saturate(1.2) blur(6px);
    scroll-snap-type: x proximity;
    transition: box-shadow var(--motion-duration-base) var(--motion-ease-out), background-color var(--motion-duration-base) var(--motion-ease-out);
}

#brand-pages>div {
    position: relative;
    flex: 0 0 auto;
    width: 140px;
    height: 96px;
    overflow: hidden;
    transition: transform 200ms var(--motion-ease-out), box-shadow 200ms var(--motion-ease-out), background-color 200ms var(--motion-ease-out), opacity 160ms ease;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--color-foreground-5), 0 1px 3px rgba(2, 8, 23, 0.06);
    background-color: #F8FAFC;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: grab;
    scroll-snap-align: start;
    opacity: .96;
}

#brand-pages>div>.brand-open-page {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 8px 30px 8px 10px;
    font-size: .74rem;
    line-height: 1;
    pointer-events: all;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: saturate(1.1) blur(3px);
}

#brand-pages>div::before {
    content: attr(data-page);
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 2px 6px rgba(2, 8, 23, 0.18);
}

#brand-pages>div.thumb-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240,244,248,0) 0%, rgba(240,244,248,0.8) 50%, rgba(240,244,248,0) 100%);
    animation: shimmer 1200ms infinite;
}

#brand-pages>div.thumb-ready {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


#brand-pages>div.active {
    box-shadow: inset 0 0 0 2px var(--color-button-background), 0 12px 26px rgba(2, 8, 23, 0.16);
    transform: translateY(-1px) scale(1.02);
}

#brand-pages>div.active::after {
    content: 'Active';
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(2, 8, 23, 0.18);
}

#brand-pages>div.active>.brand-open-page {
    background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.98) 100%);
    font-weight: 600;
}

#brand-pages>div:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: inset 0 0 0 1px var(--color-foreground-4), 0 12px 28px rgba(2, 8, 23, 0.14);
}

#brand-pages>div:active {
    cursor: grabbing;
}

#brand-pages>div>.material-icons {
    font-size: 18px;
    position: absolute;
    right: 6px;
    top: 6px;
    transform: translateY(-4px) scale(0.9);
    transition: opacity 160ms var(--motion-ease-out), transform 160ms var(--motion-ease-out);
    cursor: pointer;
    z-index: 2;
    opacity: 0;
}

#brand-pages>div:hover>.material-icons {
    opacity: 1;
    transform: translateY(0) scale(0.95);
}
#brand-pages>div>.material-icons:hover {
    transform: scale(1.1);
}

#brand-pages>div>.brand-duplicate-page {
    top: 30px;
}

#brand-pages .brand-page-add {
    position: relative;
    flex: 0 0 auto;
    width: 140px;
    height: 96px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--color-foreground-5);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 200ms var(--motion-ease-out), box-shadow 200ms var(--motion-ease-out), background-color 200ms var(--motion-ease-out);
}
#brand-pages .brand-page-add .material-icons {
    opacity: 1;
    position: static;
    font-size: 28px;
    color: var(--color-button-background);
}
#brand-pages .brand-page-add .brand-open-page {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: .72rem;
    background: rgba(255,255,255,0.92);
}
#brand-pages .brand-page-add:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: inset 0 0 0 1px var(--color-foreground-4), 0 12px 28px rgba(2, 8, 23, 0.14);
}

/* Scrollbar styling */
#brand-pages::-webkit-scrollbar { height: 10px; }
#brand-pages::-webkit-scrollbar-track { background: rgba(148,163,184,0.15); border-radius: 8px; }
#brand-pages::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.35); border-radius: 8px; }
#brand-pages::-webkit-scrollbar-thumb:hover { background: rgba(71,85,105,0.5); }

/* Sortable placeholder and helper */
#brand-pages .ui-sortable-placeholder {
    visibility: visible !important;
    border-radius: 10px;
    background: rgba(148,163,184,0.25);
    box-shadow: inset 0 0 0 2px rgba(148,163,184,0.35);
    width: 140px !important;
    height: 96px !important;
}
#brand-pages .ui-sortable-helper {
    box-shadow: inset 0 0 0 2px var(--color-button-background), 0 14px 30px rgba(2, 8, 23, 0.18);
    transform: scale(1.04);
}

/* ================= ICON MENU ================== */

#brand-icon-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75px;
    display: flex;
    flex-direction: column;
    padding: 60px 0 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 11;
    height: 100%;
}

button.brand-icon-menu-btn {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    cursor: pointer;
    height: auto;
    margin: 0;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform var(--motion-duration-base) var(--motion-ease-out), background-color var(--motion-duration-base) var(--motion-ease-out), color var(--motion-duration-base) var(--motion-ease-out), box-shadow var(--motion-duration-base) var(--motion-ease-out);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
button.brand-icon-menu-btn:hover {
    transform: scale(1.02);
}
button.brand-icon-menu-btn:active {
    transform: scale(0.98);
}

.brand-icon-menu-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    padding-top: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

button.brand-icon-menu-btn.stick-to-bottom {
    margin-top: auto;
}

button.brand-icon-menu-btn .material-icons {
    font-size: 22px;
}

#brand-icon-menu .brand-icon-menu-btn {
    background: #fff;
}

#brand-icon-menu .brand-icon-menu-btn.active,
#brand-icon-menu .brand-icon-menu-btn:hover {
    background: #fff;
}

.brand-tabs-menu li.brand-icon-menu-btn,
.brand-tabs-menu li.brand-icon-menu-btn:hover,
.brand-tabs-menu li.brand-icon-menu-btn.active {
    background: #fff;
}

/* #brand-icon-panel {
    --brand-panel-width: clamp(280px, 50vw, 320px);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --surface-primary: #FFFFFF;
    --surface-secondary: rgba(247, 249, 252, 0.8);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: fixed;
    top: 200px;
    bottom: 20px;
    left: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    height: auto;
    min-width: 280px;
    max-width: 350px;
    width: var(--brand-panel-width);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
    transform: translateX(-40);
    opacity: 1;
    transition: transform var(--motion-duration-slow) var(--motion-ease-out), opacity var(--motion-duration-base) var(--motion-ease-out), background var(--motion-duration-base) var(--motion-ease-out), box-shadow var(--motion-duration-base) var(--motion-ease-out);
    will-change: transform, opacity;
    max-height: 600px;
} */
#brand-icon-panel {
    --brand-panel-width: clamp(280px, 50vw, 320px);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --surface-primary: #FFFFFF;
    --surface-secondary: rgba(247, 249, 252, 0.8);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: fixed;
    /* top: 200px; */
    bottom: 10px;
    left: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    /* height: auto; */
    min-width: 300px;
    max-width: 280px;
    width: var(--brand-panel-width);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg);
    overflow: auto;
    z-index: 1000;
    transform: translateX(-40);
    opacity: 1;
    transition: transform var(--motion-duration-slow) var(--motion-ease-out), opacity var(--motion-duration-base) var(--motion-ease-out), background var(--motion-duration-base) var(--motion-ease-out), box-shadow var(--motion-duration-base) var(--motion-ease-out);
    will-change: transform, opacity;
    max-height: 400px;
}
#brand-icon-panel.collapsed {
   
    opacity: 0;
    pointer-events: none;
}

#brand-icon-panel.open {
    
    opacity: 1;
}

#brand-icon-panel:hover {
    background: var(--glass-bg-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

#brand-icon-panel:focus-within {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), var(--shadow-lg);
}

#brand-icon-panel-inner::-webkit-scrollbar {
    width: 6px;
}

#brand-icon-panel-inner::-webkit-scrollbar-track {
    background: transparent;
}

#brand-icon-panel-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 999px;
}

#brand-icon-panel-inner {
    display: block;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 16px;
}

.brand-icon-panel-content.panel-hide {
    display: none !important;
}

/* Sticky search bar inside icon panel */
#brand-icon-panel .brand-search-wrap {
    position: sticky;
    top: 0;
    background: var(--surface-primary);
    padding: 12px 16px;
    z-index: 2;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* Smooth hover transitions and subtle scale */
#brand-icon-panel .brand-tabs-menu li,
#brand-icon-panel .brand-grid .grid-item,
#brand-icon-panel .brand-apps-menu-item {
    transition: transform var(--motion-duration-base) var(--motion-ease-out), box-shadow var(--motion-duration-base) var(--motion-ease-out), opacity var(--motion-duration-base) var(--motion-ease-out);
}

#brand-icon-panel .brand-tabs-menu li:hover,
#brand-icon-panel .brand-grid .grid-item:hover,
#brand-icon-panel .brand-apps-menu-item:hover {
    transform: scale(1.03);
}

/* ================= CONTENT ================== */

#brand-content {
    width: 100%;
    position: relative;
    z-index: 1;
  /*  overflow: hidden;*/

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

}

@keyframes brandBBox {
    0% { transform: scale(1); opacity: 0.6; }
    60% { transform: scale(1.01); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

#brand .canvas-container .upper-canvas {
    transition: opacity var(--motion-duration-base) var(--motion-ease-out), transform var(--motion-duration-base) var(--motion-ease-out);
}

#brand .canvas-container .upper-canvas.selection-animate {
    animation: brandBBox var(--motion-duration-base) var(--motion-ease-out);
}

#brand .canvas-container {
    z-index: 1;
}

#brand-canvas-img-wrap {
    display: none;
}

#brand-canvas-img {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#brand-canvas-wrap {
    position: relative;
    z-index: 9;
    visibility: hidden;
    transition: transform 240ms ease;
}

#brand-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 99;
    cursor: grab;
}

#brand-canvas-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

#brand-canvas-loader .brand-loader {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* ================= LAYERS ================== */
#brand-right-col {
    position: fixed;
    bottom: 20px;
    right: 20px;
     
    overflow: auto;
    z-index: 7;
   
    padding: 60px 0 0 0;
    display: flex;
    flex-direction: column;
}

.brand-layers-title {
    padding: 15px 10px;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}.brand-layers-title2 {
    padding: 15px 10px;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.brand-layers-title .material-icons {
    font-size: 1.25rem;
    margin-right: 5px;
}.brand-layers-title2 .material-icons {
    font-size: 1.25rem;
    margin-right: 5px;
}

#brand-layers {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
}

#brand-layers li {
    position: relative;
    align-items: center;
    margin: 0;
    padding: 0;
    display: flex;
    font-weight: 700;
    line-height: 46px;
    height: 48px;
    font-size: 1rem;
    justify-content: space-between;
    overflow: hidden;
    transition: color 0.1s linear;
    cursor: move;
}

#brand-layers li .layer-icons {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    z-index: 9;
    width: 80%;
    display: none
}

#brand-layers li .layer-icons a {
    cursor: pointer;
    height: 100%;
    min-width: 0;
    text-align: center;
    width: 25%;
}

#brand-layers li .layer-icons .material-icons {
    font-size: 16px;
    line-height: 46px;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    opacity: 1;
    transition: opacity 0.1s linear;
}

#brand-layers li .layer-icons .material-icons:hover {
    opacity: 0.8;
}

#brand-layers li .layer-name {
    width: 100%;
    padding: 0 5px 0 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem;
}

#brand-layers>li>.material-icons {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
}

#brand-layers>li>.material-icons.layer-settings {
    font-size: 16px;
    width: 20%;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.1s linear;
}

#brand-no-layer {
    padding: 20px;
    font-style: italic;
    font-size: 0.9rem;
}

#brand-no-layer a {
    display: block;
    text-align: right;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 700;
    font-style: normal;
    font-size: 1rem;
}

#brand-no-layer a:hover {
    text-decoration: underline;
}

#brand-layer-delete-wrap {
    margin-top: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    visibility: hidden;
}

#brand-layer-delete-wrap .brand-btn {
    margin-left: 5px;
    height: 34px;
    padding: 0 10px;
}

#brand-layer-delete-wrap .brand-btn .material-icons {
    margin: 0;
    font-size: 13px
}


/* ================= GRID ================== */

.brand-grid {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fill, minmax(min(80px, 100%), 1fr));
    column-gap: 10px;
    row-gap: 10px;
}

.brand-grid.two-column {
    grid-template-columns: repeat(auto-fill, minmax(min(100px, 100%), 1fr));
}

.brand-grid.three-column {
    grid-template-columns: repeat(auto-fill, minmax(min(70px, 100%), 1fr));
}

.brand-grid.four-column {
    grid-template-columns: repeat(auto-fill, minmax(min(50px, 100%), 1fr));
}

.brand-grid.five-column {
    grid-template-columns: repeat(auto-fill, minmax(min(50px, 100%), 1fr));
    column-gap: 5px;
    row-gap: 5px;
}

.brand-grid.pexels-grid.media-library-grid,
.brand-grid.template-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
    min-height: 80px;
}

.brand-frames-grid .grid-item,
.brand-grid .grid-item {
    position: relative;
    cursor: pointer;
}

.brand-frames-grid img,
.brand-grid img {
    vertical-align: bottom;
    width: 100%;
    height: auto;
}

.brand-grid.svg-library-grid,
.brand-grid.media-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100px, 100%), 1fr));
}

.brand-grid .brand-masonry-item-inner {
    margin-bottom: 0;
    display: flex;
    height: 100%;
    align-items: center;
}

.brand-grid .brand-masonry-item {
    height: 100%;
}

.brand-grid .notice {
    grid-column: auto / span 4;
    margin: 0 !important;
}

.template-grid.brand-grid .notice {
    grid-column: auto / span 7;
    margin: 0 !important;
}

.brand-frames-grid .notice {
    margin-bottom: 0 !important;
}

.brand-frame,
.brand-element {
    position: relative;
    height: 100%;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    justify-content: center;
}

.template-favorite,
.brand-frame .frame-favorite,
.brand-element .element-favorite {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 2;
}

.grid-item:hover .template-favorite,
.brand-frame:hover .frame-favorite,
.brand-element:hover .element-favorite {
    visibility: visible;
    opacity: 1;
}

.template-favorite {
    right: 0px;
    top: 0px;
    width: 25px;
    height: 25px;
}

.template-favorite>.brand-btn-simple>.material-icons,
.brand-frame>.frame-favorite>.brand-btn-simple>.material-icons,
.brand-element>.element-favorite>.brand-btn-simple>.material-icons {
    font-size: 18px;
}

.brand-frames-grid .brand-frame {
    margin-top: 10px;
    padding: 0;
}

.brand-frames-grid {
    margin-top: -10px;
}

#brand-frame-favorites .brand-frames-grid {
    margin-top: 0;
}

.grid-icon-item .material-icons {
    font-size: 36px;
    padding: 10px 0;
}

/* ================= ELEMENTS ================== */

#brand-filters.brand-grid img,
#brand-filter-library.brand-grid img,
#brand-filter-library.brand-grid canvas {
    border: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
}

#brand-filters.brand-grid .brand-element,
#brand-filters.brand-grid .brand-element:hover {
    border: none;
}

#brand-filters.brand-grid div label span {
    display: block;
    text-align: center;
    padding: 5px 7px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 0px;
    right: 0px;
    line-height: 1;
    border-top-left-radius: 4px;
}

#brand-filter-library .grid-item.none .material-icons {
    position: absolute;
    top:50%;
    left:50%;
    font-size: 30px;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

#brand-filter-library .grid-item.none img {
    visibility: hidden !important;
}

.brand-element>.material-icons {
    font-size: 26px;
    line-height: 1.4;
}

.brand-shape {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}
.brand-shape:hover { transform: scale(1.02); }

.brand-shape svg {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

#brand-shape-loadmore {
    margin-top: 20px
}

/* ================= APPS ================== */

.brand-apps-menu-item {
    position: relative;
    padding: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}
.brand-apps-menu-item:hover { transform: scale(1.02); }

.brand-apps-menu-item img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.brand-apps-menu-item-desc {
    position: absolute;
    bottom: 15px;
    right: 0;
    font-size: 1rem;
    line-height: 1;
    padding: 8px 12px 8px 8px;
    font-weight: bold;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}

.brand-btn.brand-close-app {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
}

.brand-app-btns {
    display: flex;
    align-items: center
}

.brand-app-btns>* {
    flex: 1;
}

.brand-app-btns>*:first-child {
    margin-right: 5px;
}

.brand-app-btns>*:last-child {
    margin-left: 5px;
}

.brand-app-peview {
    padding: 10px;
    margin-bottom: 20px
}

.brand-app-peview img,
.brand-app-peview svg {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.brand-colorbrewer-item {
    display: flex;
    margin-bottom: 10px;
    cursor: pointer;
}

.brand-colorbrewer-item>div {
    flex: 1;
    height: 22px;
}

.brand-colorbrewer-item.random {
    justify-content: center;
    height: 40px;
    background: #12c2e9;
    background: -webkit-linear-gradient(to right, #f64f59, #c471ed, #12c2e9);
    background: linear-gradient(to right, #f64f59, #c471ed, #12c2e9);
}

.brand-colorbrewer-item.random .material-icons {
    color: #fff;
    font-size: 24px;
    line-height: 39px;
}

#brand-multiavatar-name {
    margin-bottom: 20px;
}
/* ================= tools ================== */

.brand-tools-menu-item {
    position: relative;
    padding: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}
.brand-tools-menu-item:hover { transform: scale(1.02); }

.brand-tools-menu-item img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.brand-tools-menu-item-desc {
    position: absolute;
    bottom: 15px;
    right: 0;
    font-size: 1rem;
    line-height: 1;
    padding: 8px 12px 8px 8px;
    font-weight: bold;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}



.brand-btn.brand-close-tool {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
}



/* ================= elements ================== */

.brand-elements-menu-item {
    position: relative;
    padding: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}
.brand-elements-menu-item:hover { transform: scale(1.02); }

.brand-elements-menu-item img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}



.brand-btn.brand-close-element {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
}





/* ================= frames ================== */

.brand-frames-menu-item {
    position: relative;
    padding: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}
.brand-frames-menu-item:hover { transform: scale(1.02); }

.brand-frames-menu-item img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}



.brand-btn.brand-close-frame {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
}


/* ================= BUTTONS ================== */

.brand-btn-simple {
    border: none !important;
    background: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
}

.brand-btn {
    padding: 8px 12px;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: transform var(--motion-duration-base) var(--motion-ease-out), background-color var(--motion-duration-base) var(--motion-ease-out), color var(--motion-duration-base) var(--motion-ease-out), box-shadow var(--motion-duration-base) var(--motion-ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-btn:hover {
    transform: translateY(-0.5px) scale(1.02);
    box-shadow: 0 6px 16px rgba(15,23,42,0.12);
}
.brand-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 8px rgba(15,23,42,0.12);
}

.brand-btn.btn-full {
    width: 90%;
}

.brand-btn:disabled {
    opacity: 0.7;
}

.brand-btn .material-icons {
    font-size: 0.9rem;
    margin-right: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.btn-full {
    width: 100%;
}

.brand-btn.brand-lg-btn {
    padding: 12px;
}

#text-flip-y .material-icons,
#brand-flip-vertical .material-icons,
#img-flip-vertical .material-icons {
    transform: rotate(90deg);
}

#brand-crop-btns.disabled {
    pointer-events: none !important;
    opacity: 0.5;
}

/* ================= BLOCKS ================== */

.brand-btn-group {
    display: flex;
}

.icon-group .brand-btn {
    padding-top:3px;
    padding-right:  3px;
    padding-left: 3px;
    padding-bottom:3px;
    flex: 1;
    border-radius: 0;
}


.icon-group   {
    border-radius: 10px; overflow: hidden; border: none; background-color: none!important; ;
}
.icon-group .brand-btn:last-child {
    border: none !important;
}

.icon-group .brand-btn .material-icons {
    font-size: 16px;

    margin: 0;
    margin-top: 7px;
}

.brand-aspect-ratio {
    display: flex;
    align-items: center;
}

.brand-resize-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.brand-aspect-ratio>.material-icons,
.brand-resize-wrap>.material-icons {
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.brand-aspect-ratio .brand-btn,
.brand-resize-wrap .brand-btn {
    margin-left: 10px;
    padding: 0;
    height: 34px;
    min-width: 34px;
}

.brand-aspect-ratio .brand-btn .material-icons,
.brand-resize-wrap .brand-btn .material-icons {
    font-size: 1rem;
    margin: 0;
}

.brand-btn-set {
    display: flex;
    align-items: center;
}

.brand-btn-set .brand-btn:first-child {
    width: 100%
}

.brand-btn-set .brand-btn:last-child .material-icons {
    margin: 0;
    font-size: 16px;
}

.brand-btn-set .brand-btn:last-child {
    margin-left: 5px;
    min-width: 40px;
}

.brand-select-btn-set {
    display: flex;
    align-items: stretch;
}

.brand-select-btn-set .brand-btn {
    margin-left: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-select-btn-set .brand-btn .material-icons {
    margin: 0;
    font-size: 16px;
}

.brand-block-50 {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px
}

.brand-block-50:last-child {
    margin: 0
}

.brand-block-50>* {
    width: 50%;
}

.brand-block-50>*:first-child {
    margin-right: 5px;
}

.brand-block-50>*:last-child {
    margin-left: 5px;
}

.brand-block-50 .brand-btn {
    height: 34px;
}

.brand-block-33 {
    display: flex;
    align-items: flex-end;
}

.brand-block-33>div {
    flex: 1
}

.brand-block-33>div:first-child {
    margin-right: 10px;
}

.brand-block-33>div:last-child {
    margin-left: 10px;
}

.brand-block-50 label,
.brand-block-33 label {
    font-weight: 700;
    margin: 0 0 5px 0 !important;
    display: block;
}

/* ================= TOOLTIP ================== */

.tooltip {
    position: relative;
}

.tooltip:after {
    content: attr(data-title);
    font-size: 0.9rem;
    position: absolute;
    padding: 7px 10px;
    bottom: -10px;
    left: 50%;
    white-space: nowrap;
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
    transform: translateX(-50%) translateY(100%);
    text-transform: none;
    font-weight: 700;
    border-radius: 2px;
    line-height: 1.2;
}

.tooltip:before {
    border: solid;
    border-width: 0 6px 6px 6px;
    bottom: -10px;
    content: "";
    left: 50%;
    position: absolute;
    z-index: 99999;
    visibility: hidden;
    transform: translateX(-50%);
}

.tooltip:hover:after,
.tooltip:hover:before {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

.tooltip.tooltip-top:after {
    top: -10px;
    bottom: auto;
    transform: translateX(-50%) translateY(-100%);
}

.tooltip.tooltip-top:before {
    border-width: 6px 6px 0 6px;
    top: -10px;
    bottom: auto;
}

/* ================= PAGINATION ================== */

.brand-pagination ul {
    list-style: none;
    margin: 30px 0 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.brand-pagination ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    padding: 0;
    font-size: 1rem;
    line-height: 30px;
    min-width: 30px;
    font-weight: 700;
    border-radius: 4px;
}

.brand-pagination ul li.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.brand-pagination ul li .material-icons {
    font-size: 1rem;
    line-height: 30px;
    margin: 0;
    padding: 0;
    display: block;
}

.brand-pagination ul li a {
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center
}

.brand-accordion .brand-pagination ul {
    margin: 20px 0 0 0;
    justify-content: center;
}

.brand-accordion .brand-pagination ul li {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
}

.brand-accordion .brand-pagination ul li .material-icons {
    font-size: 0.9rem;
    line-height: 1;
}

.brand-accordion .brand-pagination ul li a,
.brand-accordion .brand-pagination ul li>span {
    padding: 7px;
}

/* ================= ACCORDION ================== */

ul.brand-accordion {
    margin: 0 0 25px 0;
    padding: 0;
    list-style: none;
    border-bottom: none;
}

ul.brand-accordion>li {
    margin: 0 0 10px 0;
    padding: 0;
    border-radius: 4px;
}

ul.brand-accordion>li>div {
    padding: 20px;
    display: none;
}

ul.brand-accordion>li.opened>div {
    display: block;
}

ul.brand-accordion>li>a {
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--motion-duration-base) var(--motion-ease-out);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    padding: 8px 5px 8px 10px;
    cursor: pointer;
}

ul.brand-accordion>li>a>.arrow {
    transform: rotate(0deg);
    font-size: 20px;
    transition: transform var(--motion-duration-base) var(--motion-ease-out);
}

ul.brand-accordion>li.opened>a>.arrow {
    transform: rotate(180deg);
}

ul.brand-accordion>li>a>.arrow {
    margin-left: auto;
}

.material-icons.accordion-icon {
    font-size: 1.1rem;
    margin-right: 5px;
}

ul.brand-accordion>li>a>.data-count {
    font-family: 'Roboto', sans-serif;
    line-height: 1.1;
    font-size: 0.8rem;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: auto;
    margin-right: 5px;
}

#brand-filters-li > a > .arrow,
#brand-quick-filters-li > a > .arrow,
#brand-frames ul.brand-accordion>li>a>.arrow,
#brand-elements ul.brand-accordion>li>a>.arrow {
    margin-left: 0;
}

.material-icons.my-favorites-star {
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

/* ================= RANGESLIDER ================== */

.brand-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    outline: none;
    opacity: 1;
}

.brand-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: none;
    box-shadow: none;
    border-radius: 100%;
}

.brand-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    cursor: pointer;
    border: none;
    box-shadow: none;
    border-radius: 100%;
}

/* ================= COUNTER ================== */

.brand-counter {
    /*display: flex;
    align-items: stretch;
    max-width: 120px;
    margin-left: auto;*/
}

.brand-counter .brand-btn,
.brand-counter .brand-btn:hover,
.brand-counter .brand-btn:focus {
    padding: 0;
    border-radius: 0;
    min-width: 30px;
}

.brand-counter .brand-btn .material-icons {
    margin: 0;
}

.brand-counter .brand-form-field {
    text-align: center;
}

.brand-control-wrap.label-block .brand-counter {
    max-width: 100%;
}

/* ================= CONTROLS ================== */

.brand-control-wrap {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: left;
}
.brand-control-wrap-half {
    flex-basis: 50%;
    box-sizing: border-box;
    padding-bottom: 15px !important;
    padding-right: 15px !important;
}

/* First column only */
.brand-control-wrap-half:nth-child(1) {
    padding-right: 30px !important;
}

/* Second column only */
.brand-control-wrap-half:nth-child(2) {
    padding-right: 0 !important;
}


.brand-control-wrap.hidden {
    display: none;
}

.brand-accordion .conditional-settings .brand-control-wrap,
.brand-accordion .conditional-settings .brand-control-wrap:first-child,
.brand-control-wrap {
    margin-top: 15px;
}

#brand-qrcode-settings .brand-control-wrap:first-child,
#brand-settings .brand-control-wrap:first-child,
.brand-accordion .brand-control-wrap:first-child {
    margin-top: 0;
}

.brand-control-wrap.nomargin {
    margin-bottom: 0;
}

.brand-control-wrap.label-block {
    flex-direction: column;
}


.brand-control,. brand-select {
    width: 50%;

    padding-right: 0px!important;
}


.brand-control-label  {
    width: 50%;


    padding-top:15px;
    padding-right: 10px;
    padding-left: 0;
    padding-bottom:10px;
    font-size: 1rem;
    /* font-weight: 700;*/
    display: flex;
    align-items: center;

}

.brand-control-wrap.label-block .brand-control-label {
    padding: 0;
}

.brand-control-label span {
   font-family: 'Roboto', sans-serif;
    margin-left: auto;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #cccccc;
}

/* Ensure numeric spans in slider labels are right-aligned in image and icon panels */
#brand-image .brand-control-label.slider-label,
#brand-image-settings .brand-control-label.slider-label,
#brand-icon-panel .brand-control-label.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#brand-image .brand-control-label.slider-label span,
#brand-image-settings .brand-control-label.slider-label span,
#brand-icon-panel .brand-control-label.slider-label span {
    font-variant-numeric: tabular-nums;
    width: 10px;
    min-width: 10px;
    text-align: right;
}

.brand-control-wrap.label-block .brand-control-label,
.brand-control-wrap.label-block .brand-control {
    width: 100%;
    min-width: 100%;
}



.slider-label {
    width: 95%!important;

}


.brand-control-wrap.label-block .brand-control-label {
    margin-bottom: 5px;
}

.brand-control-wrap.label-block .brand-control-label.slider-label {
    margin-bottom: 0;
}

.brand-control-desc {
    font-size: 0.9rem;
    font-style: italic;
    padding-top: 5px;
}

#brand-draw-settings,
#eraser-width-wrap {
    display: none;
}

.brand-form-field, .brand-select {
/*    font-family: 'Roboto', sans-serif;*/
    width: 100%!important;
    padding: 7px;
    outline: none;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.3;
    margin-right: 10px;
    width: 350px;
}

.brand-form-field:disabled {
    opacity: 0.7;
}

.brand-hidden-file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.brand-hidden-file+label * {
    pointer-events: none;
}

.brand-search-box {
    display: flex;
}

.brand-search-box button {
    margin-left: 5px;
}

.brand-search-box button .material-icons {
    margin: 0;
    font-size: 16px;
}

.brand-search-wrap {
    position: relative;
    display: flex;
    margin-bottom: 25px;
}

.brand-search-wrap .material-icons {
    position: absolute;
    top: 12px;
    right: 10px;
    line-height: 1;
    font-size: 18px;
    z-index: 9;
}

.brand-search-wrap .brand-form-field {
    padding: 11px 40px 11px 11px;
    border-radius: 4px;
}

#brand-element-search-icon.cancel,
#brand-iconfinder-search-icon.cancel,
#brand-icon-search-icon.cancel {
    cursor: pointer;
}

.brand-sub-settings {
    margin-top: 25px;
    padding-top: 10px;
}

.brand-accordion .brand-sub-settings {
    margin-top: 20px;
    padding-top: 20px;
}

.brand-sub-settings.nomargin {
    margin-top: 0px;
    padding-top: 0px;
    border: none;
}

.sp-colorize-container {
    width: 40px !important;
}

.brand-submit-btns {
    display: flex;
}

.brand-submit-btns .brand-btn {
    width: 50%;
}

.brand-submit-btns .brand-btn:first-child {
    margin-right: 5px;
}

.brand-submit-btns .brand-btn:last-child {
    margin-left: 5px;
}

.brand-control-group {
    display: flex;
    align-items: flex-end;
}

.brand-control-group>div {
    width: 25%;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
}

.brand-control-group>div:last-child {
    margin-right: 0;
}

.brand-control-group .brand-btn {
    height: 34px;
    width: 100%;
}

.brand-control-group label {
    padding: 0 0 5px 0;
    font-weight: 700
}

#brand-preferences {
    margin-bottom: 20px;
}

#qrcode-preview svg {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    vertical-align: bottom;
}

#brand-barcode-wrap {
    display: flex;
    justify-content: center;
    padding: 10px;
}

#brand-barcode-wrap svg {
    max-width: 100%;
}

/* ================= COLORPICKER ================== */

.sp-original-input-container {
    display: flex;
    margin-left: auto !important;
    height: 34px;
}

.brand-colorpicker,
.brand-colorpicker:focus,
.brand-form-field {
    width: 100%;
    padding: 7px;
    outline: none;
    box-shadow: none;
    color: #aaa;
    font-size: 1rem;
}

.sp-clear-display {
    background-image: none;
}

.sp-clear-enabled .sp-clear {
    top: 0;
}

.sp-clear-display:before {
    font-family: 'Material Icons';
    content: 'block';
    line-height: 14px;
    font-size: 14px;
}

/* ================= SELECT ================== */

.brand-select {
    border-radius: 7px;
    cursor: pointer;
height: 27px;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 5px 30px 5px 5px;
    outline: none;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-select:disabled {
    opacity: 0.7;
}

.brand-select:focus {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 0 0 rgba(50, 151, 211, 0.5);
}

.select2-container {
    z-index: 99999;
}

.select2-container--dark .select2-selection--single {
    border: 0px;
    height: 27px;
}

.select2-container--dark .select2-selection--single .select2-selection__rendered {
    line-height: 22px;
}

.select2-container--dark .select2-selection--single .select2-selection__arrow {
    height: 21px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
}

.select2-container--dark .select2-selection--single .select2-selection__arrow b {
    top: 40%;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    width: 0;
}

.select2-container--dark .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
}

.select2-container--dark .select2-selection--single {
    border-radius: 0px;
}

.select2-container--dark.select2-container--open .select2-selection__arrow b {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
}

.select2-container--dark span.select2-search input {
    height: 23px !important;
}

.select2-container--dark .select2-search {
    margin-top: 3px;
}

.select2-container--dark .select2-search input {
    height: 29px;
    outline: none;
}

.select2-container--dark .select2-search--dropdown {
    padding: 5px;
}

.select2-container--dark .select2-results__option {
    padding: 5px;
    line-height: 1.2;
    border-radius: 2px;
}

.select2-container--dark .select2-item {
    display: flex;
    align-items: center;
}

.select2-container--dark .material-icons {
    font-size: 1rem;
    margin-right: 5px;
}

.select2-results>.select2-results__options {
    max-height: 250px;
    overflow: auto;
}


.styled-compact


{

 /* transform: scale(0.8); transform-origin: bottom left;overflow-x: hidden;
    overflow-y: auto;*/

}

/* ================= TABS ================== */
.brand-tabs {
    position: relative;
}

.brand-tabs .brand-tab {
    display: none;
}

.brand-tabs .brand-tab.active {
    display: block;
}

.brand-tabs-menu {
    margin: 0 0 16px 0;
   
    padding: 8px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
   
}

.brand-tabs-menu li {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: .75rem;
    padding: 10px 16px;
    line-height: 1;
    border-radius: 999px;
    cursor: pointer;
    color: #0F172A;
    background: #F8FAFC;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, color .15s ease, transform .12s ease;
     margin-bottom: 10px; 
}

.brand-tabs-menu li .material-icons {
    font-size: 1rem;
    margin-left: 15px;
    color: inherit;
}

.brand-tabs-menu li:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.brand-tabs-menu li:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-tabs-menu li:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-tabs-menu li.active,
.brand-tabs-menu li[aria-selected="true"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.brand-tabs-menu li.active .material-icons,
.brand-tabs-menu li[aria-selected="true"] .material-icons {
    color: #1faef6;
}
/* ================= TOGGLE ================== */

.brand-toggle {
    cursor: pointer;
    display: inline-block;
}

.brand-toggle-switch {
    display: inline-block;
    border-radius: 20px;
    width: 40px;
    height: 20px;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;
}

.brand-toggle-switch:before,
.brand-toggle-switch:after {
    content: "";
}

.brand-toggle-switch:before {
    display: block;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.25s;
}

.brand-toggle-checkbox:checked+.brand-toggle-switch:before {
  /*  left: 22px;*/
}

.brand-toggle-checkbox {
    position: absolute;
    visibility: hidden;
}

/* ================= CHECKBOX ================== */

.brand-checkbox {
    display: block;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.brand-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.brand-checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    border-radius: 4px;
}

.brand-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.brand-checkbox input:checked~.brand-checkmark:after {
    display: block;
}

.brand-checkbox .brand-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.brand-checkbox-control,
.brand-toggle-control {
    display: flex;
    justify-content: flex-end;
}

/* ================= CUSTOM CURSOR ================== */

.tm-cursor-none,
.tm-cursor-none * {
    cursor: none !important;
}

.tm-cursor {
    pointer-events: none;
    position: fixed;
    z-index: 9999999999;
    top: 0;
    left: 0;
    display: block;
    opacity: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: opacity 300ms linear, transform 300ms linear, background-color 300ms linear, border 300ms linear, border-radius 300ms linear;
    visibility: hidden;
}

.tm-cursor.moving {
    opacity: 1;
}

.tm-cursor:before {
    pointer-events: none;
    content: ' ';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999999999;
    transition: opacity 300ms linear, transform 300ms linear, background-color 300ms linear, border 300ms linear, border-radius 300ms linear;
}

.tm-pointer-simple.tm-cursor {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 39, 112, 0.2);
}

/* ================= MODAL ================== */

/* ================= MODAL ================== */
.brand-modal-layers {
    position: fixed;
    top: 200px;

    right: 0;
    bottom: 0;
    width: 310px;
    height:100%;

    max-height:400px;
    margin: 0;
    z-index: 9999;
    display: none;

}

.brand-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height:100%;
    margin: 0;
    z-index: 9999;
    display: none;

}

.brand-modal-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    height: 100%;
    padding: 5%;
    overflow: auto;
}

.brand-modal-inner {
    display: flex;
    flex-direction: column;
    width: 100%;

    max-width: 800px;
}

.brand-modal-inner.large {
    max-width: 1000px;
}

.brand-modal-inner>.brand-tabs>.brand-tabs-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    border-bottom: none;
    padding: 0px;
    overflow: hidden;
}

.brand-modal-inner>.brand-tabs>.brand-tabs-menu>li {

    padding: 15px;
    padding-right: 15px;
    border-radius: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-top: -2px;
    margin-right: 4px;
    margin-left: 0;
    margin-bottom: 0;
    border-top-left-radius:10px;
    border-top-right-radius: 10px;
    line-height: 1;



}

.brand-modal-inner>.brand-tabs>.brand-tab,
.brand-modal-bg {
    padding: 40px;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}



.brand-modal-inner label {
    margin: 0 5px 0 0;
}

#brand-modal-onstart,
.brand-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    line-height: 36px;
    height: 36px;
    width: 36px;
    border-radius: 100%;
    text-align: center;
    z-index: 99999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.brand-modal-layers-close {
    position: fixed;
    top: 230px;
    right: 30px;
    cursor: pointer;
    line-height: 36px;
    height: 36px;
    width: 36px;
    border-radius: 100%;
    text-align: center;
    z-index: 99999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}


#brand-modal-onstart .material-icons,
.brand-modal-close .material-icons {
    font-size: 20px;
    line-height: 36px;
}



.brand-modal-layers-close .material-icons {
    font-size: 20px;
    line-height: 36px;
}
.brand-modal-compact {
    position: relative;
    bottom:10px;
    left: 100px;






    margin: 0px;
    z-index: 999999999999999;
    display: none;
    overflow: hidden;
    padding: 15px;

    background: #fff;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.20), 0 15px 12px rgba(0, 0, 0, 0.12);

    width: 310px;
    max-height: 350px;
    height: 350px;/*height:1000px; overflow-y: auto;*/
  overflow-y: auto;
    border-radius: 10px;
}

.brand-modal-compact-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height:auto;
    padding: 0px;


}

.brand-modal-compact-inner {
    display: flex;
    flex-direction: column;

    width: 310px;

    max-width: 310px;

}

.brand-modal-compact-inner.large {
    max-width:310px;
}

.brand-modal-compact-inner>.brand-tabs>.brand-tabs-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    border-bottom: none;
    padding: 10px;
    overflow: hidden;
}

.brand-modal-compact-inner>.brand-tabs>.brand-tabs-menu>li {

    padding: 20px;
    border-radius:0;
    margin: 0 4px 0 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    line-height: 1;



}

.brand-modal-compact-inner>.brand-tabs>.brand-tab,
.brand-modal-compact-bg {
   /* padding:15px;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);*/
}

.brand-modal-compact-inner label {
    margin: 0 5px 0 0;
}

#brand-modal-compact-onstart,
.brand-modal-compact-close {
    display: none;
   /* position: relative;
    left: 255px;
    top:0px;

    cursor: pointer;
    line-height: 36px;
    height: 36px;
    width: 36px;
    border-radius: 100%;
    text-align: center;
    z-index: 9999999999;
    box-shadow: 0 0 20px #eee;
    background-image: linear-gradient(to right, #666666 0%, #dfdfdf  51%, #eeeeee  100%);
    transition: 0.5s;*/
}

.brand-modal-compact-close:hover {
    /*background-position: right center; !* change the direction of the change here *!
    color: #fff;
    text-decoration: none;*/
}



#brand-modal-compact-onstart .material-icons,
.brand-modal-compact-close .material-icons {
    font-size: 20px;
    line-height: 36px;
}





#modal-select-img .brand-btn-set button,
#modal-select-img .brand-btn-set .brand-file-field {
    width: 50%;
}

#modal-select-img .brand-btn-set .material-icons {
    margin-right: 5px;
}

#modal-select-img label {
    margin: 0;
}

#modal-empty-canvas .brand-resize-wrap .brand-btn {
    min-width: 120px;
}

#modal-empty-canvas .brand-resize-wrap {
    margin: 0;
}

.brand-keep {
    display: flex;
    padding: 20px 0 0 20px;
    font-style: italic;
    align-items: flex-start;
}

.brand-keep>div {
    margin-left: 5px;
}

#brand-download-as-json,
#brand-save-as-json {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #303030;
}

.brand-select-btn-block {
    display: flex;
}

.brand-select-btn-block>div:first-child {
    width: 75%;
    padding-right: 20px;
    margin-right: 20px;
    border-right: 1px dashed #303030
}

.brand-select-btn-block>div:last-child {
    width: 25%;
}

.brand-select-btn-block .brand-btn-set .brand-btn:last-child .material-icons {
    font-size: 0.9rem
}

/* ================= TEMPLATE LIBRARY ================== */

.brand-templates-menu-wrap {
    display: flex;
    margin-bottom: 30px;
    align-items: stretch;
    margin-top: -50px;
    max-width: 450px;
    margin-left: auto;
    z-index: 2;
}

.brand-templates-menu-wrap>* {
    margin-right: 10px;
}

.brand-templates-menu-wrap>*:last-child {
    margin-right: 0;
}

.brand-templates-menu-wrap button .material-icons {
    margin: 0;
    font-size: 16px;
}

.brand-template-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.brand-template-list li {
    display: flex;
    align-items: center;
    padding: 12px;
}

.brand-template-list li.active {
    pointer-events: none;
}

.brand-template-list li.active button {
    opacity: 0.5;
}

.brand-template-list li:last-child {
    border: none !important;
}

.brand-template-list li div {
    flex: 1;
}

.brand-template-list li div:first-child {
    font-weight: 700;
    font-size: 1rem
}

.brand-template-list li div:last-child {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.brand-template-list li div:last-child button {
    margin-left: 10px;
    font-size: 0.8rem;
    padding: 6px 10px;
}

.brand-template-list .notice {
    margin: 20px;
}

.brand-layers-list li.active {
    pointer-events: none;
}

.brand-layers-list li.active button {
    opacity: 0.5;
}

.brand-layers-list .notice {
    margin: 20px;
}




#brand-history-list li .info {
    display: flex;
    align-items: center;
}

#brand-history-list li .info .material-icons {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
}

#brand-history-list li .info span.time {
    font-size: 0.9rem;
    line-height: 1;
    padding: 4px;
    margin: 0 10px;
    border-radius: 2px;
}

.brand-history-title {
    display: flex;
    justify-content: space-between;
}

.brand-history-title .brand-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
}

.brand-history-count {
    margin: 10px 0 0 0;
    font-style: italic;
    display: block;
    text-align: right;
}

#brand-template-preview {
    position: absolute;
    z-index: 99999;
    height: auto;
    min-width: 240px;
    min-height: 100px;
    overflow: hidden;
    border: 1px solid #303030;
    background-color: #121212;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

#brand-template-preview img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

#brand-template-preview .brand-img-wrap {
    padding: 5px;
}

#brand-template-preview-title {
    color: #fff;
    padding: 5px 10px 10px 10px;
    line-height: 1.3;
    font-weight: bold;
}

/* ================= MEDIA LIBRARY ================== */

#brand-library-all-menu,
#brand-library-my-menu,
#brand-my-templates-menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
}

#brand-library-all-menu>div,
#brand-library-my-menu>div,
#brand-my-templates-menu>div {
    display: flex;
}

#brand-my-templates-menu {
    margin-top: -50px;
    justify-content: flex-end;
    z-index: 2;
}

#brand-all-templates-noimg,
#brand-library-all-noimg,
#brand-library-my-noimg {
    margin: 0;
}


#brand-overlay-img-media-library,
#brand-overlay-delete {
    margin-top: 10px;
}

.media-library-grid .brand-img-wrap {
    min-height: 60px;
}

/* ================= SVG LIBRARY ================== */

#brand-svg-library-all-menu,
#brand-svg-library-my-menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
}

#brand-svg-library-all-menu>div,
#brand-svg-library-my-menu>div {
    display: flex;
}

#brand-svg-library-all-noimg,
#brand-svg-library-my-noimg {
    margin: 0;
}

#brand-svg-media-library {
    margin-top: 10px;
}

#brand-svg-library-all {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}
@media only screen and (max-width: 575px) {
    #brand-svg-library-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#brand-svg-library-all-menu { gap: 10px; }
#brand-svg-library-all-menu .brand-file-field { display: flex; align-items: center; }
#brand-svg-library-all-menu .brand-file-field .brand-btn { height: 30px; padding: 0 12px; border-radius: 8px; }
#brand-svg-library-all-menu .brand-file-field .brand-add-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #FFFFFF; border: none; box-shadow: 0 6px 16px rgba(102,126,234,.20); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
#brand-svg-library-all-menu .brand-file-field .brand-add-btn .material-icons { font-size: 18px; color: #FFFFFF; }
#brand-svg-library-all-menu .brand-file-field .brand-add-btn:hover { box-shadow: 0 8px 20px rgba(102,126,234,.28); transform: translateY(-1px); }
#brand-svg-library-all-menu .brand-file-field .brand-add-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(102,126,234,.18); }
#brand-svg-library-all-menu .brand-file-field .brand-add-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(102,126,234,.35); }

#brand-svg-library-all-menu .brand-search-box { display: flex; align-items: center; gap: 8px; }
#brand-svg-library-all-menu .brand-search-box { flex: 1; min-width: 260px; }
#brand-svg-library-all-menu .brand-search-box .brand-form-field { height: 30px; padding: 6px 32px 6px 10px; font-size: .875rem; border-radius: 6px; background: #FFFFFF; border: 1px solid rgba(148,163,184,.35); color: #0F172A; box-shadow: none; outline: none; width: 100%; transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; box-sizing: border-box; }
#brand-svg-library-all-menu .brand-search-box .brand-form-field::placeholder { color: #64748B; }
#brand-svg-library-all-menu .brand-search-box .brand-form-field:focus { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102,126,234,.15); }
#brand-svg-library-all-menu .brand-search-box .brand-btn { height: 30px; padding: 0 12px; border-radius: 8px; background: transparent; border: 1px solid rgba(148,163,184,.35); color: #0F172A; box-shadow: none; transition: background .12s ease, border-color .12s ease; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; }
#brand-svg-library-all-menu .brand-search-box .brand-btn:hover { background: #F8FAFC; border-color: rgba(148,163,184,.55); }
#brand-svg-library-all-menu .brand-search-box .brand-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(102,126,234,.15); }
#brand-svg-library-all-menu .brand-search-box button .material-icons { font-size: 18px; color: inherit; }

/* Inside tabs minimalist underline style */
.inside-tabs-menu { margin: 0 0 16px 0; padding: 8px; list-style: none; display: flex; align-items: center; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inside-tabs-menu li { position: relative; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter','SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 500; font-size: .75rem; padding: 10px 12px 0; line-height: 1; border: none; border-radius: 0; cursor: pointer; color: #334155; background: transparent; box-shadow: none; margin-bottom: 0; border-bottom: 2px solid rgba(148,163,184,.45); }
.inside-tabs-menu li:hover { background: transparent; box-shadow: none; transform: none; border-bottom-color: rgba(148,163,184,.8); }
.inside-tabs-menu li:focus-visible { outline: none; box-shadow: none; }
.inside-tabs-menu li:active { transform: none; box-shadow: none; }
.inside-tabs-menu li.active, .inside-tabs-menu li[aria-selected="true"] { background: transparent; color: #0F172A; border-bottom-color: #667eea; }
.inside-tabs-menu li .material-icons { font-size: 1rem; margin-right: 8px; color: inherit; }

#brand-iconfinder-search .material-icons {
    font-size: 18px;
}

#brand-iconfinder .brand-search-box button {
    margin-left: 10px;
}

#brand-iconfinder .brand-img-wrap {
    min-height: 50px;
}

#brand-iconfinder-grid .brand-element {
    background-size: 15px 15px;
    border: none !important;
    transition: all var(--motion-duration-base) var(--motion-ease-out);
}

#brand-iconfinder-grid .brand-element:hover {
    padding: 2px;
}

/* ================= PEXELS ================== */

#pexels-menu {
    display: flex;
    margin-bottom: 30px;
}

#pexels-menu>div {
    flex: 1;
    width: 50%;
}

#pexels-search-options {
    display: flex;
}

#pexels-search-options select {
    margin-right: 10px
}

#brand-pexels-search {
    margin-left: 10px;
}

a.pexels-url {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 9;
    cursor: pointer;
    line-height: 22px;
    width: 22px;
    height: 22px;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    text-decoration: none;
}

a.pexels-url .material-icons {
    font-size: 22px;
    line-height: 22px;
}

.pexels-grid .brand-img-wrap {
    min-height: 60px;
}

.pexels-grid {
    margin-top: 10px
}

#pexels-loadmore {
    margin-top: 30px;
    width: 100%
}

#pexels-menu,
#pexels-output {
    transition: opacity var(--motion-duration-base) var(--motion-ease-out);
}

#pexels-credit {
    margin-top: 20px;
    display: inline-block;
    font-style: italic;
    text-decoration: none;
    line-height: 1;
}

#pexels-credit:hover {
    text-decoration: underline;
}

/* ================= PIXABAY ================== */

#pixabay-menu {
    display: flex;
    margin-bottom: 30px;
}

#pixabay-menu .brand-search-box {
    flex: 1;
}

#pixabay-search-options {
    display: flex;
    flex: 2;
}

#pixabay-search-options select {
    margin-right: 10px
}

#brand-pixabay-search {
    margin-left: 10px;
}

a.pixabay-url {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 9;
    cursor: pointer;
    line-height: 22px;
    width: 22px;
    height: 22px;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    text-decoration: none;
}

a.pixabay-url .material-icons {
    font-size: 22px;
    line-height: 22px;
}

.pixabay-grid .brand-img-wrap {
    min-height: 60px;
}

.pixabay-grid {
    margin-top: 10px
}

#pixabay-loadmore {
    margin-top: 30px;
    width: 100%
}

#pixabay-menu,
#pixabay-output {
    transition: opacity var(--motion-duration-base) var(--motion-ease-out);
}

#pixabay-credit {
    margin-top: 20px;
    display: inline-block;
    font-style: italic;
    text-decoration: none;
    line-height: 1;
}

#pixabay-credit:hover {
    text-decoration: underline;
}

.brand-grid.pixabay-grid.media-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
    min-height: 80px;
}

.brand-grid.pixabay-grid.media-library-grid .brand-masonry-item-inner {
    display: flex;
    justify-content: center;
    height: 100px;
    overflow: hidden;
}




/* ================= PEXELS ================== */

#bg-pexels-menu {
    display: flex;
    margin-bottom: 30px;
}

#bg-pexels-menu>div {
    flex: 1;
    width: 50%;
}

#bg-pexels-search-options {
    display: flex;
}

#bg-pexels-search-options select {
    margin-right: 10px
}

#brand-pexels-search {
    margin-left: 10px;
}

a.pexels-url {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 9;
    cursor: pointer;
    line-height: 22px;
    width: 22px;
    height: 22px;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    text-decoration: none;
}

a.pexels-url .material-icons {
    font-size: 22px;
    line-height: 22px;
}

.pexels-grid .brand-img-wrap {
    min-height: 60px;
}

.pexels-grid {
    margin-top: 10px
}

#bg-pexels-loadmore {
    margin-top: 30px;
    width: 100%
}

#bg-pexels-menu,
#bg-pexels-output {
    transition: opacity var(--motion-duration-base) var(--motion-ease-out);
}

/* ================= PIXABAY ================== */

#bg-pixabay-menu {
    display: flex;
    margin-bottom: 30px;
}

#bg-pixabay-menu .brand-search-box {
    flex: 1;
}

#bg-pixabay-search-options {
    display: flex;
    flex: 2;
}

#bg-pixabay-search-options select {
    margin-right: 10px
}

#brand-pixabay-search {
    margin-left: 10px;
}

a.pixabay-url {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 9;
    cursor: pointer;
    line-height: 22px;
    width: 22px;
    height: 22px;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    text-decoration: none;
}

a.pixabay-url .material-icons {
    font-size: 22px;
    line-height: 22px;
}

.pixabay-grid .brand-img-wrap {
    min-height: 60px;
}

.pixabay-grid {
    margin-top: 10px
}

#bg-pixabay-loadmore {
    margin-top: 30px;
    width: 100%
}

#bg-pixabay-menu,
#bg-pixabay-output {
    transition: opacity var(--motion-duration-base) var(--motion-ease-out);
}

.brand-grid.pixabay-grid.media-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
    min-height: 80px;
}

.brand-grid.pixabay-grid.media-library-grid .brand-masonry-item-inner {
    display: flex;
    justify-content: center;
    height: 100px;
    overflow: hidden;
}

/* ================= MASONRY ================== */

.brand-masonry {
    column-gap: 15px;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.brand-masonry.six-column {
    column-count: 6;
}

.brand-masonry.five-column {
    column-count: 5;
}

.brand-masonry.four-column {
    column-count: 4;
}

.brand-masonry.three-column {
    column-count: 3;
}

.brand-masonry.two-column {
    column-count: 2;
}

.brand-masonry.one-column {
    column-count: 1;
}

.brand-masonry-item {
    position: relative;
    break-inside: avoid;
    margin: 0;
    cursor: pointer;
}

.brand-masonry-item img {
    max-width: 100%;
    width: 100%;
}

.brand-masonry-item .favorite {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    padding: 0 0 4px 4px;
}

.brand-masonry-item:hover .favorite {
    display: block;
}

.brand-masonry-item .favorite .material-icons {
    font-size: 18px
}

.brand-masonry-item-inner {
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.grid-item canvas {
    width:100%;
    height:auto;
    display: inline-block;
    vertical-align: bottom;
}

.grid-item:hover .brand-masonry-item-inner,
.brand-masonry-item-inner:hover {
    border-color: #fff;
}

.brand-masonry-item-desc {
    width: 100%;
    display: none;
    line-height: 1.1;
    padding: 8px 4px 4px 4px;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 0;
}

.brand-masonry-item-inner:hover .brand-masonry-item-desc {
    display: block;
}

.brand-svg-library-delete,
.brand-library-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 9;
    cursor: pointer;
    line-height: 20px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    text-align: center;
}

.brand-svg-library-delete .material-icons,
.brand-library-delete .material-icons {
    font-size: 18px;
    line-height: 20px;
}

#brand-svg-library-my .notice,
#brand-library-my .notice{
  grid-column: auto / span 6;
  margin:0
}

#brand-library-my .brand-masonry-item-inner,
#brand-svg-library-my .brand-masonry-item-inner {
    display: flex;
    justify-content: center;
    height: 100px;
    overflow: hidden;
}

/* ================= FRONT-END EDITOR ================== */

#brand.frontend #modal-select-img .brand-btn-set .brand-file-field {
    width: 100%;
}

#brand.frontend .frame-favorite,
#brand.frontend .element-favorite,
#brand.frontend .template-favorite {
    display: none !important;
}

/* ================= MEDIA QUERIES ================== */

@media only screen and (max-width: 1200px) {
    #brand-body {
        /*padding: 60px 200px 0 315px;*/
        padding: 0px !important;
    }



    #brand-icon-panel {
      /*  width: 315px;
        max-width: 100%;*/
    }

    #brand-icon-panel-inner {
        padding: 15px;
    }

    #brand-crop-btns {
        flex-direction: row;
    }

    .brand-control-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-control-wrap .brand-control,
    .brand-control-wrap .brand-control-label {
        width: 100%;
        min-width: 100%;
    }

    .brand-control-wrap .brand-control-label {
        margin-bottom: 5px;
    }

    .brand-checkbox-control,
    .brand-toggle-control {
        justify-content: flex-start;
    }

    /* #brand-toggle-left {
        left: 325px;
        top: 300px;
    } */
    #brand-toggle-left {
        left: 307px;
        bottom:5px;
    }
    .brand-modal-compact {

        left: 10px;
        bottom: 120px;
        max-width: 100%;
    }

    #brand-adjust ul.brand-accordion > li > a > .data-count {
        display: none;
    }

    #brand-filters-li > a > .arrow,#brand-quick-filters-li > a > .arrow {
        margin-left: auto !important;
    }
}

@media only screen and (max-width: 800px) {
    #brand-body {
        /*padding: 0 0 0 75px !important;*/
        padding: 0 0 0 0 !important;
    }

    .brand-content-bar,
    body.layers-closed .brand-content-bar {
        right: 20px;
    }

    .brand-templates-menu {
        width: 100%;
    }

    .brand-templates-menu-wrap {
        margin-top: 0;
        max-width: 100%;
    }

    .brand-select-btn-block {
        flex-direction: column;
    }

    .brand-select-btn-block>div,
    .brand-select-btn-block>div:first-child,
    .brand-select-btn-block>div:last-child {
        width: 100% !important;
        padding: 0;
        margin: 0;
        border: none
    }

    .brand-select-btn-block>div:last-child {
        margin-top: 10px;
    }

    .brand-tabs-menu {
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    #brand-pages {
        margin-top:60px
    }
}

@media only screen and (max-height: 800px) {
    .brand-icon-menu-title {
        display: none;
    }

    button.brand-icon-menu-btn {
        padding: 15px 0
    }
}

@media only screen and (max-width: 575px) {
   /* html {
        font-size: 13px;
    }*/

    #brand-body {
      /*  padding: 0 0 0 54px !important;*/
        padding: 0 0 0 0 !important;
    }

    .brand-logo img.logo-desktop {
        display: none;
    }

    .brand-logo img.logo-mobile {
        display: block;
    }

    #brand-icon-menu {
        width: 54px
    }

    .brand-icon-menu-title {
        display: none;
    }

    button.brand-icon-menu-btn {
        padding: 15px 0
    }

   /* #brand-icon-panel {
        padding: 60px 0 0 54px;


        border-right: 1px solid #d8d8db;
        background: #e9e9ed;
    }
*/
    .brand-grid.two-column {
        grid-template-columns: repeat(auto-fill, minmax(min(60px, 100%), 1fr));
    }

   /* .brand-btn.brand-lg-btn {
        padding: 14px 0px;
    }*/

    .brand-modal-inner>.brand-tabs>.brand-tabs-menu {
        flex-wrap: nowrap;
    }

    .brand-modal-inner>.brand-tabs>.brand-tabs-menu>li {

        padding: 10px;
        border-radius: 0px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        margin: 0 4px 0 0;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        line-height: 1;

    }

    .brand-modal-inner>.brand-tabs>.brand-tabs-menu>li>.material-icons {
        display: none;
    }

    .brand-modal-inner>.brand-tabs>.brand-tab,
    .brand-modal-bg {
        padding: 20px
    }


    .brand-modal-layers-bg {
        padding: 10px
    }

    #brand-library-all-menu,
    #brand-library-my-menu,
    #brand-my-templates-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    #brand-library-all-menu>div.brand-search-box,
    #brand-library-my-menu>div.brand-search-box,
    #brand-my-templates-menu>div.brand-search-box {
        width: 100%;
        margin-top: 15px;
    }

    #modal-blank-canvas .brand-control-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-control-group>div {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px
    }

    .brand-control-group>div:last-child {
        margin-bottom: 0
    }

    #modal-blank-canvas .sp-original-input-container {
        width: 100%;
    }

    #brand-canvas-create {
        padding: 12px 0;
        height: auto
    }

    #pexels-menu {
        flex-direction: column;
    }

    #pexels-menu>div {
        width: 100%;
    }

    #pexels-search-options select:first-child {
        margin-right: 5px;
        margin-left: 0;
    }

    #pexels-search-options select:last-child {
        margin-left: 5px;
        margin-right: 0;
    }

    #pexels-menu>div.brand-search-box {
        margin-top: 10px
    }

    #pixabay-menu {
        flex-direction: column;
    }

    #pixabay-menu>div {
        width: 100%;
    }

    #pixabay-search-options select:first-child {
        margin-right: 10px;
        margin-left: 0;
    }

    #pixabay-search-options select:last-child {
        margin-left: 0;
        margin-right: 0;
    }

    #pixabay-menu>div.brand-search-box {
        margin-top: 10px
    }

    .brand-modal-close {
        top: 10px;
        right: 10px;
    }



    .brand-modal-layers-close {
        top: 230px;
        right: 30px;
    }

    #modal-select-img .brand-btn-set {
        flex-wrap: wrap;
    }

    #modal-select-img .brand-btn-set label,
    #modal-select-img .brand-btn-set button,
    #modal-select-img .brand-btn-set .brand-file-field {
        width: 100%;
        margin: 0;
    }

    #modal-select-img .brand-btn-set label {
        margin-bottom: 10px
    }

    .brand-template-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-template-list li div {
        width: 100%;
    }

    .brand-template-list li div:last-child {
        margin-top: 10px;
    }

    #brand-top-bar .brand-btn .brand-btn-text {
        display: none;
    }

    #brand-top-bar .brand-btn .material-icons {
        margin: 0;
        font-size: 18px;
    }

    .tooltip:after,
    .tooltip:before {
        display: none;
    }

    .brand-top-bar-menu {
        padding: 0 5px;
    }

    .brand-content-bar,
    body.layers-closed .brand-content-bar {
        right: 0px;
        bottom: 0px;
        border-radius: 0;
        padding-left: 15px;
        border-right: none !important;
        border-bottom: none !important;
    }

    .sp-palette-container {
        display: none !important;
    }
}

#brand-right-col {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --surface-primary: #FFFFFF;
    --surface-secondary: rgba(247, 249, 252, 0.8);
    --accent-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-subtle: rgba(12, 16, 20, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    /* display: flex !important; */
    flex-direction: column;
    min-width:  230px !important;
     min-height:  200px !important;
    max-width:280px !important;
    width: clamp(230px, 24vw, 280px) !important;
    max-height: calc(100vh - 500px);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    padding: 12px;
    color: var(--text-primary);
    transition: background .2s ease, box-shadow .2s ease, transform .18s ease;
    overflow: auto;
    gap: 8px;
    z-index: 30;
    
}

#brand-right-col:hover {
    background: var(--glass-bg-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

#brand-right-col:focus-within {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), var(--shadow-lg);
}

#brand-right-col.is-docked {
    border-radius: 0;
    box-shadow: none;
}

#brand-right-col::-webkit-scrollbar {
    width: 6px;
}

#brand-right-col::-webkit-scrollbar-track {
    background: transparent;
}

#brand-right-col::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 999px;
}

#brand-right-col .brand-layers-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 12px;
}

#brand-right-col .brand-layers-title:hover {
    background: var(--surface-secondary);
}

#brand-right-col #brand-layers {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#brand-right-col #brand-layers li {
    width: 95%;
    border-radius: 12px;
    padding: 8px 12px;
    background: var(--surface-secondary);
    /* box-shadow: var(--shadow-sm); */
    color: var(--text-primary);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease, color .12s ease;
}

#brand-right-col #brand-layers li:hover {
    background: var(--surface-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

#brand-right-col #brand-layers li.active,
#brand-right-col #brand-layers li[data-selected=true] {
    background: var(--surface-primary);
    box-shadow: inset 0 0 0 1px var(--border-subtle), var(--shadow-md);
}

#brand-right-col #brand-layers .layer-name {
    display: block;
    touch-action: auto;
    cursor: pointer;
 
    

font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: .75rem;

    color: var(--text-primary);
  
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-right: 0;
}

#brand-right-col #brand-layers li:hover .layer-name {
    color: var(--text-secondary);
}

#brand-right-col #brand-layers li.active .layer-name,
#brand-right-col #brand-layers li[data-selected=true] .layer-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* Inline layout: icon + name + tools side by side */
#brand-right-col #brand-layers li {
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 8px;
}

#brand-right-col #brand-layers > li > .material-icons {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
    color: var(--text-tertiary);
}

#brand-right-col #brand-layers .layer-name {
    flex: 1 1 auto;
}

#brand-right-col #brand-layers .layer-icons,
#brand-right-col #brand-layers .layer-tools {
    position: static;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: auto;
    width: auto;
    padding: 0;
}

#brand-right-col #brand-layers .layer-icons .material-icons,
#brand-right-col #brand-layers .layer-tools .material-icons {
    font-size: 14px;
    line-height: 1;
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 4px;
    transition: background .12s ease, color .12s ease;
}

#brand-right-col #brand-layers .layer-icons .material-icons:hover,
#brand-right-col #brand-layers .layer-tools .material-icons:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

#brand-right-col #brand-layers .layer-icons .material-icons:focus-visible,
#brand-right-col #brand-layers .layer-tools .material-icons:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35);
}

/* Override absolute/right-anchored settings icon to participate inline */
#brand-right-col #brand-layers > li > .material-icons.layer-settings {
    position: static;
    width: auto;
}

/* ================= TEXT LAYOUTS GRID ================== */
#brand-text-layouts .TheBrandScrollable {
    overflow-x: hidden !important;
    overflow-y: auto !important;
   
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

#brand-lyts {
    min-width: auto !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    overflow: hidden;
    scroll-behavior: smooth;
}

#brand-lyts > li.brand-layout-text {
    width: 100%;
}

.brand-grid li {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    overflow: hidden;
}

.brand-grid li:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-grid li:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-grid li img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform .15s ease;
}

.brand-grid li:hover img {
    transform: scale(1.02);
}

#brand-lyts > li.brand-layout-text {
    cursor: pointer;
}

#brand-lyts > li.brand-layout-text label {
    display: block;
    padding: 6px;
}
 
 

/* GRID CONTAINER */
.brand-grid.menu-grid.thebrand-layout-text-grid {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid !important;
  grid-template-columns: repeat(3, 1fr); /* <-- EXACTLY 3 COLUMNS */
  gap: 15px;
}


/* MODERN CARDS */
.brand-grid.menu-grid.thebrand-layout-text-grid li {
  aspect-ratio: 1 / 1; /* perfect square */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);

  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

/* HOVER EFFECT */
.brand-grid.menu-grid.thebrand-layout-text-grid li:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  background: #f0f0f0;
  border-color: rgba(0,0,0,0.12);
}

/* ICON STYLE */
.brand-grid.menu-grid.thebrand-layout-text-grid li .material-icons {
  display: block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 24px;
  margin-bottom: 8px;
  margin-top: 8px;
  color: #555;
  transition: 0.25s ease;
}

.brand-grid.menu-grid.thebrand-layout-text-grid li:hover .material-icons {
  transform: scale(1.1);
  color: #000;
}

/* TEXT STYLE */
.brand-grid.menu-grid.thebrand-layout-text-grid li label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: #222;
  letter-spacing: 0.3px;
  pointer-events: auto;
}

.brand-grid.menu-grid.thebrand-layout-text-grid li label span:not(.material-icons) {
  font-size: 12px;
  font-weight: 500;
  color: #333;
}


/* ICON */
.menu-grid li .material-icons {
  font-size: 44px;
  margin-bottom: 12px;
  color: #555;
  transition: 0.25s ease;
}

.menu-grid li:hover .material-icons {
  color: #000;
  transform: scale(1.1);
}

/* TEXT */
.menu-grid li label {
  font-weight: 600;
  font-size: 12px;
  color: #222;
  letter-spacing: 0.3px;
  pointer-events: none;
  transition: 0.2s ease;
}

.menu-grid li:hover label {
  color: #000;
}





.brand-pagination.simple-pagination ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.brand-pagination.simple-pagination ul li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #0F172A;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, color .15s ease, transform .12s ease;
}

.brand-pagination.simple-pagination ul li:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.brand-pagination.simple-pagination ul li:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-pagination.simple-pagination ul li.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.brand-pagination.simple-pagination ul li.active {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-pagination.simple-pagination ul li a,
.brand-pagination.simple-pagination ul li span {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 12px;
}

#brand-elements-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.brand-elements-menu-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.brand-elements-menu-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-elements-menu-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-elements-menu-item .brand-img-wrap {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.brand-elements-menu-item .brand-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-elements-menu-item .brand-apps-menu-item-desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    font-weight: 600;
    font-size: 12px;
    color: #0F172A;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

#brand-apps-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#brand-effects-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.brand-apps-menu-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.brand-apps-menu-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-apps-menu-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-apps-menu-item .brand-img-wrap {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.brand-apps-menu-item .brand-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-apps-menu-item .brand-apps-menu-item-desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    font-weight: 600;
    font-size: 12px;
    color: #0F172A;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

/* ================= TOOLS MENU (mirror APPS) ================== */
#brand-tools-menu > span {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.brand-tools-menu-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.brand-tools-menu-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-tools-menu-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-tools-menu-item .brand-img-wrap {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.brand-tools-menu-item .brand-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-tools-menu-item .brand-tools-menu-item-desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    font-weight: 600;
    font-size: 12px;
    color: #0F172A;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

/* ================= TOOLS FORM (mirror IMAGE SETTINGS) ================== */
#brand-tools-content .brand-control-wrap {
    margin: 8px 0;
}

#brand-tools-content .brand-control-label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin: 8px 0 6px;
}

#brand-tools-content .brand-form-field,
#brand-tools-content .brand-select {
    background: #fff;
    border: 1px solid rgba(17,24,39,0.12);
    border-radius: 8px;
    padding: 8px 10px;
    color: #111827;
}

#brand-tools-content .brand-form-field:focus,
#brand-tools-content .brand-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,182,232,0.25);
    border-color: #00b6e8;
}

#brand-tools-content .brand-colorpicker {
    background: #fff;
    border: 1px solid rgba(17,24,39,0.12);
    border-radius: 8px;
    height: 34px;
    padding: 0 8px;
    color: #111827;
}

#brand-tools-content .brand-slider {
    width: 100%;
}

#brand-tools-content .brand-control-desc {
    color: #494949;
}

ul.brand-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

ul.brand-accordion > li {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    overflow: hidden;
}

ul.brand-accordion > li:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

ul.brand-accordion > li > a {
    padding: 8px 10px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    color: #0F172A;
}

ul.brand-accordion > li > a .accordion-icon {
    color: #64748B;
    margin-right: 8px;
}

ul.brand-accordion > li > a .arrow {
    color: #64748B;
    transition: transform .18s ease;
}

ul.brand-accordion > li.opened > a .arrow {
    color: #0F172A;
    transform: rotate(180deg);
}

ul.brand-accordion > li > div {
    /* border-top: 1px solid rgba(148, 163, 184, 0.25); */
    padding: 10px 12px;
}

.brand-pagination.simple-pagination ul li.active {
    border-color: #3B82F6;
    color: #3B82F6;
}

.brand-pagination.simple-pagination ul li.active a,
.brand-pagination.simple-pagination ul li.active span {
    color: #3B82F6 !important;
}

.brand-pagination .page-item.active .page-link {
    border-color: #3B82F6;
    color: #3B82F6;
}

.brand-pagination .page-item.active .page-link .current {
    color: #3B82F6 !important;
}

.brand-grid .grid-item {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    overflow: hidden;
}

.brand-grid .grid-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-grid .grid-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-grid .grid-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform .15s ease;
}

.brand-grid .grid-item:hover img {
    transform: scale(1.02);
}
 .brand-tool-label-wrapper {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     height: 28px;
     white-space: nowrap;
 }
 .brand-tool-label {
     font-size: 0.75rem;
     color: #64748B;
     line-height: 1;
 }
 .brand-tool-label-wrapper .brand-tool-input {
     height: 28px;
 }
.select2-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border: 0px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;

    color: #0f172a;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.select2-item:hover,
.select2-item:focus {
    border-color: rgba(148, 163, 184, 0.6);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.select2-item:active {
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.select2-item .material-icons {
    font-size: 16px;
    color: #64748b;
}
.select2-dropdown .select2-results__option--highlighted .select2-item {
    border-color: rgba(148, 163, 184, 0.6);
    background: #ffffff;
}
.select2-dropdown .select2-results__option[aria-selected="true"] .select2-item {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}
/* ---------------------------------------------------
   BASE PANEL
--------------------------------------------------- */
/* ---------------------------------------------------
   CLEAN TINYFORM SELECT
--------------------------------------------------- */

.brand-select.tinyform {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    height: 30px;
    padding: 4px 28px 4px 8px;

    font-size: 12px;
    font-family: "Inter", "SF Pro Text", Arial, sans-serif;

    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #222;

    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

/* Focus */
.brand-select.tinyform:focus {
    border-color: #999;
    background: #fff;
}

/* Disabled */
.brand-select.tinyform:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------------------------------------------------
   CUSTOM DROPDOWN ARROW
--------------------------------------------------- */

.brand-select.tinyform {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='18' width='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}


#brand-text {
    width: 100%;
  
    font-family: "Inter", "SF Pro Text", Arial, sans-serif;
  
    overflow: hidden;
}

/* ---------------------------------------------------
   FORM ELEMENTS (GLOBAL STYLE)
--------------------------------------------------- */
.brand-input,
.brand-select,
.brand-textarea,
.brand-number,
.brand-color,
.brand-field {
    width: 100%;
    height: 32px;
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.brand-input:focus,
.brand-select:focus,
.brand-textarea:focus,
.brand-number:focus,
.brand-color:focus {
    border-color: #999;
    background: #fff;
}

/* ---------------------------------------------------
   COLOR PICKER
--------------------------------------------------- */
.brand-color {
    padding: 0;
    height: 34px;
}

/* ---------------------------------------------------
   RANGE SLIDER (120px)
--------------------------------------------------- */
.brand-slider {
    width: 120px !important;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 6px;
}

.brand-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

.brand-slider::-moz-range-thumb {
    height: 14px;
    width: 14px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

.brand-icon-btn.active,
.brand-segment-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.brand-switch.active {
    background: #111;
}

.brand-switch.active:before {
    transform: translateX(18px);
}

.brand-gradient-row .brand-slider {
    flex: none;
}

/* ---------------------------------------------------
   CLEAN TINYFORM COLOR PICKER
--------------------------------------------------- */

.brand-colorpicker.tinyformcolor {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 40px !important;
    height: 24px !important;

    padding: 2px 4px;
    font-size: 12px;
    font-family: "Inter", "SF Pro Text", Arial, sans-serif;

    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #222;
    text-align: center;

    cursor: pointer;
    outline: none;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}

/* Focus */
.brand-colorpicker.tinyformcolor:focus {
    border-color: #999;
    background: #fff;
}

/* Disable empty values consistency */
.brand-colorpicker.disallow-empty {
    caret-color: transparent; /* prevents empty edits */
}

/* ---------------------------------------------------
   Make Spectrum add-on icon fit the tiny style
--------------------------------------------------- */

.brand-colorpicker.tinyformcolor.with-add-on {
    padding-right: 22px !important; /* space for spectrum swatch */
    background-position: right 3px center;
    background-repeat: no-repeat;
}

/* Spectrum swatch icon override (tiny size) */
.spectrum.with-add-on .sp-replacer {
    height: 24px !important;
    width: 22px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
}

/* Reduce the swatch itself */
.spectrum.with-add-on .sp-preview {
    height: 16px !important;
    width: 16px !important;
    border-radius: 4px !important;
    margin: 4px !important;
    overflow: hidden;
}
/* ---------------------------------------------------
   TEXTAREA WRAPPER
--------------------------------------------------- */
.brand-control {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------------------
   TEXTAREA (Consistent Canva Style)
--------------------------------------------------- */
.brand-form-field.rounded-textarea {
    width: 90%;
    min-height: 64px;      /* 2 lines comfortably */
    padding: 8px 10px;
    font-size: 12px;
    font-family: "Inter", "SF Pro Text", Arial, sans-serif;

    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 12px;

    line-height: 1.45;
    color: #222;

    resize: none;          /* No messy stretch handles */
    outline: none;

    transition: border-color 0.15s ease, background 0.15s ease;
}

/* Focus state */
.brand-form-field.rounded-textarea:focus {
    background: #fff;
    border-color: #999;
}

/* Placeholder style */
.brand-form-field.rounded-textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Disabled state */
.brand-form-field.rounded-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.select2-container--default .select2-selection--single.brand-font-select {
    height: 32px !important;
    padding-left: 8px;
    padding-right: 28px;

    font-family: "Inter", "SF Pro Text", Arial, sans-serif;
    font-size: 12px;

    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fafafa !important;

    display: flex !important;
    align-items: center;
    cursor: pointer;
    outline: none;

    transition: border-color 0.15s, background 0.15s;
}

.select2-container--light .select2-selection--single.brand-font-select {
    height: 32px !important;
    padding-left: 8px;
    padding-right: 28px;
    font-family: "Inter", "SF Pro Text", Arial, sans-serif;
    font-size: 12px;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    display: flex !important;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.select2-container--light.brand-font-select .select2-selection--single {
    height: 32px !important;
    padding-left: 8px;
    padding-right: 28px;
    font-family: "Inter", "SF Pro Text", Arial, sans-serif;
    font-size: 12px;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    display: flex !important;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

/* Text inside the selection */
.select2-container--default .select2-selection--single.brand-font-select .select2-selection__rendered {
    line-height: 32px !important;
    padding-left: 0 !important;
    color: #222 !important;
    font-size: 12px;
}

.select2-container--light .select2-selection--single.brand-font-select .select2-selection__rendered {
    line-height: 32px !important;
    padding-left: 0 !important;
    color: #222 !important;
    font-size: 12px;
}

.select2-container--light.brand-font-select .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    padding-left: 0 !important;
    color: #222 !important;
    font-size: 12px;
}

/* Remove default arrow */
.select2-container--default .select2-selection--single.brand-font-select .select2-selection__arrow {
    display: none;
}

.select2-container--light .select2-selection--single.brand-font-select .select2-selection__arrow {
    display: none;
}

.select2-container--light.brand-font-select .select2-selection--single .select2-selection__arrow {
    display: none;
}

/* Custom dropdown arrow */
.select2-container--default .select2-selection--single.brand-font-select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.select2-container--light .select2-selection--single.brand-font-select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.select2-container--light.brand-font-select .select2-selection--single {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

/* Focus */
.select2-container--default.select2-container--focus .select2-selection--single.brand-font-select {
    border-color: #999 !important;
    background: #fff !important;
}

.select2-container--light.select2-container--focus .select2-selection--single.brand-font-select {
    border-color: #999 !important;
    background: #fff !important;
}

.select2-container--light.brand-font-select.select2-container--focus .select2-selection--single {
    border-color: #999 !important;
    background: #fff !important;
}

/* ---------------------------------------------------
   DROPDOWN PANEL
--------------------------------------------------- */

.select2-container--default .select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden;
    font-size: 12px;
}

.select2-container--light .select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden;
    font-size: 12px;
}

.select2-container--light .select2-dropdown.brand-font-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden;
    font-size: 12px;
}

/* Dropdown search (if enabled) */
.select2-container--default .select2-search--dropdown .select2-search__field {
    font-size: 12px;
    border-radius: 6px;
    padding: 6px;
    border: 1px solid #ddd;
}

.select2-container--light .select2-search--dropdown .select2-search__field {
    font-size: 12px;
    border-radius: 6px;
    padding: 6px;
    border: 1px solid #ddd;
}

/* ---------------------------------------------------
   DROPDOWN OPTIONS
--------------------------------------------------- */

.select2-container--default .select2-results__option {
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
}

.select2-container--light .select2-results__option {
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
}

/* Hover */
.select2-container--default .select2-results__option--highlighted {
    background: #e9e9e9 !important;
    color: #111 !important;
}

.select2-container--light .select2-results__option--highlighted {
    background: #e9e9e9 !important;
    color: #111 !important;
}

/* Selected option */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #111 !important;
    color: #fff !important;
}

.select2-container--light .select2-results__option[aria-selected="true"] {
    background: #111 !important;
    color: #fff !important;
}

/* ---------------------------------------------------
   FONT PREVIEWS (if applied)
--------------------------------------------------- */

.custom-font,
.websafe-font {
    font-size: 12px !important;
}
.select2-item#brand-tool-font-family {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Base Notice Styling */
.notice {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.45;
    background-color: #fafbfc;
    border: 1px solid #e6e8eb;
    color: #3d4250;
    margin: 12px 0;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    animation: fadeIn 0.2s ease-out;
}

/* Info Variant */
.notice-info {
    border-left: 3px solid #4a7cff;
}

/* Heading */
.notice h6 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2f61ff;
}

/* Subtle Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}
#brand-frames-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.brand-frames-menu-item { position: relative; background: #fff; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: background .15s ease, box-shadow .15s ease, transform .12s ease; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.brand-frames-menu-item:hover { background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.brand-frames-menu-item:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(102, 126, 234, .35), 0 4px 16px rgba(0, 0, 0, 0.08); }
.brand-frames-menu-item .brand-img-wrap { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.brand-frames-menu-item .brand-img-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-frames-menu-item .brand-apps-menu-item-desc { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; font-weight: 600; font-size: 12px; color: #0F172A; background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); }
:root {
  --brand-scrollbar-thumb: rgba(31, 41, 55, 0.35);
  --brand-scrollbar-thumb-hover: rgba(31, 41, 55, 0.55);
  --brand-scrollbar-track: transparent;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-scrollbar-thumb) var(--brand-scrollbar-track);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--brand-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--brand-scrollbar-thumb);
  border-radius: 8px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--brand-scrollbar-thumb-hover);
}

#brand-right-col {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-scrollbar-thumb) var(--brand-scrollbar-track);
}

#brand-right-col::-webkit-scrollbar {
  width: 6px;
}

#brand-right-col::-webkit-scrollbar-thumb {
  background-color: var(--brand-scrollbar-thumb);
  border-radius: 10px;
}
.brand-control input[type=range] {
  width: 100%;
}
.brand-control-wrap-half {
  display: inline-block;
  width: 48%;
  vertical-align: top;
}
/* ================================
   PRESENTATION OVERLAY
================================ */

#brand-presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;

  background: #ffffff;
  overflow: hidden;

  /* Smooth fade in/out */
  animation: brandPresentFadeIn 220ms ease-out;
}

/* Optional dark mode presentation */
#brand-presentation-overlay.dark {
  background: #0f172a;
}

/* ================================
   STAGE (CENTER + SCALE)
================================ */

#brand-presentation-stage {
  position: absolute;
  top: 50%;
  left: 50%;

  /* Absolute center */
  transform: translate(-50%, -50%);
  transform-origin: center center;

  /* Prevent subpixel blur */
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;

  /* Smooth resizing between slides */
  transition:
    transform 240ms ease,
    width 240ms ease,
    height 240ms ease;
}

/* ================================
   CANVAS RENDER QUALITY
================================ */

#brand-presentation-canvas {
  display: block;

  /* Prevent image smoothing artifacts */
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;

  /* Kill text blur on transforms */
  backface-visibility: hidden;
  transform: translateZ(0);

  /* Clean presentation look */
  background: transparent;
}

/* ================================
   TOP BADGE (CANVA-STYLE)
================================ */

#brand-presentation-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483647;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 12px;
  border-radius: 10px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;

  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Badge label */
#brand-presentation-label {
  white-space: nowrap;
  opacity: 0.95;
}

/* ================================
   EXIT BUTTON (POLISHED)
================================ */

#brand-presentation-exit {
  appearance: none;
  border: none;
  outline: none;

  background: #ef4444;
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 6px;

  cursor: pointer;

  transition:
    background 160ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

#brand-presentation-exit:hover {
  background: #dc2626;
}

#brand-presentation-exit:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ================================
   SLIDE TRANSITION STATES
================================ */

/* Fade between slides */
#brand-presentation-overlay.is-transitioning
  #brand-presentation-stage {
  opacity: 0;
  transition: opacity 180ms ease;
}

#brand-presentation-overlay.is-active
  #brand-presentation-stage {
  opacity: 1;
}

/* ================================
   ANIMATIONS
================================ */

@keyframes brandPresentFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================
   SAFETY: NO SCROLL / SELECTION
================================ */
 
