/**
* 2025 Hugo Herreros
*
* NOTICE OF LICENSE
*
*  @author    Hugo Herreros <info@hugoherreros.com>
*  @copyright 2009-2025 Hugo Herreros
*  @license   Property of Hugo Herreros SL Non redistributable.
*/

body#module-datafine-productrecommender #inner-wrapper {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#content-wrapper .page-title{
    padding: 0;
    margin: 0;
}

#datafine-recommender-container {
    width: 100%;
}

/* Search Section */
.datafine-search-section {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.datafine-title-container{
    display: flex;
    justify-content: center;
}

.datafine-title {
    max-width: 800px;
    font-size: 42px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 40px 0;
    line-height: 1.2;
    text-transform: none !important;
}

.datafine-title span {
    color: #1a1a1a;
}

/* Search Box */
.datafine-search-box {
    max-width: 600px;
    margin: 0 auto;
}

.datafine-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.datafine-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.datafine-input-container:focus-within {
    border-color: #999;
}

.datafine-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    padding: 0;
    margin: 0;
    resize: none;
    overflow: hidden;
    min-height: 24px;
    max-height: 150px;
    line-height: 24px;
    font-family: inherit;
}

.datafine-input::placeholder {
    color: #999;
}

/* Clear button inside input */
.datafine-clear-btn {
    display: none;
    width: 20px;
    height: 20px;
    background: #666;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.datafine-clear-btn:hover {
    background: #444;
}

.datafine-clear-btn.visible {
    display: flex;
}

/* Search Button */
.datafine-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #f1d5a8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
    color: #fff;
    padding: 0;
    margin: 0;
    opacity: 0.4;
}

.datafine-btn.active {
    opacity: 1;
}

.datafine-btn.active:hover {
    background: #e1b46b;
}

.datafine-btn.active:active {
    transform: scale(0.95);
}

.datafine-btn:disabled {
    cursor: default;
    transform: none;
}

.datafine-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Helper text */
.datafine-helper-text {
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

/* Loader */
.datafine-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.datafine-loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #e9ba6e;
    border-radius: 50%;
    animation: datafine-spin 0.8s linear infinite;
}

@keyframes datafine-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error */
.datafine-error-section {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.datafine-error-section .alert {
    margin-bottom: 0;
    text-align: center;
}

.product-miniature .product-flag.datafine_distance{
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
    color: #333333;
    background-color: #ffffff;
    position: absolute;
    top: 5%;
    left: 5%;
}

.product-miniature .product-flag.datafine_distance .product-datafine_distance-value{
    font-weight: 600;
}

.datafine-search-btn-text{
    display: none;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    padding-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .datafine-search-section {
        padding: 10px 15px 40px;
    }

    .datafine-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .datafine-input {
        font-size: 14px;
        padding: 0;
    }

    .datafine-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .datafine-btn svg {
        width: 20px;
        height: 20px;
    }
    .product-miniature .product-flag.datafine_distance{
        font-size: 10px;
        padding: 4px 7px;
    }
}

@media (max-width: 570px) {
    .datafine-input-wrapper{
        flex-wrap: wrap;
    }
    .datafine-input-container{
        flex: 0 1 100%;
    }
    .datafine-btn{
        width: 100%;
    }
    .datafine-search-btn-text{
        display: inline-block;
    }
    .datafine-btn svg {
        color: #333333;
    }
}


@media (max-width: 480px) {
    .datafine-title {
        font-size: 24px;
    }

    .datafine-search-section {
        padding: 10px 10px 30px;
    }

    .datafine-input-wrapper {
        gap: 8px;
    }
}
