/* --- 1. The Trigger Button --- */
.cartShareButton-trigger {
    background-color: #d2b98b;
    color: #3b3b3b;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    transition: opacity 0.2s ease;
}
.cartShareButton-trigger:hover { opacity: .9; }

/* --- 2. The Background Overlay --- */
.cartShareButton-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647 !important;
    display: none;
    margin: 0; padding: 0; border: none;
}

/* Active State */
.cartShareButton-overlay.open {
    display: block !important;
}

/* --- 3. The Modal Box (Forced Center) --- */
.cartShareButton-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2147483648 !important;
    box-sizing: border-box;
    margin: 0;
}

/* --- 4. Content Styles --- */
/* New Text Styles */
.cartShareButton-content h3 {
    margin-top: 0;
    color: #3b3b3b;
}

.cartShareButton-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.cartShareButton-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #3b3b3b;
    line-height: 1;
    font-family: sans-serif;
}

/* QR Container Styles */
#cartShareButton-qr-container {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder Text inside QR Container */
#cartShareButton-qr-container span {
    color: #888;
}

.cartShareButton-qr-image {
    margin: 15px auto;
    display: block;
    max-width: 100%;
    border: 1px solid #c2c2c2;
    border-radius: 5px;
}

.cartShareButton-input {
    width: 100%; padding: 10px; margin-bottom: 15px;
    border: 1px solid #ccc; background: #f9f9f9;
    font-size: 13px; color: #555; text-align: center;
    box-sizing: border-box;
}

/* Copy Button */
.cartShareButton-copy-btn {
    background-color: #3b3b3b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: bold;
    line-height: normal;
    margin-bottom: 0px !important;
    transition: background 0.2s;
}
.cartShareButton-copy-btn:hover { opacity: 0.9; }
.cartShareButton-copy-btn.copied { background: #28a745; }