/* Share Cart Modal and Button Styles */

.sharecart-modal-overlay * {
    box-sizing: border-box;
}

.sharecart-modal-overlay {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}

.sharecart-modal-overlay.open {
    display: flex !important;
}

.sharecart-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 480px;
    animation: sharecartModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes sharecartModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sharecart-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.sharecart-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
}

.sharecart-modal-close {
    color: #94a3b8;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.sharecart-modal-close:hover {
    color: #475569;
}

.sharecart-modal-body {
    padding: 24px;
    font-family: inherit;
}

.sharecart-share-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.sharecart-share-row input[type="email"] {
    flex: 1;
    height: 42px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.15s;
}

.sharecart-share-row input[type="email"]:focus {
    border-color: #1b3e85;
}
input#sharecart-whatsapp-input:focus {
    border: none;
    border-radius: 0;
}
.sharecart-share-row button {
    height: 42px;
    gap: 5px;
    white-space: nowrap;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, border-color 0.15s;
    border: none;
}

#sharecart-email-btn {
    background: #1b3e85;
    color: #ffffff;
    padding: 0 5px;
}

#sharecart-email-btn:hover {
    background: #122c60;
}

#sharecart-whatsapp-btn {
    background: #25d366;
    color: #ffffff;
}

#sharecart-whatsapp-btn:hover {
    background: #1ebd58;
}

.sharecart-whatsapp-wrapper {
    display: flex;
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    height: 42px;
    background: #f8fafc;
}

.sharecart-whatsapp-wrapper span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    color: #64748b;
    border-right: 1px solid #cbd5e1;
    background: #f1f5f9;
    font-weight: 600;
}

.sharecart-whatsapp-wrapper input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    outline: none;
    height: 100%;
}

/* Response message alerts */
#sharecart-email-msg, #sharecart-whatsapp-msg {
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
}

#sharecart-email-msg.success, #sharecart-whatsapp-msg.success {
    display: block !important;
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

#sharecart-email-msg.error, #sharecart-whatsapp-msg.error {
    display: block !important;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@media (max-width: 576px) {
    .sharecart-share-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .sharecart-share-row input[type="email"],
    .sharecart-whatsapp-wrapper {
        width: 100% !important;
        flex: none !important;
    }
    .sharecart-share-row button {
        width: 100% !important;
        margin-top: 2px;
    }
}

/* Product page Share Button layout */
.sharecart-button-container {
    text-align: right;
    margin-bottom: 8px;
    width: 100%;
}

.sharecart-btn {
    
    color: #005a54 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sharecart-btn:hover {
    opacity: 0.8;
}

.sharecart-btn i {
    font-size: 16px;
    color: #005a54 !important;
}
