@import './var.less';

.rv-shop-selector {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  &__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #cccccc;
    padding: 0 @mobile-select-padding;
  }
  &__trigger {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  &__search {
    padding: 16px;
    border-bottom: 1px solid #ebedf0;
  }

  &__content {
    flex: 1;
    overflow: auto;
  }

  &__footer {
    padding: 16px;
    border-top: 1px solid #ebedf0;
    background: #fff;

    .shop-selector__checkbox {
      margin-bottom: 16px;
    }

    .shop-selector__actions {
      display: flex;
      gap: 12px;

      .rv-button {
        flex: 1;
      }
    }
  }
}

// 选中状态样式
.rv-cell.selected {
  background-color: #f7f8fa;
  
  .rv-cell__title {
    // color: #1989fa;
    font-weight: 500;
    .rv-cell__label {
      font-weight: normal;
    }
  }
}

// 多选框列表项样式
.rv-shop-selector {
  .rv-cell {
    padding: 12px 16px;
    
    .rv-cell__title {
      padding: 0;
      margin: 0;
    }
  }
  
  // 多选框布局
  .checkbox-item {
    display: flex;
    align-items: center;
    width: 100%;
    
    .rv-checkbox {
      margin-right: 12px;
      flex-shrink: 0;
    }
    
    .item-content {
      flex: 1;
      min-width: 0;
      
      .item-title {
        font-size: 16px;
        font-weight: 500;
        color: #323233;
        line-height: 1.4;
        margin-bottom: 4px;
      }
      
      .item-subtitle {
        font-size: 14px;
        color: #969799;
        line-height: 1.4;
      }
    }
    
    .item-arrow {
      flex-shrink: 0;
      margin-left: 8px;
      color: #c8c9cc;
    }
  }
}

// 列表样式
.rv-list {
  .rv-cell {
    border-bottom: 1px solid #ebedf0;
    
    &:last-child {
      border-bottom: none;
    }
  }
}
