.homeassist-floating-widget-wrapper {
    position: relative;
    z-index: 9999;
}

.homeassist-floating-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #e22525;
    border: 2px solid #e22525;
    border-right: none;
    padding: 20px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-radius: 12px 0 0 12px;
    box-shadow: -3px 0 15px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

.homeassist-floating-tab:hover {
    background-color: #f9f9f9;
    transform: translateY(-50%) translateX(-2px);
}

.homeassist-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.homeassist-tab-icon svg {
    width: 20px;
    height: 20px;
}

.homeassist-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.homeassist-floating-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 350px;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    padding: 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10001;
    border-radius: 12px 0 0 12px;
    box-sizing: border-box;
}

.homeassist-floating-panel.is-open {
    right: 0;
}

.homeassist-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.homeassist-panel-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.homeassist-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.homeassist-panel-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.homeassist-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: #e22525;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.homeassist-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

.homeassist-phone-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: transparent;
    color: #e22525;
    text-decoration: none;
    border: 2px solid #e22525;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.homeassist-phone-btn:hover {
    background-color: #fce8e8;
}

.homeassist-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.homeassist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homeassist-floating-panel.is-open ~ .homeassist-overlay {
    display: block;
    opacity: 1;
}