/* Container */
.nfts-options-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}
.nfts-options-container h3 {
    font-size: 1.1em; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid #ddd; text-transform: uppercase; color: #333; letter-spacing: 0.5px;
}
.nfts-field-wrapper { margin-bottom: 20px; }
.nfts-field-wrapper label.nfts-label {
    display: block; margin-bottom: 8px; font-weight: 600; color: #222; font-size: 14px;
}
.nfts-field-wrapper input[type="text"], .nfts-field-wrapper textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; background: #fff; border-radius: 4px; transition: border-color 0.3s;
}
.nfts-field-wrapper input[type="text"]:focus, .nfts-field-wrapper textarea:focus {
    border-color: #666; outline: none;
}
.nfts-upload-msg { font-size: 12px; margin-top: 5px; font-weight: 600; }
.nfts-success { color: #27ae60; }
.nfts-error { color: #c0392b; }

@media (prefers-color-scheme: dark) {
    .nfts-options-container { background: #1a1a1a; border-color: #333; }
    .nfts-options-container h3 { color: #fff; border-bottom-color: #444; }
    .nfts-field-wrapper label.nfts-label { color: #ddd; }
    .nfts-field-wrapper input[type="text"], .nfts-field-wrapper textarea { background: #000; border-color: #444; color: #fff; }
}

.nfts-cart-preview-link {
    display: inline-block; margin-top: 5px; padding: 2px 0; font-weight: bold; color: #D1A954; text-decoration: underline;
}
#nfts-bbox {
    position: absolute; border: 1px dashed rgba(255,255,255,0.9); pointer-events: none; box-sizing: border-box;
}
.nfts-final-preview {
    /* REMOVED mix-blend-mode to keep colors bright */
    opacity: 1.0; pointer-events: none;
}
.nfts-inline-preview {
    position: relative; display: inline-block; width: 180px;
}
.nfts-inline-preview img.nfts-inline-base {
    width: 100%; display: block;
}
.nfts-inline-preview img.nfts-inline-logo {
    position: absolute; top: 0; left: 0; width: 40%;
    pointer-events: none;
    mix-blend-mode: normal; /* CHANGED FROM SCREEN TO NORMAL */
    background-color: transparent;
}

/* INLINE PREVIEW STYLING */
.nfts-inline-preview {
    position: relative; 
    display: inline-block; 
    width: 200px; 
    cursor: pointer; /* Shows hand cursor */
    border: 2px solid transparent;
    transition: all 0.2s;
}
.nfts-inline-preview:hover {
    border-color: #D1A954;
}

/* The Overlay Actions (Edit text and X button) */
.nfts-preview-actions {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nfts-inline-preview:hover .nfts-preview-actions {
    opacity: 1;
}

.nfts-edit-label {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 4px;
}

.nfts-remove-btn {
    position: absolute;
    top: 5px; right: 5px;
    background: #e74c3c;
    color: #fff;
    width: 24px; height: 24px;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}
.nfts-remove-btn:hover {
    background: #c0392b;
}

/* Base images */
.nfts-inline-preview img.nfts-inline-base {
    width: 100%; display: block; border-radius: 4px;
}
.nfts-inline-preview img.nfts-inline-logo {
    position: absolute; top: 0; left: 0; width: 40%;
    pointer-events: none;
    mix-blend-mode: normal; 
}

/* --- CART THUMBNAIL STYLING --- */

/* Force specific size for the custom thumbnail in carts */
img.nfts-custom-cart-thumb {
    width: 60px !important;  /* Standard cart thumbnail size */
    height: 60px !important;
    object-fit: contain !important; /* Keeps logo aspect ratio, doesn't crop */
    background-color: #f0f0f0; /* Light grey background to make logos pop */
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

/* Specific fix for Woostify Mini Cart to prevent "Floating" */
.woostify-cart-item-img img.nfts-custom-cart-thumb {
    position: static !important; /* Resets any weird theme positioning */
    transform: none !important;
}