/**
 * Live Chat Widget - Frontend Styles
 */

/* Widget Container */
.ft-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Chat Button */
.ft-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: chatButtonBreathe 3s ease-in-out infinite;
}

@keyframes chatButtonBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    }
}

.ft-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    animation: none;
}

.ft-chat-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Unread Badge */
.ft-chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Chat Window */
.ft-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatWindowSlideUp 0.3s ease;
}

@keyframes chatWindowSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ft-chat-window.open {
    display: flex;
}

/* Window Header */
.ft-chat-window-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ft-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ft-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.ft-chat-header-info h3 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
}

.ft-chat-header-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ft-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.ft-chat-header-actions {
    display: flex;
    gap: 8px;
}

.ft-chat-header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ft-chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ft-chat-header-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Welcome Form */
.ft-chat-welcome-form {
    flex: 1;
    padding: 30px 24px;
    text-align: center;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ft-chat-welcome-form h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.ft-chat-welcome-form p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #64748b;
}

#ft-chat-start-form {
    flex-shrink: 0;
    margin-bottom: 0;
}

.ft-chat-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.ft-chat-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.ft-chat-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ft-chat-form-input:focus {
    outline: none;
    border-color: #667eea;
}

.ft-chat-start-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ft-chat-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ft-chat-start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* FAQ Section - Inside Chat Messages Area */
.ft-chat-faq-section {
    padding: 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    display: none; /* Hidden by default */
    flex: 0 0 auto; /* Don't grow, don't shrink, auto height */
}

.ft-chat-faq-section.visible {
    display: block !important;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ft-chat-faq-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ft-chat-faq-section h4::before {
    content: '❓';
    font-size: 18px;
}

.ft-chat-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-chat-faq-item {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.ft-chat-faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ft-chat-faq-item:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
    border-color: #a78bfa;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ft-chat-faq-item:hover::before {
    opacity: 1;
}

.ft-chat-faq-item:active {
    transform: translateX(2px) scale(0.98);
}

.ft-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #667eea;
    transition: transform 0.3s;
}

.ft-chat-faq-item:hover .ft-faq-icon {
    transform: scale(1.2) rotate(10deg);
}

.ft-faq-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

.ft-faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #94a3b8;
    transition: transform 0.3s;
}

.ft-chat-faq-item:hover .ft-faq-arrow {
    transform: translateX(4px);
    fill: #667eea;
}

/* Messages Area */
.ft-chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: none;
    flex-direction: column;
}

.ft-chat-messages-area.active {
    display: flex;
}

.ft-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto; /* Don't grow, don't shrink, auto height */
}

