/* ==========================================================================
   YoTryOn � Frontend Widget Styles (v4 � Button + Fullscreen Modal)
   ========================================================================== */

/* --- Trigger Button -------------------------------- */

.yotryon-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 24px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: opacity .2s, transform .15s;
    line-height: 1.4;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    min-height: 0 !important;
}
.yotryon-trigger-btn:hover  { opacity: .88; }
.yotryon-trigger-btn:active { transform: scale(.97); }
.yotryon-trigger-btn svg    { flex-shrink: 0; stroke: #fff !important; }

/* --- Top Try-On Button (gold overlay on gallery) --- */

.yotryon-top-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    margin: 0 !important;
    padding: 8px 18px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #b8860b 0%, #f5c842 50%, #d4a017 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    line-height: 1.3;
    box-shadow: 0 2px 10px rgba(212, 160, 23, .4) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.15) !important;
    text-transform: none !important;
    min-height: 0 !important;
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10;
    letter-spacing: 0.2px;
}
.yotryon-top-btn:hover {
    opacity: .92;
    box-shadow: 0 4px 16px rgba(212, 160, 23, .55) !important;
}
.yotryon-top-btn:active { transform: scale(.96); }
.yotryon-top-btn svg {
    flex-shrink: 0;
    stroke: #fff !important;
    filter: drop-shadow(0 0 3px rgba(255,255,255,.5));
}

/* --- Modal Overlay --------------------------------- */

.yotryon-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: #3a3a3a;
    overflow: hidden;
    animation: yotryon-fadeIn .25s ease;
}
.yotryon-modal[hidden] { display: none !important; }

.yotryon-modal *,
.yotryon-modal *::before,
.yotryon-modal *::after { box-sizing: border-box; }

@keyframes yotryon-fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Close button */
.yotryon-modal__close {
    position: absolute;
    top: 16px; right: 20px;
    z-index: 10;
    width: 40px !important; height: 40px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: rgba(0,0,0,.04) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: background .2s;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #666 !important;
}
.yotryon-modal__close:hover { background: rgba(0,0,0,.1) !important; }
.yotryon-modal__close svg { stroke: #666 !important; }

/* Scrollable body */
.yotryon-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 48px 5vw 40px;
    -webkit-overflow-scrolling: touch;
}

/* Hidden steps */
.yotryon-step[hidden] { display: none !important; }

/* --- Header ---------------------------------------- */

.yotryon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.yotryon-title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 36px);
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.15;
}

.yotryon-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0;
    max-width: 520px;
    line-height: 1.5;
}

.yotryon-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    white-space: nowrap;
}

/* --- Two-Column Grid ------------------------------- */

.yotryon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.yotryon-col-left,
.yotryon-col-right {
    min-width: 0;
}

/* --- Tips ------------------------------------------ */

.yotryon-tips {
    background: #fafaf8;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 12px;
    padding: 20px 24px 18px;
    margin-bottom: 24px;
}

.yotryon-tips__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.yotryon-tips__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yotryon-tips__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}

.yotryon-tips__list li::before {
    content: "?";
    position: absolute;
    left: 0;
    color: #5a8f5a;
    font-weight: 700;
}

/* --- Upload Buttons -------------------------------- */

.yotryon-upload-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* --- Buttons --------------------------------------- */
/* Scoped to .yotryon-modal to beat WP theme button overrides */

