/* Textus Floating Widget Styles */
.textus-floating-widget {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    transition: all 0.1s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.textus-floating-widget.position-right {
    right: 20px;
}

.textus-floating-widget.position-left {
    left: 20px;
}

/* Floating Button */
.textus-widget-button {
    height: 50px !important;
    width: auto !important;
    min-width: 50px !important;
    max-width: none !important;
    padding: 0 25px !important;
    border-radius: 25px !important;
    background: var(--textus-primary-color, #8e2b5b) !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    box-sizing: border-box !important;
    outline: none !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.textus-widget-content-normal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: opacity 0.1s ease !important;
    height: 100% !important;
}

.textus-widget-text {
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Button Open State Transformation */
.textus-widget-content-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.textus-close-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.textus-widget-button.is-open {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.textus-widget-button.is-open .textus-widget-content-normal {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.textus-widget-button.is-open .textus-widget-content-close {
    opacity: 1;
    pointer-events: auto;
}

.textus-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.textus-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.textus-widget-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.textus-widget-icon img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Popup Container */
.textus-popup-container {
    position: absolute;
    bottom: 70px;
    width: 330px;
    background: #f5f5f7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

.textus-floating-widget.position-right .textus-popup-container {
    right: 0;
}

.textus-floating-widget.position-left .textus-popup-container {
    left: 0;
}

/* Form Header */
.textus-form-header {
    background: var(--textus-primary-color, #8e2b5b);
    color: white;
    padding: 12px 15px;
}

.textus-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.textus-header-icon svg,
.textus-header-icon img {
    width: 20px;
    height: 20px;
    fill: white;
}

.textus-header-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.textus-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 5px;
}

/* Form Body */
.textus-form-body {
    padding: 12px;
}

.textus-intro-bubble {
    background: #ede4e9;
    padding: 12px;
    border-radius: 12px 12px 12px 0;
    font-size: 12px;
    line-height: 1.5;
    color: black;
    margin-bottom: 12px;
}

.textus-actual-form {
    background: white;
    padding: 12px;
    border-radius: 12px 12px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.textus-input-group input,
.textus-input-group textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    background: #fafafa;
    box-sizing: border-box;
}

.textus-input-group textarea {
    height: 80px;
    resize: none;
}

.textus-consent-text {
    font-size: 10px;
    line-height: 1.4;
    color: #666;
    text-align: center;
    margin: 5px 0;
}

.textus-submit-btn {
    background: var(--textus-primary-color, #8e2b5b) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.textus-submit-btn:hover {
    opacity: 0.9;
}

.textus-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
button.textus-close-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 2rem;
}
span.textus-header-icon {
    height: fit-content;
    line-height: 1;
}
span.textus-close-icon {
    display: inline-flex;
}
/* Success State */
.textus-success-content {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.textus-success-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    text-decoration: underline;
    text-decoration-color: var(--textus-primary-color, #8e2b5b);
    text-underline-offset: 8px;
}

.textus-success-msg {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.textus-paws-icon {
    font-size: 18px;
}



button.textus-close-btn:hover {
      background-color:transparent; 
}
/* Loader */
.textus-loader {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-right-color: transparent;
    border-radius: 50%;
    animation: textus-spin 0.8s linear infinite;
}

@keyframes textus-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .textus-popup-container {
        width: calc(100vw - 40px);
        max-width: 330px;
    }
}