/* ========================================
   VYN Sticky Buttons - Frontend Styles
   Version: 2.2.0 - All Fixes Applied
   
   FIX #1: Colors from Global Settings only
   FIX #2: Icon spacing improved (gap: 8px)
   FIX #4: Modal responsive without extra padding
   ======================================== */

:root {
    --vyn-bg-dark: #2c3e50;
    --vyn-text-light: #ffffff;
    --vyn-shadow: 0 10px 20px 5px rgb(0 0 0 / 26%);
    --vyn-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --vyn-transition: all 0.2s ease;

    /* Colors ALWAYS from Global Settings (inline CSS overrides these) */
    --btn-primary-bg: #17a2b8;
    --btn-primary-color: #ffffff;
    --btn-primary-hover-bg: #138496;
    --btn-primary-hover-color: #ffffff;
    --btn-secondary-bg: rgba(255, 255, 255, 0.2);
    --btn-secondary-color: #ffffff;
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.3);
    --btn-secondary-hover-color: #ffffff;
}

/* ========================================
   Sticky Bar Container
   ======================================== */
.vyn-sticky-bar {
    position: fixed;
    z-index: 2147483600 !important;
    display: flex;
    background: var(--vyn-bg-dark);
    border: none;
    box-shadow: var(--vyn-shadow);
    /* Animation removed: Menu should be static */
}

/* ========================================
   Bottom Position (Horizontal) - DESKTOP
   ======================================== */
.vyn-sticky-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    max-width: 95%;
    /* Increased from 600px to allow more buttons */
    width: auto;
    /* box-shadow: var(--shadow); */
}

.vyn-sticky-bottom .vyn-sticky-btn {
    flex: 0 1 auto;
    /* Do not force stretch, adapt to content */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
    /* Allow shrinking */
}

.vyn-sticky-bottom .vyn-sticky-btn:last-child {
    border-right: none;
}

/* ========================================
   Right Position (Vertical) - DESKTOP
   ======================================== */
.vyn-sticky-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    flex-direction: column;
}

