#chatbox {
        position: fixed !important;
        bottom: 20px;
        right: 20px;
        width: 320px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,.3);
        font-family: Arial;
        display: none;
        flex-direction: column;
        z-index: 9999999 !important; /* VERY HIGH */
    }

    #chat-toggle {
        position: fixed !important;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: #3366CC;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 60px;
        font-size: 26px;
        cursor: pointer;
        z-index: 9999999 !important; /* VERY HIGH */
    }


    #chat-header {
        background: #3366CC;
        color: white;
        padding: 10px;
        border-radius: 10px 10px 0 0;
        cursor: pointer;
    }

    #chat-body {
        height: 300px;
        overflow: auto;
        padding: 10px;
    }

    #chat-input {
        display: flex;
        border-top: 1px solid #ccc;
    }

        #chat-input input {
            flex: 1;
            padding: 10px;
            border: none;
        }

        #chat-input button {
            background: #3366CC;
            color: white;
            border: none;
            padding: 10px;
        }
    .msg.ai {
        color: #3366CC;
        margin: 5px 0;
    }

    .msg.user {
        color: #000;
        margin: 5px 0;
        text-align: right;
    }

    #chatbox {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 340px;
        background: #1e1e1e;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,.6);
        font-family: Arial;
        display: none;
        flex-direction: column;
        z-index: 9999999;
        color: #e4e4e4;
    }

    #chat-header {
        background: #111;
        color: #fff;
        padding: 12px;
        border-radius: 10px 10px 0 0;
        font-weight: bold;
        border-bottom: 1px solid #333;
    }

    #chat-body {
        height: 300px;
        overflow: auto;
        padding: 12px;
        background: #1e1e1e;
    }

    .msg {
        margin: 6px 0;
        padding: 8px 10px;
        border-radius: 6px;
        max-width: 85%;
        font-size: 14px;
    }

        .msg.user {
            background: #2d6cdf;
            color: white;
            margin-left: auto;
        }

        .msg.ai {
            background: #2a2a2a;
            color: #e4e4e4;
        }

    #chat-input {
        display: flex;
        border-top: 1px solid #333;
        background: #111;
    }

        #chat-input input {
            flex: 1;
            padding: 10px;
            border: none;
            background: #111;
            color: white;
        }

            #chat-input input::placeholder {
                color: #888;
            }

        #chat-input button {
            background: #2d6cdf;
            color: white;
            border: none;
            padding: 10px 14px;
            cursor: pointer;
        }

            #chat-input button:hover {
                background: #1f55b7;
            }

    #chat-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #2d6cdf;
        color: white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        text-align: center;
        font-size: 26px;
        line-height: 60px;
        cursor: pointer;
        z-index: 9999999;
    }

    /* Email / Phone input forms */

    .chat-form {
        padding: 10px;
        display: flex;
        gap: 6px;
        border-top: 1px solid #333;
        background: #111;
    }

        .chat-form input {
            flex: 1;
            padding: 8px;
            border: 1px solid #333;
            background: #1e1e1e;
            color: white;
            border-radius: 4px;
        }

            .chat-form input::placeholder {
                color: #777;
            }

        .chat-form button {
            background: #2d6cdf;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
        }


.custom {
		font-size: 12px;
		color: #a7a7a7 !important;
		font-weight: 600;
		line-height: 1em;
		text-transform: uppercase;
		text-decoration: none;
		outline: none;
		padding: 10px;
		margin-right: 1px;
		background: transparent !important;
		text-shadow: 0px 1px 0px #000;
		-moz-transition: all 0.3s ease;
		-webkit-transition: all 0.3s ease;
		-o-transition: all 0.3s ease;
		transition: all 0.3s ease;
		display: block;
		border: none;
	}

		.custom:hover {
			background: #484848 !important;
			-moz-box-shadow: 0 1px 0px 0px rgba(255, 255, 255, 0.2) inset;
			-webkit-box-shadow: 0 1px 0px 0px rgba(255, 255, 255, 0.2) inset;
			box-shadow: 0 1px 0px 0px rgba(255, 255, 255, 0.2) inset;
			border-radius: 4px;
			-moz-border-radius: 4px;
			-webkit-border-radius: 4px;
			border: none;
		}
/* Keep the existing chat panel inside narrow phone viewports. */
#chatbox { max-width: calc(100% - 40px); }
#chat-input input, .chat-form input { min-width: 0; }
