/* YZ Smart Quote Widget v4.3.0 — Dark Theme */
.youzify-section-content.youzify-no-widgets {
    padding: 2rem;
}
/* ── Output shell ────────────────────────────────────── */
.yzsq-output {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 175px;
    transition: background .35s ease;
}
.yzsq-output-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-position .25s ease;
}
.yzsq-output-overlay { position: absolute; inset: 0; }
.yzsq-output-content { position: relative; z-index: 2; }

/* ── Skeleton shimmer (trước khi JS render xong) ──── */
.yzsq-output:not(.yzsq-ready)::after {
    content: '';
    position: absolute; inset: 0; z-index: 10;
    background: linear-gradient(
        90deg,
        transparent 20%,
        rgba(255,255,255,.055) 50%,
        transparent 80%
    );
    background-size: 220% 100%;
    animation: yzsq-sk 1.5s ease-in-out infinite;
    pointer-events: none;
}
.yzsq-output.yzsq-ready::after { display: none; }
@keyframes yzsq-sk {
    0%   { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

/* ── Glass orb animations ────────────────────────── */
@keyframes yzsq-orb1 {
    0%,100% { transform: translate(0,0)    scale(1);    }
    33%     { transform: translate(7%,-5%) scale(1.07); }
    66%     { transform: translate(-4%,7%) scale(.95);  }
}
@keyframes yzsq-orb2 {
    0%,100% { transform: translate(0,0)    scale(1);    }
    40%     { transform: translate(-8%,4%) scale(1.09); }
    70%     { transform: translate(5%,-7%) scale(.93);  }
}
@keyframes yzsq-orb3 {
    0%,100% { transform: translate(0,0)   scale(1);    }
    50%     { transform: translate(4%,8%) scale(1.05); }
    80%     { transform: translate(-6%,-3%) scale(.97); }
}
.yzsq-orb1 { animation: yzsq-orb1  9s ease-in-out infinite; }
.yzsq-orb2 { animation: yzsq-orb2 12s ease-in-out infinite; }
.yzsq-orb3 { animation: yzsq-orb3 15s ease-in-out infinite; }

/* ── Settings form — dark base ───────────────────── */
.yzsq-form {
    padding: 2px 0 4px;
     }
.yzsq-field { margin-bottom: 18px; }
.yzsq-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(220,225,235,.32);
    margin-bottom: 8px;
}

/* ── Upload zone ──────────────────────────────────── */
.yzsq-upload-zone {
    border: 1.5px dashed rgba(255,255,255,.11);
    border-radius: 10px;
    padding: 30px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.022);
}
.yzsq-upload-zone:hover {
    border-color: #c8a96e;
    background: rgba(200,169,110,.04);
}
.yzsq-upload-zone.has-image {
      padding-top: 26%;
    height: 0;
    border-style: solid;
    border-color: rgba(200,169,110,.26);
    cursor: default;
}
.yzsq-upload-zone.has-image .yzsq-preview {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
   
}
.yzsq-upload-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.055);
    border: .5px solid rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.yzsq-upload-icon svg { width: 17px; height: 17px; color: rgba(220,225,235,.45); }
.yzsq-upload-title { font-size: 13px; color: #e8eaf0; font-weight: 500; margin-bottom: 3px; }
.yzsq-upload-sub   { font-size: 11px; color: rgba(220,225,235,.28); }

/* ── Preview strip ────────────────────────────────── */
.yzsq-preview {
    width: 100%; height: 100%;
    position: relative; overflow: hidden; cursor: grab;
}
.yzsq-preview:active { cursor: grabbing; }
.yzsq-preview img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.yzsq-preview-top {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 8px 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
    pointer-events: none;
}
.yzsq-drag-hint {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255,255,255,.48);
}
.yzsq-drag-hint svg { width: 12px; height: 12px; flex-shrink: 0; }
.yzsq-preview-bot {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
    display: flex; align-items: center; justify-content: space-between;
}
.yzsq-poslabel { color: rgba(255,255,255,.28); }
.yzsq-rmbtn {
    font-size: 11px; color: rgba(255,255,255,.55); cursor: pointer;
    background: rgba(0,0,0,.48); border: .5px solid rgba(255,255,255,.14);
    padding: 4px 10px; border-radius: 20px; pointer-events: auto;
    transition: color .15s, background .15s;
}
.yzsq-rmbtn:hover { color: #fff; background: rgba(0,0,0,.72); }

/* ── Palette row ──────────────────────────────────── */
.yzsq-palette-row { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.yzsq-swatch {
    width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.11);
    flex-shrink: 0;
}

/* ── Inputs ───────────────────────────────────────── */
.yzsq-textarea,
input[type="text"].yzsq-input {
    border: .5px solid #e8e6e2!important;
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    background: rgba(255,255,255,.052);
    border-radius: 5px;
    transition: border-color .15s, background .15s;
    overflow: hidden;
    min-height: 5pt;
    line-height: 1.5;
}
.yzsq-textarea:focus,
.yzsq-input:focus {
    min-height: 55pt;
    outline: none;
    border-color: rgba(200,169,110,.48);
    background: rgba(255,255,255,.075);
}
.yzsq-textarea::placeholder,
.yzsq-input::placeholder { color: rgba(220,225,235,.2); }
.yzsq-char {
    text-align: right; font-size: 11px;
    color: rgba(220,225,235,.22); margin-top: 4px;
}

/* ── Style cards ──────────────────────────────────── */
.yzsq-style-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 7px;
    margin-bottom: 4px;
}
.yzsq-stylecard {
    border: .5px solid rgba(232, 230, 226,.07);
     border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 8px 4px ;
    cursor: pointer;
    text-align: center;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    transition: border-color .15s, color .15s, background .15s;
    user-select: none;
}
.yzsq-stylecard:hover {
    
    border: .5px solid rgba(232, 230, 226,.07);
     border-radius: 8px;
    border-color: #ffffff;
    color: #ffffff;
    
    
}
.yzsq-stylecard.active {
    border: .5px solid rgba(232, 230, 226,.07);
     border-radius: 8px;
    border-color: #ffffff;
    color: #ffffff;
}

/* ── Save button ──────────────────────────────────── */
/* Nút mặc định */
/* Default */
.yzsq-savebtn {
     display: block;
    margin: 0 auto;
    background: transparent;
    color: #ffffff;
    border: .5px solid rgba(232, 230, 226,.07);
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all .15s ease;
}

/* Hover */
.yzsq-savebtn:hover {

    border-color: #ffffff;
    background: rgba(255,255,255,.04);
}

/* Active */
.yzsq-savebtn:active {
     border: .5px solid rgba(232, 230, 226,.07);
    background: rgba(255,255,255,.08);
    border-color: #ffffff;
}
/* ── Status msg ───────────────────────────────────── */
.yzsq-msg {
    margin-top: 8px; font-size: 12px;
    text-align: center; min-height: 16px;
}
.yzsq-msg.success { color: #5ec75e; }
.yzsq-msg.error   { color: #e05555; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
    .yzsq-style-grid { grid-template-columns: repeat(2,1fr); }
    .yzsq-output { border-radius: 10px; }
}