/**
 * Style frontend dla Markowy Web Core
 */

/* ============================================
   Shortcode: Kopiowanie numeru konta
   ============================================ */

.mwc-copy-account-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    transition: none;
}

.mwc-copy-account-wrapper:hover {
    background-color: transparent;
}

.mwc-copy-label { 
    margin-right: 4px;
}

.mwc-copy-account-number {
    user-select: all;  
}

/* Nadpisanie stylów Elementora dla przycisku kopiowania */
.mwc-copy-button,
.mwc-copy-account-wrapper .mwc-copy-button,
.elementor-widget .mwc-copy-button,
.elementor-element .mwc-copy-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 4px !important;
    margin: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    color: #666 !important;
    transition: color 0.2s ease !important;
    flex-shrink: 0 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.mwc-copy-button:hover,
.mwc-copy-account-wrapper .mwc-copy-button:hover,
.elementor-widget .mwc-copy-button:hover,
.elementor-element .mwc-copy-button:hover {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0073aa !important;
    transform: none !important;
}

.mwc-copy-button:active,
.mwc-copy-account-wrapper .mwc-copy-button:active,
.elementor-widget .mwc-copy-button:active,
.elementor-element .mwc-copy-button:active {
    opacity: 0.7 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
}

.mwc-copy-button:focus,
.mwc-copy-account-wrapper .mwc-copy-button:focus,
.elementor-widget .mwc-copy-button:focus,
.elementor-element .mwc-copy-button:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
    border-radius: 2px !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
}

.mwc-copy-button.mwc-copy-success,
.mwc-copy-account-wrapper .mwc-copy-button.mwc-copy-success,
.elementor-widget .mwc-copy-button.mwc-copy-success,
.elementor-element .mwc-copy-button.mwc-copy-success {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #46b450 !important;
}

.mwc-copy-icon,
.mwc-copy-button .mwc-copy-icon,
.mwc-copy-account-wrapper .mwc-copy-icon,
.elementor-widget .mwc-copy-icon,
.elementor-element .mwc-copy-icon {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Powiadomienie o skopiowaniu - koło przycisku */
.mwc-copy-button {
    position: relative;
}

.mwc-copy-notification {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: rgba(70, 180, 80, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-bottom: 4px;
}

.mwc-copy-notification.mwc-copy-notification-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsywność */
@media (max-width: 768px) {
    .mwc-copy-account-wrapper {
        gap: 3px;
    }
    
    .mwc-copy-icon,
    .mwc-copy-button .mwc-copy-icon,
    .mwc-copy-account-wrapper .mwc-copy-icon,
    .elementor-widget .mwc-copy-icon,
    .elementor-element .mwc-copy-icon {
        width: 12px !important;
        height: 12px !important;
    }
    
    .mwc-copy-notification {
        font-size: 10px;
        padding: 3px 6px;
    }
}

