.insta-quote-styler-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 16px;
    text-align: center;
    color: #222222;
    font-size: 18px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    pointer-events: auto !important;
}

.insta-quote-styler-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff00cc, #3333ff) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.insta-quote-styler-quote:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.insta-quote-styler-quote::after {
    display: none;
}

.insta-quote-styler-quote .insta-quote-styler-body {
    position: relative;
    z-index: 1;
}

.insta-quote-styler-quote .insta-quote-styler-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    z-index: 50;
    pointer-events: auto !important;
    width: 100%;
    padding: 10px;
}

.insta-quote-styler-quote .insta-quote-styler-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    /* default: transparent for social buttons; copy button overrides this */
    background: transparent;
    color: inherit;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    width: 44px;
    height: 44px;
    margin: 5px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
    z-index: 100;
    user-select: none;
}

/* Copy button should retain solid black background and text label */
.insta-quote-styler-action--copy {
    background: #000080 !important; /* navy for copy */
    color: #ffffff !important;
    padding: 10px 18px !important;
    width: auto;
    height: auto;
    min-width: 64px;
}

.insta-quote-styler-quote .insta-quote-styler-action:hover,
.insta-quote-styler-quote .insta-quote-styler-action:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(51, 51, 255, 0.35);
}

.insta-quote-styler-quote .insta-quote-styler-action--active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 0, 204, 0.4);
    /* Keep the active state visually consistent (no color shift) */
    background: #000000 !important;
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% { transform: translateY(-1px) scale(1.02); }
    50% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(-1px) scale(1.02); }
}

.insta-quote-styler-quote .insta-quote-styler-action .dashicons {
    /* hide icons — show text label only (e.g. "Copy") */
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* For social buttons (not copy), show icons and hide any text labels */
.insta-quote-styler-action--facebook .dashicons,
.insta-quote-styler-action--instagram .dashicons,
.insta-quote-styler-action--whatsapp .dashicons,
.insta-quote-styler-action--telegram .dashicons {
    display: inline-block !important;
}

/* Ensure copy button doesn't show dashicon */
.insta-quote-styler-action--copy .dashicons {
    display: none !important;
}

/* Social buttons: brand-colored backgrounds and white icons */
.insta-quote-styler-action--facebook {
    background: #3b5998 !important; /* Facebook official */
}
.insta-quote-styler-action--facebook .dashicons {
    color: #ffffff !important;
}

.insta-quote-styler-action--whatsapp {
    background: #0f9806 !important; /* WhatsApp official-ish green */
}
.insta-quote-styler-action--whatsapp .dashicons {
    color: #ffffff !important;
}

.insta-quote-styler-action--telegram {
    background: #0088cc !important; /* Telegram blue */
}
.insta-quote-styler-action--telegram .dashicons {
    color: #ffffff !important;
}

.insta-quote-styler-action--instagram {
    /* Instagram gradient background */
    background: linear-gradient(45deg, #f58529 0%, #dd2a7b 30%, #8134af 60%, #515bd4 100%) !important;
}
.insta-quote-styler-action--instagram .dashicons {
    color: #ffffff !important; /* icon white over gradient */
}

.insta-quote-styler-quote .insta-quote-styler-reaction {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    flex-wrap: wrap;
    pointer-events: none;
}

.insta-quote-styler-quote .insta-quote-styler-reaction .insta-quote-styler-emoji {
    pointer-events: auto;
}

.insta-quote-styler-quote .insta-quote-styler-reaction--top {
    margin-bottom: 20px;
}

.insta-quote-styler-quote .insta-quote-styler-reaction--bottom {
    margin-top: 20px;
}

.insta-quote-styler-quote .insta-quote-styler-emoji {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    animation: emojiFloat 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.insta-quote-styler-quote .insta-quote-styler-emoji:hover {
    transform: scale(1.2);
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@media (min-width: 768px) {
    .insta-quote-styler-quote {
        max-width: 600px;
        font-size: 19px;
        padding: 32px 48px;
    }

    .insta-quote-styler-quote .insta-quote-styler-actions {
        gap: 16px;
    }

    .insta-quote-styler-quote .insta-quote-styler-action {
        padding: 10px 24px;
    }
}

.prose blockquote {
    border-left-color: white;
    border-left-width: 0;
}

