/* 1. PRIMARY WRAPPER & POSITIONING */
#f8-lead-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

#f8-lead-wrapper #f8-lead-box {
    width: 340px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-bottom: 15px;
}

/* 2. HEADER & CLOSE BUTTON */
#f8-lead-wrapper #f8-lead-header {
    background: linear-gradient(135deg, #8c92f6, #f9d78f);
    color: #ffffff;
    padding: 15px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Use .btn class to avoid theme button conflicts */
#f8-lead-wrapper button#f8-chat-close.btn {
    background: #000000;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

/* 3. FORM INPUTS */
#f8-lead-wrapper #f8-lead-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#f8-lead-wrapper #f8-lead-form input, 
#f8-lead-wrapper #f8-lead-form select, 
#f8-lead-wrapper #f8-lead-form textarea {
    border: 1px solid #eeeeee;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 12px;
    text-transform: none;
    color: #333333;
    width: 100%;
    font-size: 14px;
    box-sizing: border-box;
}

/* 4. PHONE FIELD SPECIFICITY FIX */
#f8-lead-wrapper .iti {
    width: 100%;
    display: block;
}

/* Targeting the specific grey container on the left */
#f8-lead-wrapper .iti__country-container {
    background: #f0f0f0;
    border-radius: 12px 0 0 12px;
    border: 1px solid #e5e5e5;
    border-right: none;
    pointer-events: none;
}

#f8-lead-wrapper .iti__selected-country {
    pointer-events: auto;
    background: transparent;
    border: none;
}

#f8-lead-wrapper .iti__selected-dial-code {
    color: #333333;
    font-weight: 700;
    padding-left: 5px;
}

/* Push input text to the right to clear the dial code */
#f8-lead-wrapper input#f8_phone_input {
    padding-left: 95px;
}

/* 5. MAIN TOGGLE BUTTON */
#f8-lead-wrapper button#f8-lead-toggle.btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    float: right;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 6. SUBMIT BUTTON */
#f8-lead-wrapper button#f8-lead-submit.btn {
    background: #8c92f6;
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}

#f8-lead-wrapper button#f8-lead-submit.btn:hover {
    background: #5F2DDE;
}

.f8-phone-row .iti {
	display:flex !important;
	width:auto !important;
}
.f8-phone-row .iti  .iti__country-container{
	position:relative !important;
}