/* Filecheck WooCommerce Frontend Styles */

/* Inline slot styling */
.fc-slot-wrapper {
    margin: 20px 0;
    width: 100%;
    min-height: 80px;
    clear: both;
}

/* Blocked Add to Cart button style */
.single_add_to_cart_button.fc-blocked {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Premium Dialog mode trigger button */
.fc-trigger-btn {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px !important;
    margin-bottom: 0 !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 24px !important;
    height: 48px !important;
    line-height: 48px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.fc-trigger-btn:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -2px rgba(79, 70, 229, 0.15) !important;
    transform: translateY(-1px) !important;
}

.fc-trigger-btn:active {
    transform: translateY(1px) !important;
}

/* Modal Overlay with Glassmorphism */
.fc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-modal-overlay.fc-show {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Box */
.fc-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.fc-modal-overlay.fc-show .fc-modal-content {
    transform: scale(1);
}

/* Close Button */
.fc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.fc-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Body */
.fc-modal-body {
    padding: 30px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Ensure iframe within shadow DOM container inside slot handles resizing well */
.fc-slot-wrapper iframe {
    border: none !important;
    width: 100% !important;
    display: block !important;
}
