/* WooCommerce Share Cart Pro Styles - Enhanced */

:root {
    --wcsc-primary:  #eb0028;;
    --wcsc-primary-dark:  #b30b27;;
    --wcsc-secondary: #48bb78;
    --wcsc-danger: #f56565;
    --wcsc-dark: #2d3748;
    --wcsc-light: #f7fafc;
    --wcsc-whatsapp: #25D366;
    --wcsc-facebook: #1877f2;
    --wcsc-twitter: #1DA1F2;
    --wcsc-telegram: #0088cc;
    --wcsc-email: #ea4335;
}

* {
    box-sizing: border-box;
}

/* Botones principales */
.wcsc-share-button,
.wcsc-share-button-mini,
.wcsc-shortcode-button {
    background-color: white !important;
    color: #0170b9  !important;
    border: none;
    padding: 12px 24px;
    border-radius: 45px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.wcsc-share-button:before,
.wcsc-share-button-mini:before,
.wcsc-shortcode-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.wcsc-share-button:hover:before,
.wcsc-share-button-mini:hover:before,
.wcsc-shortcode-button:hover:before {
    left: 100%;
}

.wcsc-share-button:hover,
.wcsc-share-button-mini:hover,
.wcsc-shortcode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(102, 126, 234, 0.35);
}

.wcsc-share-button .dashicons,
.wcsc-share-button-mini .dashicons,
.wcsc-shortcode-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .wcsc-share-button,
    .wcsc-share-button-mini,
    .wcsc-shortcode-button {
        width: 100%;
    }
}

/* Modal mejorado */
.wcsc-share-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: wcscFadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wcsc-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: wcscSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: 18px 5px;
}

.wcsc-modal-header {
   
    color: white;
    padding: 4px 28px;
    position: relative;
    text-align: center;
}

.wcsc-modal-header:before {
    content: '';  
    height: 50px;
    background: white; 
}

.wcsc-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.wcsc-modal-body {
    padding: 40px 28px 28px;
    background: white;
}
.wcsc-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.wcsc-close:before,
.wcsc-close:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 2px;
}

.wcsc-close:before {
    transform: rotate(45deg);
}

.wcsc-close:after {
    transform: rotate(-45deg);
}

.wcsc-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* URL Container Enhanced */
.wcsc-share-url-container {
    display: flex;
    margin-bottom: 24px;
    background: #f8f9ff;
    border: 2px solid #e8ebff;
    border-radius: 45px;
    padding: 4px;
    transition: all 0.3s ease;
}

.wcsc-share-url-container:focus-within {
    border-color: var(--wcsc-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.wcsc-share-url-container input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--wcsc-dark);
    font-family: 'Courier New', monospace;
}

.wcsc-share-url-container input:focus {
    outline: none;
}

#wcsc-copy-url {
    background: var(--wcsc-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 45px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#wcsc-copy-url:hover {
    background: var(--wcsc-primary-dark);
    transform: translateY(-1px);
}

/* Share Methods Label */
.wcsc-share-label {
    text-align: center;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Botones de redes sociales mejorados */
a#wcsc-share-whatsapp {
    padding: 15px;
    border-radius: 45px;
    background-color: #2aa340;
    color: white;
    font-weight: 500;
}

.wcsc-share-buttons {
   display: flex;
   gap: 12px;
   margin-bottom: 20px;
   flex-direction: column;
   align-items: center;
}
.wcsc-share-button-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 45px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wcsc-share-button-social:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.wcsc-share-button-social:hover:before {
    left: 100%;
}

.wcsc-share-button-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    color: white;
}

.wcsc-share-button-social .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wcsc-whatsapp { 
    background: var(--wcsc-whatsapp); 
}

.wcsc-facebook { 
    background: linear-gradient(135deg, #1877f2 0%, #0c5ed7 100%); 
}

.wcsc-twitter { 
    background: linear-gradient(135deg, #1DA1F2 0%, #0c85d0 100%); 
}

.wcsc-telegram { 
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%); 
}

.wcsc-email { 
    background: linear-gradient(135deg, #ea4335 0%, #cc2e21 100%); 
}
/* Código QR Enhanced */
.wcsc-qr-container {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border-radius: 12px;
    margin-top: 20px;
    position: relative;
}

.wcsc-qr-container h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wcsc-dark);
}

.wcsc-qr-container canvas {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Toast Notifications Enhanced */
.wcsc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    color: var(--wcsc-dark);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: wcscSlideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 4px solid var(--wcsc-primary);
}

.wcsc-toast.success { 
    border-left-color: var(--wcsc-secondary);
}

.wcsc-toast.success .dashicons {
    color: var(--wcsc-secondary);
}

.wcsc-toast.error { 
    border-left-color: var(--wcsc-danger);
}

.wcsc-toast.error .dashicons {
    color: var(--wcsc-danger);
}

.wcsc-toast .dashicons {
    font-size: 24px;
}
/* Animaciones mejoradas */
@keyframes wcscFadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes wcscSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes wcscSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading spinner mejorado */
.wcsc-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Share button mini width */
.wcsc-share-button-mini {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

/* Responsive mejorado */
@media (max-width: 600px) {
    .wcsc-share-button,
    .wcsc-share-button-mini,
    .wcsc-shortcode-button {
        margin-top: 10px;
    }
    .wcsc-modal-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        position: fixed;
        left: 0;
        right: 0;
        animation: wcscSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .wcsc-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .wcsc-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        min-width: auto;
    }
}

@keyframes wcscSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Fix para z-index en algunos temas */
.wcsc-share-modal * {
    box-sizing: border-box;
}

/* Mejora para el foco en accesibilidad */
.wcsc-share-button:focus,
.wcsc-share-button-social:focus,
#wcsc-copy-url:focus {
    outline: 2px solid var(--wcsc-primary);
    outline-offset: 2px;
}