.cw-widget {
    position: fixed;
    bottom: 70px;
    z-index: 9999;
    font-family: inherit;
}

.cw-widget--right { right: 20px; }
.cw-widget--left { left: 10px; }

.cw-widget__toggle {
    display: flex;
    align-items: center;
    background: var(--cw-color);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transition: opacity .2s ease;
}

.cw-widget__toggle:hover {
    opacity: .8;
    background: var(--cw-color);
}

.cw-widget__icon {
    display: flex;
    color: #fff;
}

.cw-widget__panel {
    position: absolute;
    bottom: 64px;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 32px 16px 16px;
}

.cw-widget--right .cw-widget__panel { right: 0; }
.cw-widget--left .cw-widget__panel { left: 0; }

.cw-widget__close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.cw-widget__panel .wpcf7-form-control-wrap { display: block; margin-bottom: 10px; }
.cw-widget__panel input[type="tel"] { 
    width: 100%; 
    padding: 8px 10px; 
    box-sizing: border-box; 
    border: 1px #ccc solid;
}
.cw-widget__panel input[type="submit"] {
    background: var(--cw-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: opacity .2s ease;
}

.cw-widget__panel input[type="submit"]:hover {
    opacity: .8;
    background: var(--cw-color);
}

.cw-widget__panel .wpcf7-spinner {
    display: block;
    margin: 8px auto 0;
}

.cw-widget__panel .cw-consent-text {
    font-size: 11px;
    line-height: 1.4;
    color: #666;
    margin: 8px 0 14px;
}

.cw-widget__panel .cw-consent-text a {
    color: var(--cw-color);
    text-decoration: underline;
}

/* reserve fixed space for the CF7 status message so the panel does not change height */
.cw-widget__panel .wpcf7-form {
    position: relative;
    padding-bottom: 36px;
}

.cw-widget__panel .wpcf7-response-output {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.3;
    box-sizing: border-box;
}

.cw-widget__panel .wpcf7-not-valid-tip {
    font-size: 0.8em;
}

@media (max-width: 480px) {
    .cw-widget__panel { width: calc(100vw - 40px); }
}