.yotryon-modal .yotryon-btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1.5px solid #1a1a1a !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background .2s, color .2s;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    min-height: 0 !important;
}
.yotryon-modal .yotryon-btn-outline svg { stroke: #1a1a1a !important; transition: stroke .2s; }
.yotryon-modal .yotryon-btn-outline:hover { background: #1a1a1a !important; color: #fff !important; }
.yotryon-modal .yotryon-btn-outline:hover svg { stroke: #fff !important; }

.yotryon-modal .yotryon-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #1a1a1a !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: opacity .2s;
    margin-bottom: 10px;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    min-height: 0 !important;
}
.yotryon-modal .yotryon-btn-primary svg { stroke: #fff !important; }
.yotryon-modal .yotryon-btn-primary:hover { opacity: .85; }

.yotryon-modal .yotryon-btn-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    padding: 6px 2px !important;
    font-size: 13px !important;
    color: #888 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    transition: color .2s;
    box-shadow: none !important;
    text-shadow: none !important;
    min-height: 0 !important;
}
.yotryon-modal .yotryon-btn-text:hover { color: #1a1a1a !important; }

/* --- Consent --------------------------------------- */

.yotryon-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    cursor: pointer;
}
.yotryon-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* --- Variation Selector ---------------------------- */

.yotryon-variation-selector { margin-bottom: 18px; }
.yotryon-variation-selector[hidden] { display: none !important; }

.yotryon-variation-selector__label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.yotryon-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yotryon-modal .yotryon-swatch {
    position: relative;
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    border: 2px solid rgba(0,0,0,.12) !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: border-color .2s, box-shadow .2s;
    padding: 0 !important;
    background: #f5f5f5 !important;
    flex-shrink: 0;
    min-height: 0 !important;
    min-width: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.yotryon-modal .yotryon-swatch:hover { border-color: #999 !important; }
.yotryon-modal .yotryon-swatch--active {
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 2px rgba(26,26,26,.18) !important;
}
.yotryon-modal .yotryon-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Color fill swatch */
.yotryon-modal .yotryon-swatch__color {
    width: 100%;
    height: 100%;
    display: block !important;
    border-radius: 6px;
}
/* Light colors get a visible inner border */
.yotryon-modal .yotryon-swatch--light {
    border-color: rgba(0,0,0,.18) !important;
}

/* --- Product Frame --------------------------------- */

.yotryon-product-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f9f9f7;
    border: 1px solid rgba(0,0,0,.05);
}

.yotryon-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yotryon-frame-overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.35));
}

.yotryon-frame-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.9);
}

/* --- User Frame (Step 2) --------------------------- */

.yotryon-user-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f5f5f3;
    border: 1px solid rgba(0,0,0,.05);
}

.yotryon-modal .yotryon-btn-refresh {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px !important; height: 32px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: rgba(255,255,255,.85) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: background .2s;
    padding: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    box-shadow: none !important;
}
.yotryon-modal .yotryon-btn-refresh:hover { background: #fff !important; }

/* --- Generate Panel -------------------------------- */

.yotryon-gen-panel {
    padding: 32px 0 0;
}

.yotryon-gen-panel__title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #1a1a1a;
    margin: 0 0 10px;
}

.yotryon-gen-panel__desc {
    color: #777;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.55;
}

/* Selected variant preview */
.yotryon-selected-variant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fafaf8;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 8px;
    margin-bottom: 18px;
}
.yotryon-selected-variant[hidden] { display: none !important; }
.yotryon-selected-variant__img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.yotryon-selected-variant__info { flex: 1; min-width: 0; }
.yotryon-selected-variant__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Outfit Chips ---------------------------------- */

.yotryon-outfit { margin-bottom: 20px; }

.yotryon-outfit__label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 8px;
}

.yotryon-outfit__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yotryon-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    font-size: 13px;
    color: #333;
    background: #f5f5f3;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
}

.yotryon-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.yotryon-modal .yotryon-chip__remove {
    margin-left: 2px;
    width: 16px !important; height: 16px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #999 !important;
    font-size: 14px !important;
    line-height: 1;
    padding: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
}
.yotryon-modal .yotryon-chip__remove:hover { color: #333 !important; }

/* --- Generating Step ------------------------------- */

.yotryon-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 40px 20px;
}

