* { box-sizing: border-box; } #ale-editor-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99997;
backdrop-filter: blur(2px);
}
#ale-editor-modal {
position: fixed;
inset: 0;
top: 50px; z-index: 99998;
display: flex;
overflow: hidden;
border-radius: 10px 10px 0 0; box-shadow: 0 -4px 32px rgba(0,0,0,.28);
}
#ale-editor-modal-inner {
flex: 1; display: flex; overflow: hidden;
}
#ale-editor-modal.ale-hidden,
#ale-editor-overlay.ale-hidden { display: none !important; }
body.ale-editor-open { overflow: hidden; } #ale-wrap {
display: grid;
grid-template-columns: 180px 1fr 224px;
grid-template-rows: 1fr;
width: 100%; height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 13px; color: #222; background: #fff;
overflow: hidden;
} #ale-left {
grid-column: 1;
display: flex; flex-direction: column;
background: #fff; border-right: 1px solid #ddd;
overflow: hidden;
}
#ale-font-hd {
background: #1976d2; color: #fff;
padding: 7px 10px; font-size: 10px; font-weight: 700;
text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0;
}
#ale-font-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
background: #eee; flex-shrink: 0;
}
.ale-fcell {
background: #fff; padding: 5px 4px; cursor: pointer;
font-size: 13px; text-align: center; line-height: 1.3;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
border: 1.5px solid transparent;
transition: background .1s, border-color .1s;
}
.ale-fcell:hover    { background: #fff6f2; border-color: #e0521a; }
.ale-fcell-sel      { background: #e3f2fd; border-color: #1976d2; color: #1565c0; }
#ale-addtxt-btn {
display: block; width: 100%; padding: 9px 0; flex-shrink: 0;
border: none; border-top: 1px solid #1565c0;
background: #1976d2; color: #fff;
font-size: 14px; font-weight: 700; cursor: pointer;
}
#ale-addtxt-btn:hover { background: #1565c0; }
#ale-sec-clipart {
flex: 1; min-height: 0;
display: flex; flex-direction: column; overflow: hidden;
}
.ale-sec-hd {
font-size: 10px; font-weight: 700; text-transform: uppercase;
letter-spacing: .5px; color: #888; padding: 5px 8px 3px; flex-shrink: 0;
}
#ale-cat-sel {
display: block; width: calc(100% - 10px); margin: 0 5px 4px;
padding: 3px 4px; font-size: 11px;
border: 1px solid #ddd; border-radius: 3px;
background: #fff; cursor: pointer; flex-shrink: 0;
}
#ale-art-grid {
flex: 1; min-height: 0; overflow-y: auto;
display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
padding: 3px 5px 5px; align-content: start;
}
.ale-art {
aspect-ratio: 1; border: 1px solid #e0e0e0; border-radius: 3px;
display: flex; align-items: center; justify-content: center;
cursor: pointer; background: #f9f9f9;
transition: border-color .15s, transform .1s;
}
.ale-art:hover        { border-color: #e0521a; transform: scale(1.08); }
.ale-art img          { max-width: 88%; max-height: 88%; object-fit: contain; }
.ale-dim              { font-size: 10px; color: #aaa; padding: 5px; } #ale-center-col {
grid-column: 2; display: grid;
grid-template-rows: auto 1fr;
overflow: hidden;
min-width: 0;
} #ale-toolbar {
grid-row: 1;
display: flex;
align-items: center;
flex-wrap: wrap; gap: 4px;
padding: 10px 12px;
background: #1565c0;
border-bottom: 3px solid #0d47a1;
}
.ale-tg       { display: flex; align-items: center; gap: 2px; }
.ale-tg-close { margin-left: auto; }
.ale-tsep {
width: 1px; height: 24px;
background: rgba(255,255,255,.3);
margin: 0 6px;
}
.ale-tlbl {
font-size: 11px; color: rgba(255,255,255,.9);
white-space: nowrap; margin-right: 4px; font-weight: 700;
}
.ale-tbtn {
display: inline-flex; align-items: center; justify-content: center; gap: 3px;
height: 32px; padding: 0 9px; min-width: 32px;
background: rgba(255,255,255,.15);
border: 1px solid rgba(255,255,255,.28);
border-radius: 4px; cursor: pointer; color: #fff;
font-size: 12px; font-weight: 600; white-space: nowrap;
transition: background .12s;
}
.ale-tbtn:hover    { background: rgba(255,255,255,.30); }
.ale-tbtn:disabled { opacity: .35; cursor: not-allowed; }
#ale-fsize {
width: 52px; height: 32px; text-align: center;
font-size: 13px; font-weight: 700;
border-radius: 4px; border: 1px solid rgba(255,255,255,.35);
background: rgba(255,255,255,.18); color: #fff;
}
.ale-upload-tbtn {
display: inline-flex; align-items: center; gap: 5px;
height: 32px; padding: 0 12px;
background: #e0521a; border: 1px solid #b84018; border-radius: 4px;
color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
white-space: nowrap;
}
.ale-upload-tbtn:hover { background: #c8461a; }
.ale-tbtn-del {
background: rgba(200,50,50,.2);
border-color: rgba(255,150,150,.4); color: #ffcccc;
}
.ale-tbtn-del:hover { background: rgba(200,0,0,.55); color: #fff; }
.ale-tbtn-close {
background: rgba(200,50,50,.15);
border-color: rgba(255,150,150,.35); color: #ffdddd; padding: 0 12px;
}
.ale-tbtn-close:hover { background: rgba(170,0,0,.55); color: #fff; } #ale-center {
grid-row: 2;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
background: #e8e8e8; overflow: hidden; position: relative;
}
#ale-canvas-box {
position: relative; flex-shrink: 0;
box-shadow: 0 4px 24px rgba(0,0,0,.18); border-radius: 4px;
}
#ale-canvas-box canvas { display: block; border-radius: 4px; }
#ale-canvas-hint {
margin-top: 7px; font-size: 10px; color: #777;
text-align: center; flex-shrink: 0;
} #ale-right {
grid-column: 3;
display: flex; flex-direction: column;
background: #fafafa; border-left: 1px solid #ddd;
overflow-y: hidden;
}
.ale-rsec {
padding: 4px 8px; border-bottom: 1px solid #ebebeb; flex-shrink: 0;
}
.ale-rsec-hd {
font-size: 9px; font-weight: 700; text-transform: uppercase;
letter-spacing: .6px; color: #999; margin-bottom: 3px;
} #ale-dc-opts { display: flex; flex-direction: column; gap: 3px; }
.ale-dc {
display: flex; align-items: center; gap: 5px; cursor: pointer;
padding: 3px 6px; border: 1.5px solid #e0e0e0; border-radius: 4px;
background: #fff; font-size: 11px;
transition: border-color .12s, background .12s;
}
.ale-dc:hover              { border-color: #e0521a; background: #fff6f2; }
.ale-dc input              { margin: 0; cursor: pointer; accent-color: #e0521a; }
.ale-dc:has(input:checked) { border-color: #e0521a; background: #fff0eb; }
.ale-dc-feebadge {
display: inline-block; padding: 2px 7px; margin-top: 3px;
background: #e0521a; color: #fff; font-size: 10px; font-weight: 700;
border-radius: 10px;
}
#ale-dc-msg {
display: none; margin-top: 4px; padding: 4px 6px;
background: #fff8e1; border: 1px solid #ffe082; border-radius: 3px;
font-size: 10px; color: #7b5800;
} #ale-color-swatches {
display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0;
}
.ale-tb-swatch {
display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.ale-tb-swatch input { display: none; }
.ale-tb-dot {
width: 20px; height: 20px; border-radius: 50%;
border: 2px solid #ccc; flex-shrink: 0;
transition: transform .12s, box-shadow .12s;
}
.ale-tb-swatch input:checked + .ale-tb-dot {
transform: scale(1.22);
border-color: #1565c0;
box-shadow: 0 0 0 2px rgba(21,101,192,.3);
}
.ale-tb-dot-lbl { font-size: 11px; color: #444; white-space: nowrap; } #ale-tabs { display: grid; grid-template-columns: 1fr 1fr; flex-shrink: 0; }
.ale-tab {
padding: 7px 4px; border: none; background: #e6e6e6; cursor: pointer;
font-size: 11px; font-weight: 700; letter-spacing: .5px; text-align: center;
}
.ale-tab.active             { background: #1565c0; color: #fff; }
.ale-tab:not(.active):hover { background: #d5d5d5; } .ale-thumb-cv {
display: block; width: 100%; height: 90px; object-fit: contain; border-radius: 3px;
cursor: pointer; border: 2px solid #ddd;
background: repeating-conic-gradient(#e8e8e8 0% 25%, #fff 0% 50%) 0 0/10px 10px;
transition: border-color .15s;
}
.ale-thumb-cv.ale-thumb-active {
border-color: #1565c0;
box-shadow: 0 0 0 2px rgba(21,101,192,.2);
}
.ale-thumb-label {
font-size: 9px; color: #999; text-align: center;
margin: 1px 0 3px; text-transform: uppercase; letter-spacing: .3px;
}
#ale-draft-msg { font-size: 10px; color: #888; text-align: center; padding: 1px 0; } #ale-actions {
padding: 4px 8px; display: flex; flex-direction: column; gap: 4px;
flex-shrink: 0;
}
.ale-abtn {
display: block; width: 100%; padding: 7px 10px;
border: none; border-radius: 4px;
font-size: 12px; font-weight: 600; cursor: pointer; text-align: center;
transition: opacity .15s;
}
.ale-abtn:hover    { opacity: .88; }
.ale-abtn:disabled { opacity: .4; cursor: not-allowed; }
.ale-abtn-3d      { background: #1565c0; color: #fff; }
.ale-abtn-draft   { background: #eee; color: #444; }
.ale-abtn-preview { background: #1976d2; color: #fff; }
.ale-abtn-cart    { background: #e0521a; color: #fff; font-size: 13px; padding: 9px; }  .ale-pmodal {
position: fixed; inset: 0; z-index: 100004;
background: rgba(0,0,0,.8);
display: flex; align-items: center; justify-content: center;
}
.ale-pbox {
background: #fff; padding: 20px; border-radius: 10px;
max-width: 88vw; max-height: 90vh; overflow: auto;
position: relative; text-align: center;
}
.ale-xbtn {
position: absolute; top: 8px; right: 10px;
background: rgba(0,0,0,.3); color: #fff;
border: none; border-radius: 4px;
padding: 4px 10px; cursor: pointer; font-size: 13px;
}
.ale-xbtn:hover { background: #c62828; } #ale-notif {
position: fixed; bottom: 22px; left: 50%;
transform: translateX(-50%) translateY(10px);
background: #333; color: #fff; padding: 8px 18px;
border-radius: 6px; font-size: 12px; font-weight: 600;
z-index: 100010; opacity: 0; pointer-events: none;
white-space: nowrap; max-width: 92vw;
transition: opacity .2s, transform .2s;
}
.ale-ns        { opacity: 1 !important; transform: translateX(-50%) translateY(0) !important; }
.ale-n-success { background: #2e7d32 !important; }
.ale-n-error   { background: #c62828 !important; }
.ale-n-warning { background: #e65100 !important; }
.ale-n-info    { background: #1565c0 !important; } .ale-silver-dot {
background:
repeating-linear-gradient(
92deg,
rgba(255,255,255,0)   0px,
rgba(255,255,255,0.4) 1px,
rgba(255,255,255,0)   2px,
rgba(255,255,255,0)   4px
),
linear-gradient(
160deg,
#e8e9ea 0%,
#b0b2b5 18%,
#d8dadb 32%,
#8e9093 48%,
#cfd1d2 60%,
#a8aaac 75%,
#e2e3e4 88%,
#9a9c9f 100%
) !important;
border-color: #888 !important;
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 1px 3px rgba(0,0,0,0.3) !important;
} .ale-btn-wrap { margin: 10px 0 4px; }
.ale-open-editor.button {
background-color: #c8c8c8 !important; color: #222 !important;
border-color: #aaa !important; box-shadow: none !important;
opacity: 1 !important;
}
.ale-open-editor.button:hover {
background-color: #b0b0b0 !important; color: #000 !important;
} @media (max-width: 1100px) {
#ale-wrap { grid-template-columns: 160px 1fr 200px; }
}
@media (max-width: 767px) {
#ale-wrap {
grid-template-columns: 1fr;
grid-template-rows: 200px auto 1fr auto;
overflow-y: auto;
}
#ale-left        { grid-row: 1; }
#ale-center-col  { grid-row: 2 / 4; }
#ale-right       { grid-row: 4; }
#ale-3d-box      { width: 90vw; height: 90vw; }
}