/**
 * Keenvn Admin Pro – Frontend CSS
 * Style cho các thành phần hiển thị bên ngoài website
 */

/* -------------------------------------------------------
   DEMO BUTTON FRONTEND STYLES
------------------------------------------------------- */

/* Demo button styling for frontend */
.keenvn-demo-wrapper {
}

.keenvn-demo-btn {
    width: 100% !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.keenvn-demo-btn:hover {
    text-decoration: none !important;
}

.keenvn-demo-btn .keenvn-demo-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Ensure button takes full width in various themes */
.woocommerce .keenvn-demo-btn,
.woocommerce-page .keenvn-demo-btn {
    width: 100% !important;
    border-radius: 6px !important;
}

/* Theme compatibility */
.single-product .keenvn-demo-btn,
.woocommerce-product .keenvn-demo-btn {
    display: flex !important;
}

/* Storefront theme compatibility */
.storefront .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Astra theme compatibility */
.ast-separate-container .keenvn-demo-btn,
.ast-plain-container .keenvn-demo-btn {
    font-family: inherit !important;
}

/* OceanWP theme compatibility */
.oceanwp-theme .keenvn-demo-btn {
    font-family: inherit !important;
}

/* GeneratePress theme compatibility */
.generate-columns-container .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Kadence theme compatibility */
.kadence-theme .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Neve theme compatibility */
.neve-main .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Blocksy theme compatibility */
.ct-container .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Hello Elementor theme compatibility */
.elementor-kit .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Twenty Twenty-One theme compatibility */
.wp-site-blocks .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Twenty Twenty-Two theme compatibility */
.wp-block-group .keenvn-demo-btn {
    font-family: inherit !important;
}

/* Twenty Twenty-Three theme compatibility */
.is-layout-constrained .keenvn-demo-btn {
    font-family: inherit !important;
}

/* -------------------------------------------------------
   USER PROFILE FIELDS FRONTEND
------------------------------------------------------- */

/* Disabled field styling for frontend */
.keenvn-field-disabled {
    opacity: 0.6 !important;
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    font-style: italic !important;
    color: #666 !important;
}

.keenvn-field-disabled:hover {
    opacity: 0.8 !important;
}

/* Tooltip for disabled fields */
.keenvn-field-disabled[title] {
    position: relative;
}

.keenvn-field-disabled[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    font-style: normal;
}

.keenvn-field-disabled[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* WooCommerce My Account page styling */
.woocommerce-account .keenvn-field-disabled {
    border-color: #ddd !important;
}

/* -------------------------------------------------------
   RESPONSIVE FRONTEND
------------------------------------------------------- */
@media (max-width: 768px) {
    .keenvn-demo-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .keenvn-demo-btn .keenvn-demo-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .keenvn-demo-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .keenvn-demo-btn .keenvn-demo-icon {
        width: 12px;
        height: 12px;
    }
}