/**
 * Trinity Chatbot Frontend Styles
 */

 
.trinity-chatbot-container button{
    border:none!important;
}

/* Container Styles */
.trinity-chatbot-container {
    position: relative;
    z-index: 9990;
}
 .trinity-chatbot-toggle { 
 }
.trinity-chatbot-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    background: var(--c-blue1, #0073aa);
    background: linear-gradient(30deg, var(--c-blue1, #0073aa) 0%, var(--c-blue2, #005a87) 100%);
    color: white !important;
    border: none;
    border-radius: 1.5em;
    padding: 0.8em 0.8em;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    width: 100%;
    text-transform: unset;
}

.trinity-chatbot-toggle-btn.hide {
    transform:translateY(200%);
    opacity: 0;
}
.trinity-chatbot-toggle-btn:before {
    content: '\f0e6'; /* FontAwesome chat icon */
    font-family: 'Font Awesome 6 Free', FontAwesome, 'dashicons';
    font-size: 1.25em;
    display: block;
}

.trinity-chatbot-toggle-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.trinity-chatbot-toggle-btn .trinity-chatbot-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    display: inline-block;
}

/* Popup Styles */
.trinity-chatbot-popup { 
    position: fixed;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 600px;
    background-color: white;
    border-radius: 0.5em;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    flex-direction: column;
    display: flex ;
    transform:translateY(200%);

    transition: all 0.3s ease;
    opacity: 0;
}

.trinity-chatbot-popup.active {
   transform:translateY(0);
   opacity: 1;
}

/* Popup Header */
.trinity-chatbot-popup-header {

    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    display: flex
;
    left: 0;
    justify-content: end;
    background: #fff;
}

.trinity-chatbot-popup-header .whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
}
.trinity-chatbot-popup-header .whatsapp a{
    padding: 0.3em 0.6em;
    display: flex
;
    gap: 0.4em;
    line-height: 1;
    align-items: center;
    border: 2px solid #080;
    border-radius: 1.5em;
    color: #080;

    font-size: 0.875em;
}

.trinity-chatbot-popup-header .whatsapp a:before {
  content: '\f232';
font-family: 'Font Awesome 5 Brands', sans-serif;
display: block;
font-size: 1.25em;
font-weight: 400;
vertical-align: middle;
line-height: 1;
    
}

.trinity-chatbot-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.trinity-chatbot-close-btn {
    background: none;
    border: none; 
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    /* width: 24px; */
    /* height: 24px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
}

.trinity-chatbot-close-btn:hover {

    color: var(--c-blue1) !important;
    background: none !important;
}
/* Popup Content */
.trinity-chatbot-popup-content {
    flex: 1;
}

/* User Form */
.trinity-chatbot-user-form {
    display: flex;
    padding: 1em;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: left;
    
}

.trinity-chatbot-form-group {
    margin-bottom: 15px;
}

.trinity-chatbot-form-group label {
    display: block;
    margin-bottom: 0.5em;
    /* font-weight: 500; */
    font-size: 0.875em;
}

.trinity-chatbot-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.trinity-chatbot-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    height: auto;
    appearance: auto;
}

.trinity-chatbot-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.trinity-chatbot-checkbox a {
    color: var(--c-blue1);
}
.trinity-chatbot-checkbox input {
    margin: 0;
}

.trinity-chatbot-start-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--c-blue1);
    color: white!important;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.trinity-chatbot-start-btn:hover:not(:disabled) {
    background-color: #005a87;
}

.trinity-chatbot-start-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 1;
}

/* Chat Interface */
.trinity-chatbot-chat-interface {
    height: 100%;
}

.trinity-chatbot-chat-interface:after {
    background-color: #eff4ff;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1em;
    content: '';
    z-index: 1;
}

.trinity-chatbot-embed {
    height: calc(100% + 1.5em);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .trinity-chatbot-popup {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
    
    .trinity-chatbot-toggle {
        right: 20px;
        bottom: 20px;
    }
} 
.trinity-chatbot-embed {
    height: calc(100% - 2em);
    display: flex
;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
    margin-top: 3em;

}

.trinity-chatbot-embed iframe{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
zapier-interfaces-chatbot-embed {

}


/* DIFY */
.trinity-chatbot-popup-header .whatsapp a {
    background-color: #080;
    border:1px solid #fff;

    color: #fff;
    background: #080;
    border: 1px solid #fff;
    padding: 0.6em 0.8em;
}
.trinity-chatbot-popup-header {
    background:none;
    top: 0.5em;
    right: 2.5em;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    display: flex
;
    left: 0;
    justify-content: end;
    background: #fff;
    width: 100%;
    background-color: var(--c-blue1);
    padding: 0.5em 0em 0.5em 0;
}

.trinity-chatbot-embed {


    height: calc(100% + 4.25em);
    margin-top: 0em;
}

.trinity-chatbot-chat-interface:after {
    content:none;
}
.trinity-chatbot-close-btn {
color: #fff!important;
font-size:1.25em;
padding: 0.5em 0.75em;
}

.trinity-chatbot-close-btn:hover {
    color: #fff!important;
}
.trinity-chatbot-active .trinity-chatbot-popup-header {
    width: calc(100% - 3em);
    background:none;
}