.yotryon-spinner-ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,.08);
    border-top-color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    animation: yotryon-spin 1s linear infinite;
    margin-bottom: 24px;
}
.yotryon-spinner-icon { stroke: #1a1a1a; }
@keyframes yotryon-spin { to { transform: rotate(360deg); } }

.yotryon-generating__title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.yotryon-generating__sub {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* --- Result Frame ---------------------------------- */

.yotryon-result-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f5f5f3;
    border: 1px solid rgba(0,0,0,.05);
}

.yotryon-result-label {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(0,0,0,.5);
    color: #fff;
    border-radius: 4px;
}

/* Share row */
.yotryon-share-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.yotryon-modal .yotryon-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 9px 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #555 !important;
    background: #f5f5f3 !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background .2s, color .2s;
    box-shadow: none !important;
    text-shadow: none !important;
    min-height: 0 !important;
}
.yotryon-modal .yotryon-share-btn svg { stroke: currentColor !important; }
.yotryon-modal .yotryon-share-btn:hover { background: #eee !important; color: #1a1a1a !important; }
.yotryon-modal .yotryon-share-btn--wa { color: #25d366 !important; }
.yotryon-modal .yotryon-share-btn--wa:hover { color: #128c4e !important; }
.yotryon-modal .yotryon-share-btn--ig { color: #e1306c !important; }
.yotryon-modal .yotryon-share-btn--ig:hover { color: #b5234f !important; }

/* --- Result Panel ---------------------------------- */

.yotryon-result-panel { padding: 0; }

.yotryon-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #3a7d3a;
    background: #eef6ee;
    border-radius: 20px;
    margin-bottom: 16px;
}

.yotryon-result-panel__title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #1a1a1a;
    margin: 0 0 10px;
}

.yotryon-result-panel__desc {
    color: #777;
    font-size: 14px;
    margin: 0 0 22px;
    line-height: 1.55;
}

.yotryon-btn--cart svg { flex-shrink: 0; }

.yotryon-btn--retry {
    width: 100%;
    justify-content: center;
}

.yotryon-btn--retry-outfit {
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.yotryon-btn--retry-outfit[hidden] { display: none !important; }
.yotryon-btn--retry-outfit svg { flex-shrink: 0; }

.yotryon-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,.06);
    margin: 20px 0;
}

.yotryon-disclaimer {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* --- Suggestions ----------------------------------- */

.yotryon-suggestions[hidden] { display: none !important; }

.yotryon-suggestions__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.yotryon-suggestions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

/* Skeleton loader for recommendations */
.yotryon-suggestions__loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.yotryon-suggestions__loader[hidden] { display: none !important; }

.yotryon-sugg-skeleton {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.yotryon-sugg-skeleton__img {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: yotryon-shimmer 1.5s ease-in-out infinite;
}
.yotryon-sugg-skeleton__lines {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.yotryon-sugg-skeleton__lines div {
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: yotryon-shimmer 1.5s ease-in-out infinite;
}
.yotryon-sugg-skeleton__lines div:nth-child(1) { width: 80%; }
.yotryon-sugg-skeleton__lines div:nth-child(2) { width: 50%; }
.yotryon-sugg-skeleton__lines div:nth-child(3) { width: 100%; height: 26px; border-radius: 6px; }

@keyframes yotryon-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.yotryon-sugg-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
    background: #fff;
}
.yotryon-sugg-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.yotryon-sugg-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.yotryon-sugg-card__info { padding: 8px 10px; }
.yotryon-sugg-card__name { font-size: 12px; color: #333; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yotryon-sugg-card__price { font-size: 11px; color: #888; margin: 0 0 6px; }

.yotryon-sugg-card__add {
    display: block !important;
    width: 100% !important;
    padding: 6px 8px !important;
    margin: 0 !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .2s, color .2s !important;
    text-align: center !important;
    line-height: 1.3 !important;
}
.yotryon-sugg-card__add:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}
.yotryon-sugg-card--added {
    opacity: .55 !important;
    pointer-events: none !important;
}
.yotryon-sugg-card--added .yotryon-sugg-card__add {
    background: #e8f5e9 !important;
    border-color: #66bb6a !important;
    color: #2e7d32 !important;
    cursor: default !important;
}

/* --- Result Outfit Chips --------------------------- */

.yotryon-result-outfit {
    margin: 16px 0 !important;
    padding: 0 !important;
}

.yotryon-result-outfit__label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin: 0 0 8px !important;
}

.yotryon-result-outfit__chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.yotryon-outfit-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px 4px 4px !important;
    background: #f5f5f3 !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    color: #333 !important;
    line-height: 1.3 !important;
    max-width: 180px !important;
}

.yotryon-outfit-chip img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.yotryon-outfit-chip__name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.yotryon-outfit-chip__remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    cursor: pointer !important;
    color: #999 !important;
    flex-shrink: 0 !important;
    transition: color .2s, background .2s !important;
}
.yotryon-outfit-chip__remove:hover {
    color: #333 !important;
    background: rgba(0,0,0,.06) !important;
}
.yotryon-outfit-chip__remove[hidden] { display: none !important; }

/* --- Camera Overlay -------------------------------- */

.yotryon-camera {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
}
.yotryon-camera[hidden] { display: none !important; }

.yotryon-camera__close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.yotryon-camera__close:hover { background: rgba(255,255,255,.25); }
.yotryon-camera__close svg { stroke: #fff; }

.yotryon-camera__viewport {
    position: relative;
    width: min(80vw, 400px);
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
}

.yotryon-camera__viewport video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.yotryon-camera__guide {
    position: absolute;
    inset: 12%;
    border: 2px dashed rgba(255,255,255,.35);
    border-radius: 50%;
    pointer-events: none;
}

.yotryon-camera__shutter {
    margin-top: 24px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 3px solid #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .15s;
}
.yotryon-camera__shutter:active { transform: scale(.9); }
.yotryon-camera__shutter-inner {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

.yotryon-camera__hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

/* --- Error Bar ------------------------------------- */

.yotryon-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 13px;
}
.yotryon-error[hidden] { display: none !important; }
.yotryon-error svg { flex-shrink: 0; stroke: #b91c1c; }

/* --- Toast ----------------------------------------- */

.yotryon-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    z-index: 1000000;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.yotryon-toast--visible { opacity: 1; }

/* --- Step Fade Animations -------------------------- */

.yotryon-step { animation: yotryon-stepIn .35s ease; }
@keyframes yotryon-stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- Responsive ------------------------------------ */

@media (max-width: 900px) {
    .yotryon-grid { grid-template-columns: 1fr; gap: 24px; }
    .yotryon-modal__body { padding: 40px 4vw 32px; }
    .yotryon-header { flex-direction: column; gap: 10px; }
    .yotryon-product-frame { aspect-ratio: 4/5; max-height: 50vh; }
    .yotryon-user-frame { aspect-ratio: 4/5; max-height: 50vh; }
    .yotryon-result-frame { aspect-ratio: 4/5; max-height: 50vh; }
}

@media (max-width: 600px) {
    .yotryon-modal__body { padding: 32px 16px 24px; }
    .yotryon-upload-buttons { flex-direction: column; }
    .yotryon-modal .yotryon-upload-buttons .yotryon-btn-outline { width: 100% !important; justify-content: center !important; }
    .yotryon-share-row { grid-template-columns: 1fr; }
    .yotryon-trigger-btn { font-size: 14px !important; padding: 11px 18px !important; }
    .yotryon-modal .yotryon-swatch { width: 36px !important; height: 36px !important; border-radius: 6px !important; }
    .yotryon-gen-panel { padding-top: 20px; }
    .yotryon-title { font-size: 22px; }
    .yotryon-gen-panel__title { font-size: 20px; }
    .yotryon-result-panel__title { font-size: 20px; }
    .yotryon-modal .yotryon-btn-primary { padding: 12px 18px !important; font-size: 14px !important; }
    .yotryon-modal .yotryon-btn-outline { padding: 10px 16px !important; font-size: 13px !important; }
    .yotryon-generating { min-height: 300px; padding: 30px 16px; }
    .yotryon-selected-variant { padding: 8px 10px; }
    .yotryon-selected-variant__img { width: 36px; height: 36px; }
    .yotryon-suggestions__grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .yotryon-outfit-chip { max-width: 150px !important; }
    .yotryon-sugg-card__add { font-size: 10px !important; padding: 5px 6px !important; }
}

@media (max-width: 380px) {
    .yotryon-modal__body { padding: 28px 12px 20px; }
    .yotryon-modal .yotryon-swatch { width: 32px !important; height: 32px !important; border-radius: 5px !important; }
    .yotryon-title { font-size: 20px; }
    .yotryon-modal .yotryon-btn-primary { padding: 11px 14px !important; font-size: 13px !important; }
}