.vyn-sticky-right .vyn-sticky-btn {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vyn-sticky-right .vyn-sticky-btn:last-child {
    border-bottom: none;
}

.vyn-sticky-btn {
    background: none;
    border: none;
    padding: 16px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* FIX #2: Consistent icon spacing (increased) */
    font-size: 15px;
    font-weight: 500;
    transition: var(--vyn-transition);
    white-space: nowrap;
    /* Keep single line on desktop */
    line-height: 1.2;
    text-align: center;
    color: var(--vyn-text-light);
    position: relative;
    overflow: hidden;
}

.vyn-sticky-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vyn-sticky-btn:hover::before {
    opacity: 1;
}

/* FIX #2: Icon spacing and sizing */
.vyn-sticky-btn i,
.vyn-sticky-btn span[class*="fa"],
.vyn-sticky-btn [class*="icon"] {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

/* ========================================
   Button Colors - ALWAYS from Global Settings
   FIX #1: No local overrides
   ======================================== */
.vyn-btn-primary {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-color) !important;
}

.vyn-btn-primary:hover {
    background: var(--btn-primary-hover-bg) !important;
    color: var(--btn-primary-hover-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vyn-btn-primary:active {
    transform: translateY(0);
}

.vyn-btn-secondary {
    background: var(--btn-secondary-bg) !important;
    color: var(--btn-secondary-color) !important;
}

.vyn-btn-secondary:hover {
    background: var(--btn-secondary-hover-bg) !important;
    color: var(--btn-secondary-hover-color) !important;
    transform: translateY(-2px);
}

.vyn-btn-secondary:active {
    transform: translateY(0);
}

.vyn-btn-green {
    background: #00c800 !important;
    color: #ffffff !important;
}

.vyn-btn-green:hover {
    background: #00b300 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.vyn-btn-green:active {
    transform: translateY(0);
}

.vyn-btn-white {
    background: #ffffff !important;
    color: #1f2933 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.vyn-btn-white:hover {
    background: #f2f4f7 !important;
    color: #111827 !important;
    transform: translateY(-2px);
}

.vyn-btn-white:active {
    transform: translateY(0);
}

/* ========================================
   Modal Container - Modern Design
   ======================================== */
.vyn-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    animation: vynFadeIn 0.3s ease-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vyn-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes vynFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Overlay - Darker with gradient */
.vyn-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    cursor: pointer;
    animation: vynOverlayFadeIn 0.3s ease-out;
}

@keyframes vynOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content - Modern Card Design */
.vyn-modal-content {
    position: relative;
    background: #ffffff;
    max-width: 700px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    overflow: hidden;
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: vynContentSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .vyn-modal-content {
        position: relative;
        background: #ffffff;
        max-width: 700px;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto;
        border: none;
        border-radius: 0 !important;
        box-shadow: var(--vyn-shadow-lg);
        animation: vynContentSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2;
        margin: 0 !important;
    }
}

@keyframes vynContentSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth scrollbar */
.vyn-modal-content::-webkit-scrollbar {
    width: 8px;
}

.vyn-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.vyn-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.vyn-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal Close Button - Modern Design */
.vyn-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-radius: 12px;
    font-weight: 300;
}

.vyn-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.vyn-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Modal Body - Modern Design with Scrollable Area */
.vyn-modal-body {
    padding: 32px 32px 32px 32px;
    /* Уменьшили с 60px до 32px */
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for modal body */
.vyn-modal-body::-webkit-scrollbar {
    width: 6px;
}

.vyn-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.vyn-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.vyn-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.vyn-modal-body h2 {
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.vyn-modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #475569;
    font-size: 16px;
}

.vyn-modal-body p:last-child {
    margin-bottom: 0;
}

/* ========================================
   WordPress Content Formatting
   ======================================== */

.vyn-wp-content {
    line-height: 1.8;
    color: #475569;
}

.vyn-wp-content p {
    margin: 0 0 20px 0;
    /* Увеличили с 16px до 20px */
    line-height: 1.8;
    /* Увеличили с 1.7 до 1.8 */
    color: #475569;
    font-size: 16px;
}

.vyn-wp-content p:last-child {
    margin-bottom: 0;
}

/* Обеспечиваем что параграфы видны как блоки */
.vyn-wp-content p {
    display: block;
}

.vyn-wp-content h1,
.vyn-wp-content h2,
.vyn-wp-content h3,
.vyn-wp-content h4,
.vyn-wp-content h5,
.vyn-wp-content h6 {
    margin: 28px 0 20px 0;
    /* Увеличили отступы */
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.vyn-wp-content h1:first-child,
.vyn-wp-content h2:first-child,
.vyn-wp-content h3:first-child {
    margin-top: 0;
}

.vyn-wp-content h1 {
    font-size: 32px;
}

.vyn-wp-content h2 {
    font-size: 28px;
}

.vyn-wp-content h3 {
    font-size: 24px;
}

.vyn-wp-content h4 {
    font-size: 20px;
}

.vyn-wp-content h5 {
    font-size: 18px;
}

.vyn-wp-content h6 {
    font-size: 16px;
}

.vyn-wp-content ul,
.vyn-wp-content ol {
    margin: 0 0 20px 0;
    /* Увеличили с 16px */
    padding-left: 28px;
}

.vyn-wp-content li {
    margin-bottom: 10px;
    /* Увеличили с 8px */
    line-height: 1.7;
}

.vyn-wp-content li:last-child {
    margin-bottom: 0;
}

.vyn-wp-content strong,
.vyn-wp-content b {
    font-weight: 600;
    color: #1e293b;
}

.vyn-wp-content em,
.vyn-wp-content i {
    font-style: italic;
}

.vyn-wp-content a {
    color: #17a2b8;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.vyn-wp-content a:hover {
    color: #138496;
}

.vyn-wp-content blockquote {
    margin: 24px 0;
    /* Увеличили с 20px */
    padding: 20px 24px;
    /* Увеличили padding */
    border-left: 4px solid #17a2b8;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}

.vyn-wp-content pre,
.vyn-wp-content code {
    font-family: 'Courier New', Courier, monospace;
    background: #f1f5f9;
    border-radius: 4px;
}

.vyn-wp-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
    /* Увеличили с 16px */
}

.vyn-wp-content code {
    padding: 2px 6px;
    font-size: 14px;
}

.vyn-wp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    /* Увеличили с 16px */
}

/* Preserve line breaks */
.vyn-wp-content br {
    display: block;
    content: "";
    margin: 10px 0;
    /* Увеличили с 8px */
}

/* iFrame for Videos - Modern Style */
.vyn-modal-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
    margin: 24px 0 0 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contact Form 7 in Modal - Modern Design */
.vyn-modal-body .wpcf7 {
    margin: 24px 0 0 0;
}

.vyn-modal-body .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vyn-modal-body .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.vyn-modal-body .wpcf7-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #f8fafc;
}

.vyn-modal-body .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--btn-primary-bg);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 162, 184, 0.1);
}

