/**
 * CodeWithViki Social Share
 * Frontend Stylesheet
 *
 * Brand Color: #EE955B
 */

/* =========================================
   Main Wrapper
========================================= */

.cwvss-share-wrapper {
    --cwvss-orange: #EE955B;
    --cwvss-black: #000000;
    --cwvss-border: #DADADA;
    --cwvss-text: #222222;

    display: block;
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

.cwvss-share-wrapper *,
.cwvss-share-wrapper *::before,
.cwvss-share-wrapper *::after {
    box-sizing: border-box;
}

/* =========================================
   Share Heading
========================================= */

.cwvss-share-heading {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    color: var(--cwvss-black);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* =========================================
   Buttons Container
========================================= */

.cwvss-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================
   Common Button Styling
========================================= */

.cwvss-share-wrapper .cwvss-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    max-width: 100%;
    padding: 8px 13px;

    background: transparent !important;
    border: 1px solid var(--cwvss-border) !important;
    border-radius: 6px;

    color: var(--cwvss-text) !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: normal;

    cursor: pointer;
    box-shadow: none !important;

    box-sizing: border-box;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Prevent theme-specific pseudo-elements */

.cwvss-share-wrapper .cwvss-share-button::before,
.cwvss-share-wrapper .cwvss-share-button::after {
    display: none !important;
    content: none !important;
}

/* Remove default browser button styling */

.cwvss-share-wrapper button.cwvss-share-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    text-align: center;
}

/* =========================================
   Font Awesome Icons
========================================= */

.cwvss-share-wrapper .cwvss-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    color: inherit;
    font-size: 17px;
    line-height: 1;
}

.cwvss-share-wrapper .cwvss-share-icon i {
    display: inline-block;
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

/* =========================================
   Button Labels
========================================= */

.cwvss-share-wrapper .cwvss-share-label {
    display: inline-block;
    min-width: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* =========================================
   Hover Effect
========================================= */

.cwvss-share-wrapper .cwvss-share-button:hover {
    background: transparent !important;
    color: var(--cwvss-orange) !important;
    border-color: var(--cwvss-orange) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* =========================================
   Keyboard Focus
========================================= */

.cwvss-share-wrapper .cwvss-share-button:focus {
    outline: 2px solid #EE955B;
    outline-offset: 3px;
}

.cwvss-share-wrapper .cwvss-share-button:focus:not(:focus-visible) {
    outline: none;
}

.cwvss-share-wrapper .cwvss-share-button:focus-visible {
    outline: 2px solid #EE955B;
    outline-offset: 3px;
}

/* =========================================
   Active State
========================================= */

.cwvss-share-wrapper .cwvss-share-button:active {
    background: transparent !important;
    color: var(--cwvss-orange) !important;
    border-color: var(--cwvss-orange) !important;
    transform: translateY(1px);
}

/* =========================================
   Icon Only Style
========================================= */

.cwvss-share-wrapper.cwvss-style-icon-only
.cwvss-share-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 10px;
}

.cwvss-share-wrapper.cwvss-style-icon-only
.cwvss-share-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Label Only Style
========================================= */

.cwvss-share-wrapper.cwvss-style-label-only
.cwvss-share-icon {
    display: none;
}

/* =========================================
   Feedback Message
========================================= */

.cwvss-share-wrapper .cwvss-feedback {
    display: block;
    margin-top: 10px;
    padding: 0;
    color: var(--cwvss-text);
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================
   Responsive Design
========================================= */

@media (max-width: 600px) {

    .cwvss-share-wrapper {
        margin: 20px 0;
    }

    .cwvss-share-buttons {
        gap: 8px;
    }

    .cwvss-share-wrapper .cwvss-share-button {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .cwvss-share-wrapper.cwvss-style-icon-only
    .cwvss-share-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* =========================================
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {

    .cwvss-share-wrapper .cwvss-share-button {
        transition: none;
        transform: none !important;
    }
}