/* Message Bubbles */
.ft-chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ft-chat-message.customer {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ft-chat-message.admin {
    align-self: flex-start;
}

.ft-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.ft-chat-message.customer .ft-message-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ft-message-content {
    flex: 1;
}

.ft-message-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.ft-chat-message.customer .ft-message-bubble {
    background: #667eea;
    color: white;
}

.ft-message-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.ft-message-time {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.ft-chat-message.customer .ft-message-time {
    text-align: right;
    color: #cbd5e1;
}

/* Input Area */
.ft-chat-input-area {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.ft-chat-input-area.active {
    display: block;
}

.ft-chat-emoji-picker {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.ft-chat-emoji-picker.open {
    display: grid;
}

.ft-emoji-btn {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}

.ft-emoji-btn:hover {
    background: #f1f5f9;
}

.ft-chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
}

/* Attachments Toggle Button (Plus Button) */
.ft-chat-attachments-toggle {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.ft-chat-attachments-toggle:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.ft-chat-attachments-toggle.active {
    background: #5568d3;
    transform: rotate(45deg);
}

.ft-chat-attachments-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

/* Attachments Menu */
.ft-chat-attachments-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Desktop: Always show buttons side by side */
@media (min-width: 769px) {
    .ft-chat-attachments-toggle {
        display: none;
    }
}

/* Image Upload Button */
.ft-chat-image-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ft-chat-image-btn:hover {
    background: #e2e8f0;
    color: #667eea;
}

.ft-chat-image-btn svg {
    width: 20px;
    height: 20px;
}

/* Image Preview */
.ft-chat-image-preview {
    padding: 10px 20px 0;
    background: white;
}

.ft-preview-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f8fafc;
}

.ft-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.ft-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 700;
}

.ft-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Image in Messages */
.ft-message-image {
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    border: 2px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    min-height: 150px;
}

.ft-message-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ft-message-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.ft-message-image img.loaded {
    opacity: 1;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ft-chat-emoji-toggle {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ft-chat-emoji-toggle:hover {
    background: #e2e8f0;
    color: #475569;
}

.ft-chat-emoji-toggle.active {
    background: #667eea;
    color: white;
}

.ft-chat-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
}

.ft-chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.ft-chat-send-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ft-chat-send-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.ft-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Connection Status */
.ft-chat-connection-status {
    padding: 8px 16px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    text-align: center;
    display: none;
}

.ft-chat-connection-status.connecting {
    display: block;
    background: #dbeafe;
    color: #1e40af;
}

.ft-chat-connection-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Scrollbar */
.ft-chat-messages-area::-webkit-scrollbar {
    width: 6px;
}

.ft-chat-messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.ft-chat-messages-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ft-chat-messages-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Prevent body scroll when chat is open */
    body.ft-chat-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    .ft-chat-widget {
        bottom: 16px;
        right: 16px;
        position: fixed;
        z-index: 9998;
    }
    
    .ft-chat-button {
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    
    .ft-chat-button svg {
        width: 28px;
        height: 28px;
    }
    
    .ft-chat-button .ft-chat-unread-badge {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
    
    .ft-chat-window {
        position: fixed !important; /* 固定定位，相对于视口 */
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        z-index: 9999 !important; /* 确保在最上层 */
    }
    
    .ft-chat-window.open {
        display: flex !important;
    }
    
    /* Header adjustments */
    .ft-chat-header {
        padding: 16px 20px;
        flex-shrink: 0;
    }
    
    .ft-chat-header h3 {
        font-size: 18px;
    }
    
    .ft-chat-status {
        font-size: 13px;
    }
    
    .ft-chat-close-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    
    /* Welcome form */
    .ft-chat-welcome-form {
        padding: 24px 20px;
    }
    
    .ft-chat-welcome-form h3 {
        font-size: 22px;
    }
    
    .ft-chat-welcome-form p {
        font-size: 15px;
    }
    
    .ft-chat-form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        height: 48px;
    }
    
    .ft-chat-start-btn {
        font-size: 16px;
        padding: 14px 24px;
        height: 52px;
    }
    
    /* Messages area */
    .ft-chat-messages-area {
        padding: 16px;
    }
    
    .ft-chat-message {
        max-width: 90%;
    }
    
    .ft-message-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .ft-message-content {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .ft-message-time {
        font-size: 11px;
    }
    
    /* FAQ Section */
    .ft-chat-faq-section {
        padding: 16px;
        margin-top: 16px;
    }
    
    .ft-chat-faq-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .ft-chat-faq-item {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 52px; /* Better touch target */
    }
    
    .ft-faq-icon,
    .ft-faq-arrow {
        width: 18px;
        height: 18px;
    }
    
    /* Input area */
    .ft-chat-input-area {
        padding: 12px 16px;
    }
    
    .ft-chat-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .ft-chat-send-btn {
        min-width: 48px;
        height: 48px;
        padding: 0 20px;
        font-size: 15px;
    }
    
    /* Attachments toggle and menu for mobile */
    .ft-chat-attachments-toggle {
        width: 44px;
        height: 44px;
    }
    
    .ft-chat-attachments-menu {
        position: absolute;
        bottom: 60px;
        left: 16px;
        background: white;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        gap: 12px;
        z-index: 10;
    }
    
    .ft-chat-image-btn,
    .ft-chat-emoji-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    /* Emoji picker */
    .ft-chat-emoji-picker {
        padding: 12px;
        max-height: 200px;
        position: absolute;
        bottom: 60px;
        left: 16px;
        right: 16px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }
    
    .ft-chat-emoji-picker.open {
        display: grid !important;
    }
    
    .ft-emoji-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    /* Connection status */
    .ft-chat-connection-status {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .ft-chat-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .ft-chat-button svg {
        width: 26px;
        height: 26px;
    }
    
    /* Make input even larger for small screens */
    .ft-chat-form-input,
    .ft-chat-input {
        font-size: 16px !important;
        padding: 14px 16px;
    }
    
    .ft-chat-message {
        max-width: 85%;
    }
    
    .ft-message-content {
        font-size: 14px;
        padding: 11px 13px;
    }
}

/* Loading State */
.ft-chat-loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.ft-chat-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-bottom: 8px;
}

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

/* Image Preview Modal */
.ft-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.ft-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.ft-image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ft-image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ft-image-modal-close:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .ft-image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .ft-image-modal-close {
        top: 10px;
        right: 10px;
    }
}