.vyn-modal-body .wpcf7-form-control::placeholder {
    color: #94a3b8;
}

.vyn-modal-body .wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

.vyn-modal-body .wpcf7-submit {
    background: var(--btn-primary-bg);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-top: 8px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.vyn-modal-body .wpcf7-submit:hover {
    background: var(--btn-primary-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.3);
}

.vyn-modal-body .wpcf7-submit:active {
    transform: translateY(0);
}

.vyn-modal-body .wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* CF7 Response Messages - Modern Alerts */
.vyn-modal-body .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    border: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vyn-modal-body .wpcf7-mail-sent-ok {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.vyn-modal-body .wpcf7-mail-sent-ng {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.vyn-modal-body .wpcf7-validation-errors {
    background: #f7c814;
    color: #000 !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 4px !important;
}

.vyn-modal-body .wpcf7-spam-blocked {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* CF7 Validation Errors for Fields */
.vyn-modal-body .wpcf7-not-valid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.vyn-modal-body .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Loading State for Form */
.vyn-modal-body .wpcf7 form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

.vyn-modal-body .wpcf7 form.submitting .wpcf7-submit::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================
   Loading State
   ======================================== */
.vyn-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
}

.vyn-modal-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--btn-primary-bg);
    border-radius: 50%;
    animation: vynSpin 1s linear infinite;
}

@keyframes vynSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vyn-sticky-btn:focus-visible,
.vyn-modal-close:focus-visible {
    outline: 2px solid var(--btn-primary-bg);
    outline-offset: 2px;
}

/* ========================================
   MOBILE - FIX #4: Clean responsive
   ======================================== */
@media (max-width: 768px) {

    /* Bottom position - Full width */
    .vyn-sticky-bottom {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        width: 100%;
        border-radius: 0 !important;
        padding: 0;
    }

    .vyn-sticky-bottom .vyn-sticky-btn {
        border-radius: 0 !important;
        /* FIX: Buttons need padding to clear safe area */
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 20px)) !important;
    }

    /* Right position - Horizontal at bottom */
    .vyn-sticky-right {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        width: 100%;
        border-radius: 0 !important;
        padding: 0 0 env(safe-area-inset-bottom, 0);
    }

    .vyn-sticky-right .vyn-sticky-btn {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 !important;
    }

    .vyn-sticky-right .vyn-sticky-btn:last-child {
        border-right: none;
    }



    .vyn-sticky-btn {
        padding: 14px 16px;
        font-size: 14px;
        white-space: normal;
        /* Allow wrapping on mobile */
        line-height: 1.2;
        text-align: left;
        /* FIX: Left align text */
        justify-content: flex-start;
        /* FIX: Align flex content to start */
    }

    .vyn-sticky-btn .vyn-btn-text {
        text-align: left;
        /* FIX: Left align text block */
        display: inline-block;
    }

    .vyn-sticky-btn i,
    .vyn-sticky-btn [class*="fa"],
    .vyn-sticky-btn [class*="icon"] {
        font-size: 20px;
    }

    /* Modal - Modern Mobile Design */
    .vyn-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .vyn-modal-body {
        padding: 56px 20px 20px 20px;
    }

    .vyn-modal-body h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .vyn-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .vyn-modal-body .wpcf7-form-control {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .vyn-modal-body .wpcf7-submit {
        padding: 16px 24px;
        font-size: 16px;
    }

    /* FIX: Horizontal Scroll for Many Buttons (Text Mode) */
    .vyn-sticky-bottom:not(.vyn-mobile-icons),
    .vyn-sticky-right:not(.vyn-mobile-icons) {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vyn-sticky-bottom:not(.vyn-mobile-icons)::-webkit-scrollbar,
    .vyn-sticky-right:not(.vyn-mobile-icons)::-webkit-scrollbar {
        display: none;
    }

    .vyn-sticky-bottom:not(.vyn-mobile-icons) .vyn-sticky-btn,
    .vyn-sticky-right:not(.vyn-mobile-icons) .vyn-sticky-btn {
        flex: 1 0 auto;
        min-width: 140px;
        /* Default for 3+ buttons: force scroll if needed */
        max-width: 250px;
    }

    /* Logic for exactly 1 button: 100% width, no min-width constraint */
    .vyn-sticky-bottom:not(.vyn-mobile-icons) .vyn-sticky-btn:first-child:nth-last-child(1),
    .vyn-sticky-right:not(.vyn-mobile-icons) .vyn-sticky-btn:first-child:nth-last-child(1) {
        min-width: 0 !important;
        width: 100%;
        max-width: none;
    }

    /* Logic for exactly 2 buttons: 50% each, no scroll */
    .vyn-sticky-bottom:not(.vyn-mobile-icons) .vyn-sticky-btn:first-child:nth-last-child(2),
    .vyn-sticky-bottom:not(.vyn-mobile-icons) .vyn-sticky-btn:first-child:nth-last-child(2)~.vyn-sticky-btn,
    .vyn-sticky-right:not(.vyn-mobile-icons) .vyn-sticky-btn:first-child:nth-last-child(2),
    .vyn-sticky-right:not(.vyn-mobile-icons) .vyn-sticky-btn:first-child:nth-last-child(2)~.vyn-sticky-btn {
        min-width: 0 !important;
        flex: 1 1 50%;
        max-width: none;
    }
}

/* Extra small devices - FIX #4 */
@media (max-width: 480px) {
    .vyn-sticky-btn {
        padding: 12px 14px;
    }

    .vyn-modal-content {
        width: 100% !important;
        max-width: 100%;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .vyn-modal-body {
        /* FIX: Top padding increased to avoid close button overlap (40px btn + 12px top + gap) */
        padding: 60px 16px 20px 16px;
    }

    .vyn-modal-body h2 {
        font-size: 18px;
    }

    .vyn-modal-body iframe {
        margin-top: 0;
    }
}

/* Scroll Lock Helper */
body.vyn-lock-scroll {
    overflow: hidden !important;
    height: 100dvh;
    /* dynamic view height */
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .vyn-sticky-bar,
    .vyn-modal {
        display: none !important;
    }
}

/* ========================================
   RIGHT POSITION COMPACT STYLE
   ======================================== */

/* Compact style for right position */
.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact {
    width: 60px;
    /* Узкая полоса */
    padding: 0;
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-sticky-btn {
    width: 100%;
    min-height: 60px;
    padding: 12px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-sticky-btn i {
    font-size: 24px;
    margin: 0;
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-btn-text {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary, #17a2b8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1;
    margin-right: 0;
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-sticky-btn:hover .vyn-btn-text {
    opacity: 1;
    transform: translateY(-50%) translateX(-8px);
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-btn-primary .vyn-btn-text {
    background: var(--primary, #17a2b8);
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-btn-secondary .vyn-btn-text {
    background: var(--secondary, #6c757d);
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-btn-green .vyn-btn-text {
    background: #00c800;
    color: #ffffff;
}

.vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-btn-white .vyn-btn-text {
    background: #ffffff;
    color: #1f2933;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Mobile: Compact style becomes horizontal bottom bar */
@media (max-width: 768px) {
    .vyn-sticky-bar.vyn-sticky-right.vyn-right-compact {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-evenly;
        transform: translateX(0);
        border-radius: 0;
    }

    .vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-sticky-btn {
        min-height: 56px;
        width: auto;
        flex: 1;
    }

    .vyn-sticky-bar.vyn-sticky-right.vyn-right-compact .vyn-btn-text {
        display: none;
        /* На мобильных только иконки */
    }
}

/* ========================================
   VERTICAL TEXT ORIENTATION (RIGHT POSITION)
   ======================================== */

/* ВАЖНО: Horizontal - иконка слева от текста (уже работает через flex + gap) */
.vyn-sticky-bar.vyn-sticky-right.vyn-text-horizontal .vyn-sticky-btn {
    flex-direction: row;
    /* иконка → текст */
}


/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    .vyn-sticky-bar,
    .vyn-modal,
    .vyn-modal-overlay,
    .vyn-modal-content,
    .vyn-sticky-btn,
    .vyn-modal-close {
        animation: none;
        transition: none;
    }
}



.vyn-modal-body .vyn-cf7-wrapper .formular__block .formular_box .formular_content {
    background-color: transparent !important;
    border-radius: none !important;
    padding: 25px 10px !important;
}

/* ========================================
   Mobile Display Option: Icons Only
   ======================================== */
@media (max-width: 768px) {
    .vyn-mobile-icons .vyn-sticky-btn .vyn-btn-text {
        display: none;
    }

    .vyn-mobile-icons .vyn-sticky-btn {
        justify-content: center;
        padding: 12px !important;
        flex: 1;
        /* FIX: Spread buttons evenly */
    }

    .vyn-mobile-icons .vyn-sticky-btn i {
        margin: 0;
    }
}
