/* ==============================
   Tyrefit Filter – Base Styles (Elementor-safe)
   ============================== */
.elementor-widget-shortcode .tyrefit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.elementor-widget-shortcode .tyrefit-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.elementor-widget-shortcode .tyrefit-input {
    width: 260px;           /* default desktop width */
    max-width: 100%;        /* responsive */
    height: 36px;           /* desktop height */
    padding: 6px 10px;
    font-size: 14px;        /* desktop font */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.elementor-widget-shortcode .tyrefit-button {
    width: 260px;           /* default desktop width */
    max-width: 100%;        /* responsive */
    height: 36px;           /* desktop height */
    background-color: #495057;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;        /* desktop font */
    font-weight: 600;
    cursor: pointer;

    /* Center the text */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;             /* remove padding to center text */
    transition: background-color 0.3s ease;
}

.elementor-widget-shortcode .tyrefit-button:hover {
    background-color: #4d90fe;
}

/* ==============================
   Result container (no jump logic)
   ============================== */
.elementor-widget-shortcode .tyrefit-result {
    width: 260px;
    max-width: 100%;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    /* min-height removed */
}

/* ==============================
   Result states
   ============================== */
.elementor-widget-shortcode .tyrefit-result .success {
    color: #00ffcc;
}

.elementor-widget-shortcode .tyrefit-result .error {
    color: #ff6b6b;
}

.elementor-widget-shortcode .tyrefit-result .loading {
    opacity: 0.7;
}

/* ==============================
   Mobile-specific tweaks
   ============================== */
@media (max-width: 767px) {

    /* Input tweaks */
    .elementor-widget-shortcode .tyrefit-input {
        width: 100%;
        height: 44px;         /* taller for touch screens */
        font-size: 16px;      /* bigger font */
        padding: 8px 12px;
    }

    /* Button tweaks */
    .elementor-widget-shortcode .tyrefit-button {
        width: 100%;
        height: 44px;
        font-size: 16px;
		font-weight: 600;
        border-radius: 6px;
    }

    /* Result tweaks */
    .elementor-widget-shortcode .tyrefit-result {
        width: 100%;
        font-size: 18px;
        margin-top: 8px;
        /* min-height removed */
    }
}
