/* Film-help compatibility styles. Product 416 keeps the legacy
 * Silkefoto product layout from custom-product.css. */
.film-help-panel {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    margin: 0 0 15px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.film-help-message {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #f5f5f5;
}

.film-help-message:last-child {
    margin-bottom: 0;
}

.film-help-message p {
    margin: 0 0 6px;
}

.film-help-message p:last-child {
    margin-bottom: 0;
}

.film-help-message-user {
    margin-left: 15%;
    background: #eaf4fd;
    text-align: right;
}

.film-help-message-answer {
    margin-right: 15%;
}

.film-help-error {
    color: #a94442;
    background: #f2dede;
}

.film-help-loading {
    opacity: .7;
}

.film-help-image-preview,
.film-help-selected-preview-image {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin-top: 8px;
}

.film-help-selected-preview {
    display: none;
    margin: 8px 0;
}

.film-help-input {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 20px;
}

.film-help-input input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.film-help-camera,
.film-help-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid #3091ec;
    border-radius: 3px;
    background: #3091ec;
    color: #fff;
    cursor: pointer;
}

.film-help-send:before {
    content: "➤";
}

.film-help-send:disabled {
    cursor: wait;
    opacity: .6;
}

@media (max-width: 768px) {
    .film-help-message-user,
    .film-help-message-answer {
        margin-left: 0;
        margin-right: 0;
    }

    .film-help-input {
        flex-wrap: wrap;
    }

    .film-help-input input[type="text"] {
        flex-basis: calc(100% - 84px);
    }
}
