/*
 * Copyright (c) Baidu, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import (reference) 'tokens.less';
.@{prefix}-shop-address {
    box-sizing: border-box;
    clear: both;

    // 弱样式
    &-weak {
        .cos-line-clamp-1();
        .cos-flex();
        .cos-items-center();
        .cos-rounded-xs();
        .cos-color-bg-dent();
        .cos-space-p-xxs();
        .cos-space-mt-xs();
        .cos-space-mb-3xs();
        box-sizing: border-box;
        width: 100%;
        height: 24px;
        line-height: var(--cos-leading-headline-sm);
        &-icon {
            .cos-color-text();
            width: 14px;
            height: 14px;
            line-height: 14px;
        }
    }

    &-line {
        position: relative;
        top: -1px;
        opacity: .18;
    }

    // 内容
    &-block {
        position: relative;
        border-top-right-radius: var(--cos-rounded-sm);
        border-bottom-right-radius: var(--cos-rounded-sm);
        overflow: hidden;
        .cos-flex();
        height: 56px;
        .cos-space-mt-xs();
        .cos-space-mb-sm();
        // 覆盖图片组件的圆角
        .cos-image-background {
            .cos-rounded-none();
        }
    }

    // 店铺左图右文信息
    &-info {
        .cos-line-clamp-1();
        .cos-flex();
        .cos-flex-1();
    }

    // 店铺左图
    &-image-container {
        width: 56px;
        height: 56px;
        .cos-shrink-0();
    }
    &-image {
        .cos-rounded-none();
        border-top-left-radius: var(--cos-rounded-sm)!important;
        border-bottom-left-radius: var(--cos-rounded-sm)!important;
    }
    // 店铺右文
    &-desc {
        .cos-line-clamp-1();
        .cos-flex();
        .cos-flex-col();
        .cos-justify-between();
        .cos-space-p-xxs();
        .cos-space-pl-sm();
        .cos-color-bg-dent();
        .cos-flex-1();
        padding-right: 53px;
    }
    &-subtitle {
        width: 100%;
        font-size: var(--cos-text-body-lg);
        line-height: var(--cos-leading-subtitle);
        .cos-color-text();
    }
    // 右文中文本
    &-text {
        .cos-text-body();
    }
    // 右文信息中标签
    &-tag {
        .cos-space-mr-xxs();
        // 和ue确认过，tag要保持蓝色，不随dqa主题变色，使用token会导致换肤，不符合预期，故单独设置
        color: var(--cos-blue-0);
        background-color: #e8f3ff;
    }

    // 导航
    &-navigation {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        box-sizing: border-box;
        .cos-flex();
        .cos-justify-center();
        .cos-items-center();
        .cos-color-bg();
        .cos-rounded-full();
        .cos-space-p-xxs();
        .cos-space-mr-sm();
        &-icon {
            .cos-color-text();
            width: 14px;
            height: 14px;
            line-height: var(--cos-text-body);
        }
    }
}

// iOS 暗黑
@{dark-selectors} {
    .@{prefix}-shop-address {
        &-tag {
            background-color: #4e6ef233;
        }
    }
}
